parent
4cb08e0cb6
commit
a0d059ee9d
@ -0,0 +1,126 @@
|
|||||||
|
<div class="modal-header">
|
||||||
|
<h4>New Alipay APS 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>
|
||||||
|
|
||||||
|
<!-- interchange fee -->
|
||||||
|
<div class="form-group"
|
||||||
|
ng-class="{'has-error':rate_from.interchange_fee_value.$invalid && rate_from.interchange_fee_value.$dirty}">
|
||||||
|
<label class="control-label col-sm-4" for="interchange_fee_value_input">Interchange Fee</label>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="number" name="interchange_fee_value" stringToNumber2 class="form-control" ng-model="rate.interchange_fee_value"
|
||||||
|
min="0.6" max="10" step="0.1" id="interchange_fee_value_input" required>
|
||||||
|
<div class="input-group-addon">%</div>
|
||||||
|
</div>
|
||||||
|
<div ng-messages="rate_from.interchange_fee_value.$error" ng-if="rate_from.interchange_fee_value.$dirty">
|
||||||
|
<div class="small text-danger" ng-message="max">
|
||||||
|
<i class="glyphicon glyphicon-alert"></i> No more than 10.0%
|
||||||
|
</div>
|
||||||
|
<div class="small text-danger" ng-message="min">
|
||||||
|
<i class="glyphicon glyphicon-alert"></i> No less than 0.6%
|
||||||
|
</div>
|
||||||
|
<div class="small text-danger" ng-message="required">
|
||||||
|
<i class="glyphicon glyphicon-alert"></i> Required Field
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- service fee -->
|
||||||
|
<div class="form-group"
|
||||||
|
ng-class="{'has-error':rate_from.service_fee_value.$invalid && rate_from.service_fee_value.$dirty}">
|
||||||
|
<label class="control-label col-sm-4" for="service_fee_value_input">Service Fee</label>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="number" name="service_fee_value" stringToNumber2 class="form-control" ng-model="rate.service_fee_value"
|
||||||
|
min="0.6" max="10" step="0.1" id="service_fee_value_input" required>
|
||||||
|
<div class="input-group-addon">%</div>
|
||||||
|
</div>
|
||||||
|
<div ng-messages="rate_from.service_fee_value.$error" ng-if="rate_from.service_fee_value.$dirty">
|
||||||
|
<div class="small text-danger" ng-message="max">
|
||||||
|
<i class="glyphicon glyphicon-alert"></i> No more than 10.0%
|
||||||
|
</div>
|
||||||
|
<div class="small text-danger" ng-message="min">
|
||||||
|
<i class="glyphicon glyphicon-alert"></i> No less than 0.6%
|
||||||
|
</div>
|
||||||
|
<div class="small text-danger" ng-message="required">
|
||||||
|
<i class="glyphicon glyphicon-alert"></i> Required Field
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 新增transaction_fee -->
|
||||||
|
<!-- <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