expressCart/views/settings-discount-edit.hbs

48 lines
2.4 KiB
Handlebars
Raw Normal View History

{{> partials/menu}}
2020-02-01 16:59:30 +10:00
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
<form class="form-horizontal" id="discountEditForm" data-toggle="validator">
<div class="col-sm-12">
<div class="page-header">
<div class="float-right">
<button id="" class="btn btn-outline-success" type="submit">Update discount</button>
</div>
<h2>{{ @root.__ "Edit discount" }}</h2>
</div>
</div>
2020-02-01 16:59:30 +10:00
<div class="col-12">
<div class="form-group">
<label for="discountCode" class="control-label">{{ @root.__ "Discount code" }} *</label>
<input type="text" id="discountCode" class="form-control" minlength="1" maxlength="50" value="{{discount.code}}" required/>
</div>
</div>
2020-02-01 16:59:30 +10:00
<div class="col-12">
<div class="form-group">
<label for="discountType" class="control-label">{{ @root.__ "Discount type" }} *</label>
<select class="form-control" id="discountType">
<option value="amount" {{selectState discount.type "amount"}}>{{ @root.__ "Amount" }}</option>
<option value="percent" {{selectState discount.type "percent"}}>{{ @root.__ "Percent" }}</option>
</select>
</div>
</div>
2020-02-01 16:59:30 +10:00
<div class="col-12">
<div class="form-group">
<label for="discountValue" class="control-label">{{ @root.__ "Discount value" }} *</label>
<input type="number" id="discountValue" class="form-control" minlength="1" maxlength="50" value="{{discount.value}}" required/>
</div>
</div>
2020-02-01 16:59:30 +10:00
<div class="col-12">
<div class="form-group">
<label for="discountStart" class="control-label">{{ @root.__ "Discount start" }} *</label>
<input id="discountStart" value="{{formatDate discount.start 'DD/MM/YYYY kk:mm'}}" />
</div>
</div>
2020-02-01 16:59:30 +10:00
<div class="col-12">
<div class="form-group">
<label for="discountEnd" class="control-label">{{ @root.__ "Discount end" }} *</label>
<input id="discountEnd" value="{{formatDate discount.end 'DD/MM/YYYY kk:mm'}}" />
</div>
</div>
<input type="hidden" id="discountId" value="{{discount._id}}">
2020-02-01 16:59:30 +10:00
</form>
</main>