/
currencyconfig.html
41 lines (37 loc) · 1.54 KB
/
currencyconfig.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<h3>Currecny configuration</h3>
<div class="row alert-block span" ng-controller="CurrencyConfigController">
<div ng-hide="hideview">
<div class="span4 pull-right">
<a ng-click="hideview = !hideview" class="btn btn-primary"><i class="icon-plus icon-white"></i> Edit</a>
</div>
<br><br>
<table class="table" ui:sortable>
<thead>
<tr>
<th>Currency Name</th>
<th>Currency Code</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="currency in selectedCurrOptions | filter:filterText">
<td>{{currency.name}}</td>
<td>{{currency.code}}</td>
</tr>
</tbody>
</table>
</div>
<div ng-show="hideview">
<input class="form-control input-xxlarge"
ng-model="selected"
placeholder="New Currency"
type="text"
typeahead="item as item.displayLabel for item in allCurrOptions | filter:$viewValue | limitTo:8" /> <a ng-click='addCur()'><i class="icon-plus"></i></a>
<div ng-repeat="currency in selectedCurrOptions">
<input disabled="" class="form-control input-xxlarge" placeholder={{currency.displayLabel}}} type="text"/> <a ng-click='deleteCur(currency.code)'><i class="icon-remove"></i></a>
</div>
<div class="span5 pull-right">
<button type="reset" class="btn">Cancel</button>
<button type="submit" ng-click="submit()" class="btn btn-primary">Save</button>
</div>
</div>
</div>