|
Lines 69-119
Link Here
|
| 69 |
[% END %] |
69 |
[% END %] |
| 70 |
|
70 |
|
| 71 |
[% IF club_templates.count %] |
71 |
[% IF club_templates.count %] |
| 72 |
<table id="club-templates-table"> |
72 |
<div class="page-section"> |
| 73 |
<thead> |
73 |
<table id="club-templates-table"> |
| 74 |
<tr> |
74 |
<thead> |
| 75 |
<th>Name</th> |
|
|
| 76 |
<th>Description</th> |
| 77 |
<th>Public enrollment</th> |
| 78 |
<th>Email required</th> |
| 79 |
<th>Library</th> |
| 80 |
<th class="noExport">Actions</th> |
| 81 |
</tr> |
| 82 |
</thead> |
| 83 |
<tbody> |
| 84 |
[% FOREACH t IN club_templates %] |
| 85 |
<tr> |
75 |
<tr> |
| 86 |
<td>[% t.name | html %]</td> |
76 |
<th>Name</th> |
| 87 |
<td>[% t.description | html %]</td> |
77 |
<th>Description</th> |
| 88 |
<td> |
78 |
<th>Public enrollment</th> |
| 89 |
[% IF t.is_enrollable_from_opac %] |
79 |
<th>Email required</th> |
| 90 |
<span>Yes</span> |
80 |
<th>Library</th> |
| 91 |
[% ELSE %] |
81 |
<th class="noExport">Actions</th> |
| 92 |
<span>No</span> |
|
|
| 93 |
[% END %] |
| 94 |
</td> |
| 95 |
<td> |
| 96 |
[% IF t.is_email_required %] |
| 97 |
<span>Yes</span> |
| 98 |
[% ELSE %] |
| 99 |
<span>No</span> |
| 100 |
[% END %] |
| 101 |
</td> |
| 102 |
<td>[% Branches.GetName( t.branchcode ) | html %]</td> |
| 103 |
<td class="actions"> |
| 104 |
[% IF CAN_user_clubs_edit_templates %] |
| 105 |
<a class="btn btn-xs btn-default" style="white-space:nowrap" href="/cgi-bin/koha/clubs/templates-add-modify.pl?id=[% t.id | html %]"> |
| 106 |
<i class="fa fa-pencil"></i> Edit |
| 107 |
</a> |
| 108 |
<a class="btn btn-xs btn-default delete_template" href="#" data-id="[% t.id | html %]" data-name="[% t.name | html %]"> |
| 109 |
<i class="fa fa-trash"></i> Delete |
| 110 |
</a> |
| 111 |
[% END %] |
| 112 |
</td> |
| 113 |
</tr> |
82 |
</tr> |
| 114 |
[% END %] |
83 |
</thead> |
| 115 |
</tbody> |
84 |
<tbody> |
| 116 |
</table> |
85 |
[% FOREACH t IN club_templates %] |
|
|
86 |
<tr> |
| 87 |
<td>[% t.name | html %]</td> |
| 88 |
<td>[% t.description | html %]</td> |
| 89 |
<td> |
| 90 |
[% IF t.is_enrollable_from_opac %] |
| 91 |
<span>Yes</span> |
| 92 |
[% ELSE %] |
| 93 |
<span>No</span> |
| 94 |
[% END %] |
| 95 |
</td> |
| 96 |
<td> |
| 97 |
[% IF t.is_email_required %] |
| 98 |
<span>Yes</span> |
| 99 |
[% ELSE %] |
| 100 |
<span>No</span> |
| 101 |
[% END %] |
| 102 |
</td> |
| 103 |
<td>[% Branches.GetName( t.branchcode ) | html %]</td> |
| 104 |
<td class="actions"> |
| 105 |
[% IF CAN_user_clubs_edit_templates %] |
| 106 |
<a class="btn btn-xs btn-default" style="white-space:nowrap" href="/cgi-bin/koha/clubs/templates-add-modify.pl?id=[% t.id | html %]"> |
| 107 |
<i class="fa fa-pencil"></i> Edit |
| 108 |
</a> |
| 109 |
<a class="btn btn-xs btn-default delete_template" href="#" data-id="[% t.id | html %]" data-name="[% t.name | html %]"> |
| 110 |
<i class="fa fa-trash"></i> Delete |
| 111 |
</a> |
| 112 |
[% END %] |
| 113 |
</td> |
| 114 |
</tr> |
| 115 |
[% END %] |
| 116 |
</tbody> |
| 117 |
</table> |
| 118 |
</div> <!-- /.page-section --> |
| 117 |
[% ELSE %] |
119 |
[% ELSE %] |
| 118 |
<div class="dialog message">No club templates defined.</div> |
120 |
<div class="dialog message">No club templates defined.</div> |
| 119 |
[% END %] |
121 |
[% END %] |
|
Lines 138-144
Link Here
|
| 138 |
[% END %] |
140 |
[% END %] |
| 139 |
|
141 |
|
| 140 |
[% IF clubs.count %] |
142 |
[% IF clubs.count %] |
| 141 |
[% INCLUDE 'clubs-table.inc' %] |
143 |
<div class="page-section"> |
|
|
144 |
[% INCLUDE 'clubs-table.inc' %] |
| 145 |
</div> <!-- /.page-section --> |
| 142 |
[% ELSE %] |
146 |
[% ELSE %] |
| 143 |
[% IF club_templates.count %] |
147 |
[% IF club_templates.count %] |
| 144 |
<div class="dialog message">No clubs defined.</div> |
148 |
<div class="dialog message">No clubs defined.</div> |
| 145 |
- |
|
|