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

(-)a/admin/columns_settings.yml (+17 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
173
              cannot_be_toggled: 1
174
              cannot_be_modified: 1
158
    currency:
175
    currency:
159
      currencies-table:
176
      currencies-table:
160
        columns:
177
        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 199-206 Link Here
199
[% MACRO jsinclude BLOCK %]
200
[% MACRO jsinclude BLOCK %]
200
    [% Asset.js("js/admin-menu.js") | $raw %]
201
    [% Asset.js("js/admin-menu.js") | $raw %]
201
    [% INCLUDE 'datatables.inc' %]
202
    [% INCLUDE 'datatables.inc' %]
203
    [% INCLUDE 'columns_settings.inc' %]
202
    <script>
204
    <script>
203
205
206
        var columns_settings = [% TablesSettings.GetColumns( 'admin', 'cities', 'table_cities', 'json' ) | $raw %];
204
        $(document).ready(function() {
207
        $(document).ready(function() {
205
            var cities_table_url = '/api/v1/cities?';
208
            var cities_table_url = '/api/v1/cities?';
206
209
Lines 265-271 Link Here
265
                        "orderable": false
268
                        "orderable": false
266
                    }
269
                    }
267
                ]
270
                ]
268
            }, [], 1);
271
            }, columns_settings, 1);
269
272
270
        });
273
        });
271
    </script>
274
    </script>
272
- 

Return to bug 27465