View | Details | Raw Unified | Return to bug 27465
Collapse All | Expand All

(-)a/admin/columns_settings.yml (+15 lines)
Lines 155-160 modules: Link Here
155
              cannot_be_toggled: 1
155
              cannot_be_toggled: 1
156
              cannot_be_modified: 1
156
              cannot_be_modified: 1
157
  admin:
157
  admin:
158
    cities:
159
      table_cities:
160
        columns:
161
            -
162
              columnname: city_id
163
            -
164
              columnname: city_name
165
            -
166
              columnname: city_state
167
            -
168
              columnname: city_zipcode
169
            -
170
              columnname: city_country
171
            -
172
              columnname: actions
158
    currency:
173
    currency:
159
      currencies-table:
174
      currencies-table:
160
        columns:
175
        columns:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt (-2 / +4 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
4
[% USE TablesSettings %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; [% IF op =='add_form' %]Cities &rsaquo; [% IF city.cityid %] Modify city[% ELSE %] New city[% END %][% ELSE %][% IF op == 'delete_confirm' %]Cities &rsaquo; Confirm deletion of city[% ELSE %] Cities[% END %][% END %]</title>
6
<title>Koha &rsaquo; Administration &rsaquo; [% IF op =='add_form' %]Cities &rsaquo; [% IF city.cityid %] Modify city[% ELSE %] New city[% END %][% ELSE %][% IF op == 'delete_confirm' %]Cities &rsaquo; Confirm deletion of city[% ELSE %] Cities[% END %][% END %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
Lines 167-174 Link Here
167
[% MACRO jsinclude BLOCK %]
168
[% MACRO jsinclude BLOCK %]
168
    [% Asset.js("js/admin-menu.js") | $raw %]
169
    [% Asset.js("js/admin-menu.js") | $raw %]
169
    [% INCLUDE 'datatables.inc' %]
170
    [% INCLUDE 'datatables.inc' %]
171
    [% INCLUDE 'columns_settings.inc' %]
170
    <script>
172
    <script>
171
173
174
        var columns_settings = [% TablesSettings.GetColumns( 'admin', 'cities', 'table_cities', 'json' ) | $raw %];
172
        $(document).ready(function() {
175
        $(document).ready(function() {
173
            var cities_table_url = '/api/v1/cities?';
176
            var cities_table_url = '/api/v1/cities?';
174
177
Lines 233-239 Link Here
233
                        "orderable": false
236
                        "orderable": false
234
                    }
237
                    }
235
                ]
238
                ]
236
            }, [], 1);
239
            }, columns_settings, 1);
237
240
238
        });
241
        });
239
    </script>
242
    </script>
240
- 

Return to bug 27465