commit
08e507bdfa
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,150 @@
|
||||
<div class="modal-header">
|
||||
<h4>New AlipayPlus Rate</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-danger" ng-if="errmsg" ng-bind="errmsg"></div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<form class="form-horizontal" novalidate name="rate_form">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-4">Clear Days</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<select class="form-control" ng-model="rate.clean_days" id="citySelect"
|
||||
ng-change="changeDays()">
|
||||
<option value="1">T+1</option>
|
||||
<option value="2">T+2</option>
|
||||
<option value="3">T+3</option>
|
||||
</select>
|
||||
<div>{{rateConfig}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group"
|
||||
ng-class="{'has-error':rate_form.alipay_cn_retail.$invalid && rate_form.alipay_cn_retail.$dirty}">
|
||||
<label class="control-label col-sm-4" for="alipay_cn_retail_input">Alipay CN Retail
|
||||
Rate</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input type="number" name="alipay_cn_retail" stringToNumber2 class="form-control"
|
||||
ng-model="rate.alipay_cn_retail" min="0.7" max="3" step="0.1"
|
||||
id="alipay_cn_retail_input" required>
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
<div ng-messages="rate_form.alipay_cn_retail.$error" ng-if="rate_form.alipay_cn_retail.$dirty">
|
||||
<div class="small text-danger" ng-message="max">
|
||||
<i class="glyphicon glyphicon-alert"></i> No More Than 3%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="min">
|
||||
<i class="glyphicon glyphicon-alert"></i> No Less Than
|
||||
0.7%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="required">
|
||||
<i class="glyphicon glyphicon-alert"></i> Required Field
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error':rate_form.alipay_cn_online.$invalid && rate_form.alipay_cn_online.$dirty}">
|
||||
<label class="control-label col-sm-4" for="alipay_cn_online_input">Alipay CN Online
|
||||
Rate</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input type="number" name="alipay_cn_online" stringToNumber2 class="form-control"
|
||||
ng-model="rate.alipay_cn_online" min="0.7" max="3" step="0.1"
|
||||
id="alipay_cn_online_input" required>
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
<div ng-messages="rate_form.alipay_cn_online.$error" ng-if="rate_form.alipay_cn_online.$dirty">
|
||||
<div class="small text-danger" ng-message="max">
|
||||
<i class="glyphicon glyphicon-alert"></i> No More Than 3%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="min">
|
||||
<i class="glyphicon glyphicon-alert"></i> No Less Than
|
||||
0.7%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="required">
|
||||
<i class="glyphicon glyphicon-alert"></i> Required Field
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error':rate_form.alipay_other.$invalid && rate_form.alipay_other.$dirty}">
|
||||
<label class="control-label col-sm-4" for="alipay_other_input">Other Wallets
|
||||
Rate</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input type="number" name="alipay_other" stringToNumber2 class="form-control"
|
||||
ng-model="rate.alipay_other" min="1.9" max="3" step="0.1" id="alipay_other_input"
|
||||
required>
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
<div ng-messages="rate_form.alipay_other.$error" ng-if="rate_form.alipay_other.$dirty">
|
||||
<div class="small text-danger" ng-message="max">
|
||||
<i class="glyphicon glyphicon-alert"></i> No More Than 3%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="min">
|
||||
<i class="glyphicon glyphicon-alert"></i> No Less Than
|
||||
1.9%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="required">
|
||||
<i class="glyphicon glyphicon-alert"></i> Required Field
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group"
|
||||
ng-class="{'has-error':rate_form.transaction_fee.$invalid && rate_form.transaction_fee.$dirty}">
|
||||
<label class="control-label col-sm-4" for="transaction_fee_input">Transaction Fee</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input type="number" name="Transaction_fee_value" stringToNumber2 class="form-control"
|
||||
ng-model="rate.transaction_fee" min="0" step="0.1" max="1" id="transaction_fee_input"
|
||||
required>
|
||||
<div class="input-group-addon">$</div>
|
||||
</div>
|
||||
<div ng-messages="rate_form.transaction_fee.$error" ng-if="rate_form.transaction_fee.$dirty">
|
||||
<div class="small text-danger" ng-message="min">
|
||||
<i class="glyphicon glyphicon-alert"></i> No less than 0
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="required">
|
||||
<i class="glyphicon glyphicon-alert"></i> Required Field
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-4" for="active_time_input">Active Date</label>
|
||||
<div class="col-sm-6">
|
||||
<input class="form-control" ng-model="rate.active_time" id="active_time_input"
|
||||
uib-datepicker-popup size="10" placeholder="Active Date" is-open="activeDate.open"
|
||||
ng-click="activeDate.open=true" datepicker-options="{maxDate:rate.expiry_time}" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-4" for="expire_time_input">Expire Date</label>
|
||||
<div class="col-sm-6">
|
||||
<input class="form-control" ng-model="rate.expiry_time" id="expire_time_input"
|
||||
uib-datepicker-popup size="10" placeholder="Expire Date" is-open="expireDate.open"
|
||||
ng-click="expireDate.open=true" datepicker-options="{minDate:rate.active_time}" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-4" for="remark_text">Remark</label>
|
||||
<div class="col-sm-6">
|
||||
<input class="form-control" ng-model="rate.remark" id="remark_text" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-success" type="button" ng-click="saveRate(rate_form)"
|
||||
ng-disabled="ctrl.sending">Submit</button>
|
||||
<button class="btn btn-danger" type="button" ng-click="$dismiss()">Cancel</button>
|
||||
</div>
|
Loading…
Reference in new issue