Lines 134-174
Link Here
|
134 |
[% ELSIF op == 'list' %] |
134 |
[% ELSIF op == 'list' %] |
135 |
<h1>Additional fields for '[% tablename | html %]'</h1> |
135 |
<h1>Additional fields for '[% tablename | html %]'</h1> |
136 |
[% IF fields %] |
136 |
[% IF fields %] |
137 |
<table id="fieldst"> |
137 |
<div class="page-section"> |
138 |
<thead> |
138 |
<table id="fieldst"> |
139 |
<tr> |
139 |
<thead> |
140 |
<th>Name</th> |
|
|
141 |
<th>Authorized value category</th> |
142 |
[% IF show_marcfield %] |
143 |
<th>MARC field</th> |
144 |
[% END %] |
145 |
[% IF show_searchable %] |
146 |
<th>Searchable</th> |
147 |
[% END %] |
148 |
<th class="noExport">Actions</th> |
149 |
</tr> |
150 |
</thead> |
151 |
<tbody> |
152 |
[% FOR field IN fields %] |
153 |
<tr> |
140 |
<tr> |
154 |
<td>[% field.name | html %]</td> |
141 |
<th>Name</th> |
155 |
<td>[% field.authorised_value_category | html %]</td> |
142 |
<th>Authorized value category</th> |
156 |
[% IF show_marcfield %] |
143 |
[% IF show_marcfield %] |
157 |
<td>[% field.marcfield | html %]</td> |
144 |
<th>MARC field</th> |
158 |
[% END %] |
145 |
[% END %] |
159 |
[% IF show_searchable %] |
146 |
[% IF show_searchable %] |
160 |
<td> |
147 |
<th>Searchable</th> |
161 |
[% IF field.searchable %]Yes[% ELSE %]No[% END %] |
|
|
162 |
</td> |
163 |
[% END %] |
148 |
[% END %] |
164 |
<td class="actions"> |
149 |
<th class="noExport">Actions</th> |
165 |
<a class="btn btn-default btn-xs" href="?op=add_form&field_id=[% field.id | html %]"><i class="fa fa-pencil"></i> Edit</a> |
|
|
166 |
<a class="confirmdelete btn btn-default btn-xs" href="?op=delete&field_id=[% field.id | uri %]&tablename=[% tablename | uri %]"><i class="fa fa-trash"></i> Delete</a> |
167 |
</td> |
168 |
</tr> |
150 |
</tr> |
169 |
[% END %] |
151 |
</thead> |
170 |
</tbody> |
152 |
<tbody> |
171 |
</table> |
153 |
[% FOR field IN fields %] |
|
|
154 |
<tr> |
155 |
<td>[% field.name | html %]</td> |
156 |
<td>[% field.authorised_value_category | html %]</td> |
157 |
[% IF show_marcfield %] |
158 |
<td>[% field.marcfield | html %]</td> |
159 |
[% END %] |
160 |
[% IF show_searchable %] |
161 |
<td> |
162 |
[% IF field.searchable %]Yes[% ELSE %]No[% END %] |
163 |
</td> |
164 |
[% END %] |
165 |
<td class="actions"> |
166 |
<a class="btn btn-default btn-xs" href="?op=add_form&field_id=[% field.id | html %]"><i class="fa fa-pencil"></i> Edit</a> |
167 |
<a class="confirmdelete btn btn-default btn-xs" href="?op=delete&field_id=[% field.id | uri %]&tablename=[% tablename | uri %]"><i class="fa fa-trash"></i> Delete</a> |
168 |
</td> |
169 |
</tr> |
170 |
[% END %] |
171 |
</tbody> |
172 |
</table> |
173 |
</div><!-- /.page-section --> |
172 |
[% ELSE %] |
174 |
[% ELSE %] |
173 |
[% IF tablename %]There are no additional fields defined for this table.[% END %] |
175 |
[% IF tablename %]There are no additional fields defined for this table.[% END %] |
174 |
[% END %] |
176 |
[% END %] |
175 |
- |
|
|