Lines 60-65
function delete_provider( id ) {
Link Here
|
60 |
<tr> |
60 |
<tr> |
61 |
<th>Name</th> |
61 |
<th>Name</th> |
62 |
<th>Domain</th> |
62 |
<th>Domain</th> |
|
|
63 |
<th title="Patrons using this provider">Patrons</th> |
63 |
<th> </th> |
64 |
<th> </th> |
64 |
<th> </th> |
65 |
<th> </th> |
65 |
</tr> |
66 |
</tr> |
Lines 70-77
function delete_provider( id ) {
Link Here
|
70 |
<tr> |
71 |
<tr> |
71 |
<td id="name_[% p.id %]">[% p.name %]</td> |
72 |
<td id="name_[% p.id %]">[% p.name %]</td> |
72 |
<td id="domain_[% p.id %]">[% p.domain %]</td> |
73 |
<td id="domain_[% p.id %]">[% p.domain %]</td> |
73 |
<td><a href="#" id="edit_[% p.id %]" class="edit" onclick="edit_provider( [% p.id %] );">Edit</td> |
74 |
<td id="patrons_using_[% p.id %]">[% p.patrons_using %]</td> |
74 |
<td><a href="#" id="delete_[% p.id %]" class="delete" onclick="delete_provider( [% p.id %] );">Delete</td> |
75 |
<td> |
|
|
76 |
<a class="btn" href="#" id="edit_[% p.id %]" class="edit" onclick="edit_provider( [% p.id %] );"> |
77 |
<i class="fa fa-pencil"></i> Edit |
78 |
</a> |
79 |
</td> |
80 |
<td> |
81 |
[% IF p.patrons_using %] |
82 |
<a class="btn btn-danger" href="#" id="delete_[% p.id %]" class="delete" onclick="delete_provider( [% p.id %] );"> |
83 |
<span style="color:white"><i class="fa fa-trash"></i> Delete</span> |
84 |
</a> |
85 |
[% ELSE %] |
86 |
<a class="btn" href="#" id="delete_[% p.id %]" class="delete" onclick="delete_provider( [% p.id %] );"> |
87 |
<i class="fa fa-trash"></i> Delete |
88 |
</a> |
89 |
[% END %] |
90 |
</td> |
75 |
</tr> |
91 |
</tr> |
76 |
[% END %] |
92 |
[% END %] |
77 |
</tbody> |
93 |
</tbody> |
Lines 83-93
function delete_provider( id ) {
Link Here
|
83 |
<tr> |
99 |
<tr> |
84 |
<td><input type="text" id="name" name="name" /></td> |
100 |
<td><input type="text" id="name" name="name" /></td> |
85 |
<td><input type="text" id="domain" name="domain" size="40"/></td> |
101 |
<td><input type="text" id="domain" name="domain" size="40"/></td> |
|
|
102 |
<td colspan="2"> |
103 |
<button class="btn" id="submit_save" type="submit"> |
104 |
<i class="fa fa-plus"></i> Add new |
105 |
</button> |
106 |
<button class="btn" id="submit_update" type="submit"> |
107 |
<i class="fa fa-plus-circle"></i> Update |
108 |
</button> |
109 |
</td> |
86 |
<td> |
110 |
<td> |
87 |
<input id="submit_save" type="submit" value="Add new"> |
111 |
<a class="btn" id="cancel" href="#" onclick="cancel_edit()"> |
88 |
<input id="submit_update" type="submit" value="Update"> |
112 |
<i class="fa fa-ban"></i> Cancel |
|
|
113 |
</a> |
89 |
</td> |
114 |
</td> |
90 |
<td><a id="cancel" href="#" onclick="cancel_edit()">Cancel</a></td> |
|
|
91 |
</tr> |
115 |
</tr> |
92 |
</form> |
116 |
</form> |
93 |
</tfoot> |
117 |
</tfoot> |
94 |
- |
|
|