-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsym-insertupdatedeletevalue-template.html
95 lines (88 loc) · 2.26 KB
/
sym-insertupdatedeletevalue-template.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<div ng-style="{color: config.TextColor}">
<table>
<tr>
<th colspan="3">
<h2> {{Label}} {{Units}} <h2>
</th>
<th>
</th>
</tr>
<tr>
<th colspan="3">
</th>
<th>
<button
ng-style="{ 'background-color': '#4CAF50',
'display': 'inline-block',
'border': 'none',
'color': 'white',
'padding': '5px 5px',
'margin': '5px 5px',
'width': '50px',
'text-align': 'center',
'font-size': '16px',
'cursor': 'pointer',}"
ng-click="newValue()">New</button>
</th>
</tr>
<tr ng-repeat='item in Values'>
<td>
<input type="text"
value="{{item.Time}}"
ng-model="item.Time"
style="display: inline-block;
width: 150px;
padding: 5px 5px;
margin: 5px 5px;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;"
ng-click="inputClick($index)"
ng-disabled="!item.New">
</td>
<td>
<input type="text"
value="{{item.Value}}"
ng-model="item.Value"
style="display: inline-block;
width: 100px;
padding: 5px 5px;
margin: 5px 5px;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;"
ng-click="inputClick($index)">
</td>
<td>
<button
ng-style="{ 'background-color': '#4CAF50',
'display': 'inline-block',
'border': 'none',
'color': 'white',
'padding': '5px 5px',
'margin': '5px 5px',
'width': '50px',
'text-align': 'center',
'font-size': '16px',
'cursor': 'pointer',}"
ng-click="insertUpdateDeleteValue($index,'InsertOrUpdate')">Save</button>
</td>
<td>
<button
ng-style="{ 'background-color': '#4CAF50',
'display': 'inline-block',
'border': 'none',
'color': 'white',
'padding': '5px 5px',
'margin': '5px 5px',
'width': '50px',
'text-align': 'center',
'font-size': '16px',
'cursor': 'pointer',}"
ng-click="insertUpdateDeleteValue($index,'Delete')">Delete</button>
</td>
</tr>
</table>
</div>