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