From 9146aae20fcb18059f16bb71602382ee01f98abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Wo=C5=BAniak?= Date: Thu, 21 Jul 2022 15:11:00 +0200 Subject: [PATCH] Admin, manage offers --- assets/templates/admin/offers/index.html | 13 ------- client/src/admin/offers/admin-edit-offer.js | 40 +++------------------ 2 files changed, 5 insertions(+), 48 deletions(-) diff --git a/assets/templates/admin/offers/index.html b/assets/templates/admin/offers/index.html index c903d0c..9830ee3 100644 --- a/assets/templates/admin/offers/index.html +++ b/assets/templates/admin/offers/index.html @@ -8,19 +8,6 @@ input { + #actions form { + width: 120px; + } + #actions form input { width: 100%; } #state { @@ -66,38 +68,6 @@ customElements.define('admin-edit-offer', class extends Component { } } - get description() { - return this.getAttribute('description'); - } - - set description(v) { - this.setAttribute('description', v); - } - - get picture_url() { - return this.getAttribute('picture-url'); - } - - set picture_url(v) { - this.setAttribute('picture-url', v); - } - - get price_range_min() { - this.getAttribute('price-range-min'); - } - - set price_range_min(v) { - this.setAttribute('price-range-min', v); - } - - get price_range_max() { - this.getAttribute('price-range-max'); - } - - set price_range_max(v) { - this.setAttribute('price-range-max', v); - } - get state() { return this.getAttribute('state'); }