Lines 38-44
Link Here
|
38 |
<th>Domain</th> |
38 |
<th>Domain</th> |
39 |
<th title="Patrons using this provider">Patrons</th> |
39 |
<th title="Patrons using this provider">Patrons</th> |
40 |
<th> </th> |
40 |
<th> </th> |
41 |
<th> </th> |
|
|
42 |
</tr> |
41 |
</tr> |
43 |
</thead> |
42 |
</thead> |
44 |
|
43 |
|
Lines 48-68
Link Here
|
48 |
<td id="name_[% p.id %]">[% p.name %]</td> |
47 |
<td id="name_[% p.id %]">[% p.name %]</td> |
49 |
<td id="domain_[% p.id %]">[% p.domain %]</td> |
48 |
<td id="domain_[% p.id %]">[% p.domain %]</td> |
50 |
<td id="patrons_using_[% p.id %]">[% p.patrons_using %]</td> |
49 |
<td id="patrons_using_[% p.id %]">[% p.patrons_using %]</td> |
51 |
<td> |
50 |
<td class="actions"> |
52 |
<a class="btn edit" href="#" id="edit_[% p.id %]" onclick="edit_provider( [% p.id %] );"> |
51 |
<a class="btn btn-mini edit" href="#" id="edit_[% p.id %]" data-providerid="[% p.id %]"> |
53 |
<i class="fa fa-pencil"></i> Edit |
52 |
<i class="fa fa-pencil"></i> Edit |
54 |
</a> |
53 |
</a> |
55 |
</td> |
54 |
<a class="btn btn-mini delete" href="#" data-providerid="[% p.id %]" data-patrons_using="[% p.patrons_using %]" id="delete_[% p.id %]"> |
56 |
<td> |
55 |
<i class="fa fa-trash"></i> Delete |
57 |
[% IF p.patrons_using %] |
56 |
</a> |
58 |
<a class="btn btn-danger" href="#" id="delete_[% p.id %]" class="delete" onclick="delete_provider( [% p.id %], [% p.patrons_using %] );"> |
|
|
59 |
<span style="color:white"><i class="fa fa-trash"></i> Delete</span> |
60 |
</a> |
61 |
[% ELSE %] |
62 |
<a class="btn delete" href="#" id="delete_[% p.id %]" onclick="delete_provider( [% p.id %] );"> |
63 |
<i class="fa fa-trash"></i> Delete |
64 |
</a> |
65 |
[% END %] |
66 |
</td> |
57 |
</td> |
67 |
</tr> |
58 |
</tr> |
68 |
[% END %] |
59 |
[% END %] |
69 |
- |
|
|