parent
b0e1c5f259
commit
77852b44ae
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 502 B |
After Width: | Height: | Size: 1.7 KiB |
@ -0,0 +1,147 @@
|
||||
<div class="modal-header">
|
||||
<h4>New {{cardRateConfig.title}} Rate</h4>
|
||||
<a role="button" ng-click="switchCardRateConfig()"><i class="fa fa-refresh"></i>Switch {{card_payment_switch_title}} Rate Config</a>
|
||||
</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">{{cardRateConfig.title}} Clear Days</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<select class="form-control" ng-model="rate.clean_days" id="cleanDays" 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-if="cardRateConfig.type=='rpaypmt_card'"
|
||||
ng-class="{'has-error':rate_form.domestic_rate_value.$invalid && rate_form.domestic_rate_value.$dirty}">
|
||||
<label class="control-label col-sm-4" for="domestic_rate_value_input">Domestic Rate Value</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input type="number" name="domestic_rate_value" stringToNumber2 class="form-control" ng-model="rate.rate_value"
|
||||
min="0" max="5" step="0.1" id="domestic_rate_value_input" required>
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
<div ng-messages="rate_form.domestic_rate_value.$error" ng-if="rate_form.domestic_rate_value.$dirty">
|
||||
<div class="small text-danger" ng-message="max">
|
||||
<i class="glyphicon glyphicon-alert"></i> No more than 5.0%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="min">
|
||||
<i class="glyphicon glyphicon-alert"></i> No less than 0.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" ng-if="cardRateConfig.type=='rpaypmt_card'"
|
||||
ng-class="{'has-error':rate_form.international_rate_value.$invalid && rate_form.international_rate_value.$dirty}">
|
||||
<label class="control-label col-sm-4" for="international_rate_value_input">International Rate Value</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input type="number" name="international_rate_value" stringToNumber2 class="form-control" ng-model="rate.ext_rates.overseas_rate_value"
|
||||
min="0" max="5" step="0.1" id="international_rate_value_input" required>
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
<div ng-messages="rate_form.international_rate_value.$error" ng-if="rate_form.international_rate_value.$dirty">
|
||||
<div class="small text-danger" ng-message="max">
|
||||
<i class="glyphicon glyphicon-alert"></i> No more than 5.0%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="min">
|
||||
<i class="glyphicon glyphicon-alert"></i> No less than 0.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" ng-if="cardRateConfig.type=='rpaypmt_dd'"
|
||||
ng-class="{'has-error':rate_form.direct_debit_rate_value.$invalid && rate_form.direct_debit_rate_value.$dirty}">
|
||||
<label class="control-label col-sm-4" for="direct_debit_rate_value_input">Direct Debit Rate Value</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input type="number" name="direct_debit_rate_value" stringToNumber2 class="form-control" ng-model="rate.rate_value"
|
||||
min="0" max="5" step="0.1" id="direct_debit_rate_value_input" required>
|
||||
<div class="input-group-addon">%</div>
|
||||
</div>
|
||||
<div ng-messages="rate_form.direct_debit_rate_value.$error" ng-if="rate_form.rate_value.$dirty">
|
||||
<div class="small text-danger" ng-message="max">
|
||||
<i class="glyphicon glyphicon-alert"></i> No more than 5.0%
|
||||
</div>
|
||||
<div class="small text-danger" ng-message="min">
|
||||
<i class="glyphicon glyphicon-alert"></i> No less than 0.0%
|
||||
</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-if="cardRateConfig.type=='rpaypmt_card'"
|
||||
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