forked from ngageoint/opensphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlabelcontrols.html
68 lines (66 loc) · 2.75 KB
/
labelcontrols.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<div class="c-labelcontrols" ng-form="labelForm">
<table>
<tr>
<td class="control-label">Style:</td>
<td>
<colorpicker name="labelColor" class="no-text" color="labelColor" show-reset="true"
title="Sets the label color">
</colorpicker>
<spinner min="8" max="20" live="false" step="1" value="labelSize" name="labelSize"
title="Sets the label font size">
</spinner>
px
</td>
</tr>
</table>
<div class="c-labelcontrols__showlabels" ng-show="alwaysShowLabels != 'false'">
<label>
<input class="label-checkbox checkbox inline" type="checkbox" name="showLabels"
title="Always show labels for this layer. If unchecked, labels will only be shown on hover."
ng-model="showLabels" ng-change="labelCtrl.onShowLabelsChange()"/>
Always Show Labels
</label>
</div>
<div class="c-labelcontainer" ng-class="labels.length > 1 && 'well'">
<table class="wide">
<tr ng-repeat="label in labels">
<td class="c-labelcontainer__fixedcell" ng-if="labels.length > 1">
<span class="handle" ng-if="label.column != null" title="Click and Drag to move this label">
<i class="fa fa-bars"></i>
</span>
</td>
<td class="c-labelcontainer__fixedcell">
<input ng-disabled="label.column == null" class="checkbox inline" type="checkbox"
name="showColumn"
title="Display the column with the value"
ng-model="label.showColumn"
ng-change="labelCtrl.onColumnChange()" />
</td>
<td class="c-labelcontainer__fixedcell">Column</td>
<td>
<select class="no-margin wide" ng-model="label.column" ng-change="labelCtrl.onColumnChange()"
title="Sets the data field used for labels"
ng-options="col.field as col.name for col in columns">
<option value="">-- None --</option>
</select>
</td>
<td class="c-labelcontainer__fixedcell" ng-if="labels.length > 1">
<button type="button" class="btn btn-default" ng-click="labelCtrl.removeLabel(label)"
title="Remove this label">
<i class="fa fa-times red-icon"></i>
</button>
</td>
<td class="c-labelcontainer__fixedcell">
<button type="button" class="btn btn-default" ng-click="labelCtrl.addLabel()"
ng-class="{'invisible': !$last || labels.length == labelCtrl.labelLimit}"
title="Add a label">
<i class="fa fa-plus green-icon"></i>
</button>
</td>
</tr>
</table>
<span class="help-inline error" ng-if="labelForm.$error.columnRequired">
Please choose at least one column.
</span>
</div>
</div>