parent
57efcab231
commit
9b031f73bb
@ -1,54 +1,82 @@
|
||||
<div class="modal-header">
|
||||
<h4>Leader Commission Config</h4>
|
||||
<h4>Commission Config</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<!--<div class="alert alert-danger" ng-bind="errmsg" ng-if="errmsg"></div>-->
|
||||
<div class="table-responsive">
|
||||
<button class="btn btn-primary" ng-bind="bdmon"></button>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Commission Amount</th>
|
||||
<th>Commission Rate</th>
|
||||
<th>BD Type</th>
|
||||
<th>
|
||||
<span class="fa fa-plus" style="color: #0bb20c" ng-click="bdlm.push({})"></span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="bd in bdlm">
|
||||
<td class="col-sm-5">
|
||||
<div class="input-group">
|
||||
<input class="form-control" id="re-from-input" type="number"
|
||||
ng-model="bd.commission_start_amount"
|
||||
placeholder="Start Amount">
|
||||
<span class="input-group-addon">~</span>
|
||||
<input class="form-control" id="re-to-input" type="number"
|
||||
ng-model="bd.commission_end_amount"
|
||||
placeholder="End Amount">
|
||||
</div>
|
||||
</td>
|
||||
<td class="col-sm-3">
|
||||
<div class="input-group">
|
||||
<input placeholder="rate" class="form-control" type="number" step="0.01"
|
||||
ng-model="bd.bd_commission_rate">
|
||||
<span class="input-group-addon">%</span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control" ng-model="bd.bd_type" ng-options="bdtype.id as bdtype.label for bdtype in bdtypes"></select>
|
||||
</td>
|
||||
<td>
|
||||
<span class="fa fa-close" style="color: #b92c28" ng-click="deleteCommission(bd.bc_config_id)"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="alert alert-danger" ng-if="errmsg" ng-bind="errmsg"></div>
|
||||
<div class="modal-footer" ng-if="listConfig">
|
||||
<button class="btn btn-success" type="button" ng-click="submitCommmissionConfig(bdmon,bdlm)">Submit</button>
|
||||
<button class="btn btn-danger" ng-click="$dismiss()">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-primary" ng-bind="bdmon" style="margin-bottom: 10px"></button>
|
||||
<uib-tabset>
|
||||
<uib-tab heading="Leader">
|
||||
<div class="table-responsive margin-top">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Commission Amount</th>
|
||||
<th>Commission Rate</th>
|
||||
<th>BD Type</th>
|
||||
<th>
|
||||
<span class="fa fa-plus" style="color: #0bb20c" ng-click="bdlm.push({})"></span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="bd in bdlm">
|
||||
<td class="col-sm-5">
|
||||
<div class="input-group">
|
||||
<input class="form-control" id="re-from-input" type="number"
|
||||
ng-model="bd.commission_start_amount"
|
||||
placeholder="Start Amount">
|
||||
<span class="input-group-addon">~</span>
|
||||
<input class="form-control" id="re-to-input" type="number"
|
||||
ng-model="bd.commission_end_amount"
|
||||
placeholder="End Amount">
|
||||
</div>
|
||||
</td>
|
||||
<td class="col-sm-3">
|
||||
<div class="input-group">
|
||||
<input placeholder="rate" class="form-control" type="number" step="0.01"
|
||||
ng-model="bd.bd_commission_rate">
|
||||
<span class="input-group-addon">%</span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control" ng-model="bd.bd_type" ng-options="bdtype.id as bdtype.label for bdtype in bdtypes"></select>
|
||||
</td>
|
||||
<td>
|
||||
<span class="fa fa-close" style="color: #b92c28" ng-click="deleteCommission(bd.bc_config_id)"></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="alert alert-danger" ng-if="errmsg" ng-bind="errmsg"></div>
|
||||
<div class="modal-footer" ng-if="listConfig">
|
||||
<button class="btn btn-success" type="button" ng-click="submitCommmissionConfig(bdmon,bdlm)">Submit</button>
|
||||
<button class="btn btn-danger" ng-click="$dismiss()">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</uib-tab>
|
||||
<uib-tab heading="BD">
|
||||
<table class="table table-hover" style="text-align: center">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: center;">BD Name</th>
|
||||
<th style="text-align: center;">KPI Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="bd in bds">
|
||||
<td ng-bind="bd.display_name"></td>
|
||||
<td>
|
||||
<input ng-model="bd.kpi_amount">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="alert alert-danger" ng-if="errmsg" ng-bind="errmsg"></div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-success" type="button" ng-click="submitBdCommmissionConfig(bdmon,bds)">Submit</button>
|
||||
<button class="btn btn-danger" ng-click="$dismiss()">Cancel</button>
|
||||
</div>
|
||||
</uib-tab>
|
||||
</uib-tabset>
|
||||
|
||||
</div>
|
Loading…
Reference in new issue