1 <div class="container-fluid" style="text-align:center">
2 <div class="alert alert-info alert-less-pad strong-text-2">
3 <span>[% l('EDI Attribute Sets') %]</span>
9 <div class="input-group">
10 <div class="input-group-btn" uib-dropdown>
11 <button type="button" class="btn btn-default" uib-dropdown-toggle>
12 [% l('Attribute Sets') %]
13 <span class="caret"></span>
15 <ul uib-dropdown-menu>
17 <a href='' ng-click="new_set()">
18 [% l('New Attribute Set...') %]</a>
20 <li ng-if="!cur_attr_set.isnew()">
21 <a href='' ng-click="clone_set(cur_attr_set)">
22 [% l('Clone "[_1]"', '{{cur_attr_set.label()}}') %]</a>
24 <li class="divider"></li>
25 <li ng-repeat="set in attr_sets">
26 <a href='' ng-click="select_set(set)">{{set.label()}}</a>
29 </div><!-- /btn-group -->
30 <input type="text" ng-if="!cur_attr_set"
31 class="form-control" disabled="disabled"
32 value="[% l('No Attribute Set Selected') %]"/>
33 <input type="text" ng-if="cur_attr_set"
35 placeholder="[% l('Attribute Set Name...') %]"
36 ng-model-options="{ getterSetter: true }"
37 ng-model="cur_attr_set.label"/>
40 <div class="col-md-4">
41 <span class="pad-right">
42 <button class="btn btn-success"
43 ng-disabled="save_in_progress"
44 ng-click="apply()">[% l('Apply Changes') %]</button>
46 <span class="pad-right">
47 <button class="btn btn-destroy"
48 ng-disabled="cur_attr_set_uses || save_in_progress"
49 ng-click="remove()">[% l('Delete Attribute Set') %]</button>
51 <span class="pad-right" style="font-style:italic">
52 [% l('Currently used by [_1] EDI account(s).', '{{cur_attr_set_uses}}') %]
57 <div class="pad-vert">
58 <div class="row" ng-repeat="attr in attrs | orderBy:'key()'"
59 ng-class="cur_attr_set._local_map[attr.key()] ? 'selected-row' : ''">
60 <div class="col-md-3">
61 <span class="pad-right-min">
62 <input type="checkbox"
63 ng-model="cur_attr_set._local_map[attr.key()]"/>
65 <span>{{attr.key()}}</span>
67 <div class="col-md-9">{{attr.label()}}</div>