Bug 31955: Add page-section div to additional-fields.tt
authorLucas Gass <lucas@bywatersolutions.com>
Mon, 24 Oct 2022 17:45:08 +0000 (17:45 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 24 Oct 2022 18:39:05 +0000 (15:39 -0300)
To test:
1. Apply patch
2. Look at Administration > Additional fields.
3. Each of the 4 tables should have a page-section div around it:

    Order baskets (aqbasket)
    Subscriptions (subscription)
    Account lines (credit) (accountlines:credit)
    Account lines (debit) (accountlines:debit)

Note: There are some indentation changes.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt

index 31acd80..858e5a7 100755 (executable)
     [% ELSIF op == 'list' %]
         <h1>Additional fields for '[% tablename | html %]'</h1>
         [% IF fields %]
-            <table id="fieldst">
-                <thead>
-                    <tr>
-                        <th>Name</th>
-                        <th>Authorized value category</th>
-                        [% IF show_marcfield %]
-                            <th>MARC field</th>
-                        [% END %]
-                        [% IF show_searchable %]
-                            <th>Searchable</th>
-                        [% END %]
-                        <th class="noExport">Actions</th>
-                    </tr>
-                </thead>
-                <tbody>
-                    [% FOR field IN fields %]
+            <div class="page-section">
+                <table id="fieldst">
+                    <thead>
                         <tr>
-                            <td>[% field.name | html %]</td>
-                            <td>[% field.authorised_value_category | html %]</td>
+                            <th>Name</th>
+                            <th>Authorized value category</th>
                             [% IF show_marcfield %]
-                                <td>[% field.marcfield | html %]</td>
+                                <th>MARC field</th>
                             [% END %]
                             [% IF show_searchable %]
-                                <td>
-                                    [% IF field.searchable %]Yes[% ELSE %]No[% END %]
-                                </td>
+                                <th>Searchable</th>
                             [% END %]
-                            <td class="actions">
-                                <a class="btn btn-default btn-xs" href="?op=add_form&amp;field_id=[% field.id | html %]"><i class="fa fa-pencil"></i> Edit</a>
-                                <a class="confirmdelete btn btn-default btn-xs" href="?op=delete&amp;field_id=[% field.id | uri %]&amp;tablename=[% tablename | uri %]"><i class="fa fa-trash"></i> Delete</a>
-                            </td>
+                            <th class="noExport">Actions</th>
                         </tr>
-                    [% END %]
-                </tbody>
-            </table>
+                    </thead>
+                    <tbody>
+                        [% FOR field IN fields %]
+                            <tr>
+                                <td>[% field.name | html %]</td>
+                                <td>[% field.authorised_value_category | html %]</td>
+                                [% IF show_marcfield %]
+                                    <td>[% field.marcfield | html %]</td>
+                                [% END %]
+                                [% IF show_searchable %]
+                                    <td>
+                                        [% IF field.searchable %]Yes[% ELSE %]No[% END %]
+                                    </td>
+                                [% END %]
+                                <td class="actions">
+                                    <a class="btn btn-default btn-xs" href="?op=add_form&amp;field_id=[% field.id | html %]"><i class="fa fa-pencil"></i> Edit</a>
+                                    <a class="confirmdelete btn btn-default btn-xs" href="?op=delete&amp;field_id=[% field.id | uri %]&amp;tablename=[% tablename | uri %]"><i class="fa fa-trash"></i> Delete</a>
+                                </td>
+                            </tr>
+                        [% END %]
+                    </tbody>
+                </table>
+            </div><!-- /.page-section -->
         [% ELSE %]
             [% IF tablename %]There are no additional fields defined for this table.[% END %]
         [% END %]