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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt (-35 / +37 lines)
Lines 166-209 Cash registers › Administration › Koha Link Here
166
               </h3>
166
               </h3>
167
167
168
               [% IF cash_registers.count %]
168
               [% IF cash_registers.count %]
169
               <table id="table_cash_registers">
169
               <div class="page-section">
170
                   <thead>
170
                   <table id="table_cash_registers">
171
                       <th>Name</th>
171
                       <thead>
172
                       <th>Description</th>
172
                           <th>Name</th>
173
                       <th>Library</th>
173
                           <th>Description</th>
174
                       <th>Library default</th>
174
                           <th>Library</th>
175
                       <th>Initial float</th>
175
                           <th>Library default</th>
176
                       <th class="noExport">Actions</th>
176
                           <th>Initial float</th>
177
                   </thead>
177
                           <th class="noExport">Actions</th>
178
                   <tbody>
178
                       </thead>
179
                   [% FOREACH cash_register IN cash_registers %]
179
                       <tbody>
180
                   [% IF cash_register.branch_default %]
180
                       [% FOREACH cash_register IN cash_registers %]
181
                   <tr class="default">
181
                       [% IF cash_register.branch_default %]
182
                   [% ELSE %]
182
                       <tr class="default">
183
                   <tr>
183
                       [% ELSE %]
184
                   [% END %]
184
                       <tr>
185
                       <td>[% cash_register.name | html %]</td>
185
                       [% END %]
186
                       <td>[% cash_register.description | html %]</td>
186
                           <td>[% cash_register.name | html %]</td>
187
                       <td>[% cash_register.library.branchname | html %]</td>
187
                           <td>[% cash_register.description | html %]</td>
188
                       <td>[% IF cash_register.branch_default %]Yes[% ELSE %]No[% END %]</td>
188
                           <td>[% cash_register.library.branchname | html %]</td>
189
                       <td>[% cash_register.starting_float | $Price %]</td>
189
                           <td>[% IF cash_register.branch_default %]Yes[% ELSE %]No[% END %]</td>
190
                       [% IF cash_register.archived == '0' %]
190
                           <td>[% cash_register.starting_float | $Price %]</td>
191
                       <td class="actions">
191
                           [% IF cash_register.archived == '0' %]
192
                           <a class="btn btn-default btn-xs" href="cash_registers.pl?op=add_form&amp;id=[% cash_register.id | uri %]"><i class="fa fa-pencil"></i> Edit</a>
192
                           <td class="actions">
193
                           [% IF cash_register.branch_default %]
193
                               <a class="btn btn-default btn-xs" href="cash_registers.pl?op=add_form&amp;id=[% cash_register.id | uri %]"><i class="fa fa-pencil"></i> Edit</a>
194
                           <a class="btn btn-default btn-xs" href="cash_registers.pl?op=drop_default&amp;id=[% cash_register.id | uri %]"><i class="fa fa-archive"></i> Drop default</a>
194
                               [% IF cash_register.branch_default %]
195
                               <a class="btn btn-default btn-xs" href="cash_registers.pl?op=drop_default&amp;id=[% cash_register.id | uri %]"><i class="fa fa-archive"></i> Drop default</a>
196
                               [% ELSE %]
197
                               <a class="btn btn-default btn-xs" href="cash_registers.pl?op=make_default&amp;id=[% cash_register.id | uri %]"><i class="fa fa-archive"></i> Make default</a>
198
                               [% END %]
199
                               <a class="btn btn-default btn-xs" href="cash_registers.pl?op=archive&amp;id=[% cash_register.id | uri %]"><i class="fa fa-archive"></i> Archive</a>
200
                           </td>
195
                           [% ELSE %]
201
                           [% ELSE %]
196
                           <a class="btn btn-default btn-xs" href="cash_registers.pl?op=make_default&amp;id=[% cash_register.id | uri %]"><i class="fa fa-archive"></i> Make default</a>
202
                           <td class="actions"><a class="btn btn-default btn-xs" href="cash_registers.pl?op=unarchive&amp;id=[% cash_register.id | uri %]"><i class="fa fa-trash-restore"></i> Restore</a></td>
197
                           [% END %]
203
                           [% END %]
198
                           <a class="btn btn-default btn-xs" href="cash_registers.pl?op=archive&amp;id=[% cash_register.id | uri %]"><i class="fa fa-archive"></i> Archive</a>
204
                       </tr>
199
                       </td>
200
                       [% ELSE %]
201
                       <td class="actions"><a class="btn btn-default btn-xs" href="cash_registers.pl?op=unarchive&amp;id=[% cash_register.id | uri %]"><i class="fa fa-trash-restore"></i> Restore</a></td>
202
                       [% END %]
205
                       [% END %]
203
                   </tr>
206
                       </tbody>
204
                   [% END %]
207
                   </table>
205
                   </tbody>
208
               </div><!-- /.page-section -->
206
               </table>
207
               [% ELSE %]
209
               [% ELSE %]
208
               <div class="dialog message">There are no cash registers defined. <a href="/cgi-bin/koha/admin/cash_registers.pl?op=add_form">Start adding cash registers</a>.</div>
210
               <div class="dialog message">There are no cash registers defined. <a href="/cgi-bin/koha/admin/cash_registers.pl?op=add_form">Start adding cash registers</a>.</div>
209
               [% END # /cash_register.count %]
211
               [% END # /cash_register.count %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt (-13 / +15 lines)
Lines 181-199 Link Here
181
    [% END %]
181
    [% END %]
182
182
183
    [% IF cities_count > 0 %]
183
    [% IF cities_count > 0 %]
184
        <div class="table_cities_table_controls"></div>
184
        <div class="page-section">
185
        <table id="table_cities">
185
            <div class="table_cities_table_controls"></div>
186
            <thead>
186
            <table id="table_cities">
187
                <tr>
187
                <thead>
188
                    <th>City ID</th>
188
                    <tr>
189
                    <th>City</th>
189
                        <th>City ID</th>
190
                    <th>State</th>
190
                        <th>City</th>
191
                    <th>ZIP/Postal code</th>
191
                        <th>State</th>
192
                    <th>Country</th>
192
                        <th>ZIP/Postal code</th>
193
                    <th data-class-name="actions noExport">Actions</th>
193
                        <th>Country</th>
194
                </tr>
194
                        <th data-class-name="actions noExport">Actions</th>
195
            </thead>
195
                    </tr>
196
        </table>
196
                </thead>
197
            </table>
198
        </div><!-- /.page-section -->
197
    [% ELSE %]
199
    [% ELSE %]
198
        <div class="dialog message">
200
        <div class="dialog message">
199
            There are no cities defined. <a href="/cgi-bin/koha/admin/cities.pl?op=add_form">Create a new city</a>.
201
            There are no cities defined. <a href="/cgi-bin/koha/admin/cities.pl?op=add_form">Create a new city</a>.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt (-50 / +52 lines)
Lines 162-220 Link Here
162
162
163
                    <h1>Account credit types</h1>
163
                    <h1>Account credit types</h1>
164
                    [% IF credit_types.count %]
164
                    [% IF credit_types.count %]
165
                        <table id="table_credit_types">
165
                        <div class="page-section">
166
                            <thead>
166
                            <table id="table_credit_types">
167
                                <th>Archived</th>
167
                                <thead>
168
                                <th>System</th>
168
                                    <th>Archived</th>
169
                                <th>Code</th>
169
                                    <th>System</th>
170
                                <th>Description</th>
170
                                    <th>Code</th>
171
                                <th>Available for</th>
171
                                    <th>Description</th>
172
                                <th>Credit number enabled</th>
172
                                    <th>Available for</th>
173
                                <th>Library limitations</th>
173
                                    <th>Credit number enabled</th>
174
                                <th class="noExport">Actions</th>
174
                                    <th>Library limitations</th>
175
                            </thead>
175
                                    <th class="noExport">Actions</th>
176
                            <tbody>
176
                                </thead>
177
                                [% FOREACH credit_type IN credit_types %]
177
                                <tbody>
178
                                <tr>
178
                                    [% FOREACH credit_type IN credit_types %]
179
                                    <td>[% credit_type.archived | html %]</td>
179
                                    <tr>
180
                                    <td>[% credit_type.is_system | html %]</td>
180
                                        <td>[% credit_type.archived | html %]</td>
181
                                    <td>[% credit_type.code | html %]</td>
181
                                        <td>[% credit_type.is_system | html %]</td>
182
                                    <td>[% credit_type.description | html %]</td>
182
                                        <td>[% credit_type.code | html %]</td>
183
                                    <td>[% IF credit_type.can_be_added_manually %]Manual credit[% END %]</td>
183
                                        <td>[% credit_type.description | html %]</td>
184
                                    <td>[% IF credit_type.credit_number_enabled %]Yes[% ELSE %]No[% END %]</td>
184
                                        <td>[% IF credit_type.can_be_added_manually %]Manual credit[% END %]</td>
185
                                    <td>
185
                                        <td>[% IF credit_type.credit_number_enabled %]Yes[% ELSE %]No[% END %]</td>
186
                                        [% IF credit_type.library_limits.count > 0 %]
186
                                        <td>
187
                                            [% library_limits_str = "" %]
187
                                            [% IF credit_type.library_limits.count > 0 %]
188
                                            [% FOREACH library IN credit_type.library_limits %]
188
                                                [% library_limits_str = "" %]
189
                                                [%- IF loop.first -%]
189
                                                [% FOREACH library IN credit_type.library_limits %]
190
                                                [% library_limits_str = library.branchname _ " (" _ library.branchcode _ ")" %]
190
                                                    [%- IF loop.first -%]
191
                                                [% ELSE %]
191
                                                    [% library_limits_str = library.branchname _ " (" _ library.branchcode _ ")" %]
192
                                                [% library_limits_str = library_limits_str _ "\n" _ library.branchname _ " (" _ library.branchcode _ ")" %]
192
                                                    [% ELSE %]
193
                                                    [% library_limits_str = library_limits_str _ "\n" _ library.branchname _ " (" _ library.branchcode _ ")" %]
194
                                                    [% END %]
193
                                                [% END %]
195
                                                [% END %]
196
                                                <span class="library_limitation" title="[% library_limits_str | html %]">
197
                                                    [% limits_count = credit_type.library_limits.count %]
198
                                                    [% tnx('{count} library limitation', '{count} library limitations', limits_count, { count => limits_count }) %]
199
                                            [% ELSE %]
200
                                                <span>No library limitation</span>
201
                                            [% END %]
202
                                        </td>
203
                                        <td class="actions">
204
                                            [% IF !credit_type.archived %]
205
                                                <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/credit_types.pl?op=add_form&amp;code=[% credit_type.code | uri %]&type=credit"><i class="fa fa-pencil"></i> Edit</a>
206
                                            [% END %]
207
                                            [% IF !credit_type.is_system && !credit_type.archived %]
208
                                                <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/credit_types.pl?op=archive&amp;code=[% credit_type.code | uri %]"><i class="fa fa-archive"></i> Archive</a>
194
                                            [% END %]
209
                                            [% END %]
195
                                            <span class="library_limitation" title="[% library_limits_str | html %]">
196
                                                [% limits_count = credit_type.library_limits.count %]
197
                                                [% tnx('{count} library limitation', '{count} library limitations', limits_count, { count => limits_count }) %]
198
                                        [% ELSE %]
199
                                            <span>No library limitation</span>
200
                                        [% END %]
201
                                    </td>
202
                                    <td class="actions">
203
                                        [% IF !credit_type.archived %]
204
                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/credit_types.pl?op=add_form&amp;code=[% credit_type.code | uri %]&type=credit"><i class="fa fa-pencil"></i> Edit</a>
205
                                        [% END %]
206
                                        [% IF !credit_type.is_system && !credit_type.archived %]
207
                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/credit_types.pl?op=archive&amp;code=[% credit_type.code | uri %]"><i class="fa fa-archive"></i> Archive</a>
208
                                        [% END %]
209
210
210
                                        [% IF !credit_type.is_system && credit_type.archived %]
211
                                            [% IF !credit_type.is_system && credit_type.archived %]
211
                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/credit_types.pl?op=unarchive&amp;code=[% credit_type.code | uri %]"><i class="fa fa-undo"></i> Restore</a>
212
                                                <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/credit_types.pl?op=unarchive&amp;code=[% credit_type.code | uri %]"><i class="fa fa-undo"></i> Restore</a>
212
                                        [% END %]
213
                                            [% END %]
213
                                    </td>
214
                                        </td>
214
                                </tr>
215
                                    </tr>
215
                                [% END %]
216
                                    [% END %]
216
                            </tbody>
217
                                </tbody>
217
                        </table>
218
                            </table>
219
                        </div><!-- /.page-section -->
218
                    [% ELSE %]
220
                    [% ELSE %]
219
                        <div class="dialog message">
221
                        <div class="dialog message">
220
                            There are no account credit types defined.
222
                            There are no account credit types defined.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt (-57 / +59 lines)
Lines 153-217 Link Here
153
153
154
                    <h1>Account debit types</h1>
154
                    <h1>Account debit types</h1>
155
                    [% IF debit_types.count %]
155
                    [% IF debit_types.count %]
156
                        <table id="table_debit_types">
156
                        <div class="page-section">
157
                            <thead>
157
                            <table id="table_debit_types">
158
                                <th>Archived</th>
158
                                <thead>
159
                                <th>System</th>
159
                                    <th>Archived</th>
160
                                <th>Code</th>
160
                                    <th>System</th>
161
                                <th>Description</th>
161
                                    <th>Code</th>
162
                                <th>Default amount</th>
162
                                    <th>Description</th>
163
                                <th>Available for</th>
163
                                    <th>Default amount</th>
164
                                <th>Library limitations</th>
164
                                    <th>Available for</th>
165
                                <th class="noExport">Actions</th>
165
                                    <th>Library limitations</th>
166
                            </thead>
166
                                    <th class="noExport">Actions</th>
167
                            <tbody>
167
                                </thead>
168
                                [% FOREACH debit_type IN debit_types %]
168
                                <tbody>
169
                                <tr>
169
                                    [% FOREACH debit_type IN debit_types %]
170
                                    <td>[% debit_type.archived | html %]</td>
170
                                    <tr>
171
                                    <td>[% debit_type.is_system | html %]</td>
171
                                        <td>[% debit_type.archived | html %]</td>
172
                                    <td>[% debit_type.code | html %]</td>
172
                                        <td>[% debit_type.is_system | html %]</td>
173
                                    <td>[% debit_type.description | html %]</td>
173
                                        <td>[% debit_type.code | html %]</td>
174
                                    <td>[% debit_type.default_amount | $Price %]</td>
174
                                        <td>[% debit_type.description | html %]</td>
175
                                    <td>[% IF debit_type.can_be_invoiced && debit_type.can_be_sold %]
175
                                        <td>[% debit_type.default_amount | $Price %]</td>
176
                                        <i class="fa fa-id-card-o"></i> Invoicing, <i class="fa fa-shopping-cart"></i> Sale
176
                                        <td>[% IF debit_type.can_be_invoiced && debit_type.can_be_sold %]
177
                                        [% ELSIF debit_type.can_be_invoiced %]
177
                                            <i class="fa fa-id-card-o"></i> Invoicing, <i class="fa fa-shopping-cart"></i> Sale
178
                                        <i class="fa fa-id-card-o"></i> Invoicing
178
                                            [% ELSIF debit_type.can_be_invoiced %]
179
                                        [% ELSIF debit_type.can_be_sold %]
179
                                            <i class="fa fa-id-card-o"></i> Invoicing
180
                                        <i class="fa fa-shopping-cart"></i> Sale
180
                                            [% ELSIF debit_type.can_be_sold %]
181
                                        [% END %]
181
                                            <i class="fa fa-shopping-cart"></i> Sale
182
                                    </td>
183
                                    <td>
184
                                        [% IF debit_type.library_limits.count > 0 %]
185
                                            [% library_limits_str = "" %]
186
                                            [% FOREACH library IN debit_type.library_limits %]
187
                                                [%- IF loop.first -%]
188
                                                [% library_limits_str = library.branchname _ " (" _ library.branchcode _ ")" %]
189
                                                [% ELSE %]
190
                                                [% library_limits_str = library_limits_str _ "\n" _ library.branchname _ " (" _ library.branchcode _ ")" %]
191
                                                [% END %]
192
                                            [% END %]
182
                                            [% END %]
193
                                            <span class="library_limitation" title="[% library_limits_str | html %]">
183
                                        </td>
194
                                                [% IF debit_type.library_limits.count > 1 %]
184
                                        <td>
195
                                                    <span>[% debit_type.library_limits.count | html %] library limitations</span>
185
                                            [% IF debit_type.library_limits.count > 0 %]
196
                                                [% ELSE %]
186
                                                [% library_limits_str = "" %]
197
                                                    <span>[% debit_type.library_limits.count | html %] library limitation</span>
187
                                                [% FOREACH library IN debit_type.library_limits %]
188
                                                    [%- IF loop.first -%]
189
                                                    [% library_limits_str = library.branchname _ " (" _ library.branchcode _ ")" %]
190
                                                    [% ELSE %]
191
                                                    [% library_limits_str = library_limits_str _ "\n" _ library.branchname _ " (" _ library.branchcode _ ")" %]
192
                                                    [% END %]
198
                                                [% END %]
193
                                                [% END %]
199
                                        [% ELSE %]
194
                                                <span class="library_limitation" title="[% library_limits_str | html %]">
200
                                            <span>No limitation</span>
195
                                                    [% IF debit_type.library_limits.count > 1 %]
201
                                        [% END %]
196
                                                        <span>[% debit_type.library_limits.count | html %] library limitations</span>
202
                                    </td>
197
                                                    [% ELSE %]
203
                                    <td class="actions">
198
                                                        <span>[% debit_type.library_limits.count | html %] library limitation</span>
204
                                        [% IF !debit_type.is_system && !debit_type.archived %]
199
                                                    [% END %]
205
                                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/debit_types.pl?op=add_form&amp;code=[% debit_type.code | uri %]&type=debit"><i class="fa fa-pencil"></i> Edit</a>
200
                                            [% ELSE %]
206
                                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/debit_types.pl?op=archive&amp;code=[% debit_type.code | uri %]"><i class="fa fa-archive"></i> Archive</a>
201
                                                <span>No limitation</span>
207
                                        [% ELSIF debit_type.archived %]
202
                                            [% END %]
208
                                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/debit_types.pl?op=unarchive&amp;code=[% debit_type.code | uri %]"><i class="fa fa-undo"></i> Restore</a>
203
                                        </td>
209
                                        [% END %]
204
                                        <td class="actions">
210
                                    </td>
205
                                            [% IF !debit_type.is_system && !debit_type.archived %]
211
                                </tr>
206
                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/debit_types.pl?op=add_form&amp;code=[% debit_type.code | uri %]&type=debit"><i class="fa fa-pencil"></i> Edit</a>
212
                                [% END %]
207
                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/debit_types.pl?op=archive&amp;code=[% debit_type.code | uri %]"><i class="fa fa-archive"></i> Archive</a>
213
                            </tbody>
208
                                            [% ELSIF debit_type.archived %]
214
                        </table>
209
                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/debit_types.pl?op=unarchive&amp;code=[% debit_type.code | uri %]"><i class="fa fa-undo"></i> Restore</a>
210
                                            [% END %]
211
                                        </td>
212
                                    </tr>
213
                                    [% END %]
214
                                </tbody>
215
                            </table>
216
                        </div><!-- /.page-section -->
215
                    [% ELSE %]
217
                    [% ELSE %]
216
                        <div class="dialog message">
218
                        <div class="dialog message">
217
                            There are no account debit types defined. <a href="/cgi-bin/koha/admin/debit_types.pl?op=add_form">Create new debit type</a>
219
                            There are no account debit types defined. <a href="/cgi-bin/koha/admin/debit_types.pl?op=add_form">Create new debit type</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt (-55 / +57 lines)
Lines 291-355 Patron attribute types &rsaquo; Administration &rsaquo; Koha Link Here
291
    &mdash; it was already absent from the database.</div>
291
    &mdash; it was already absent from the database.</div>
292
[% END %]
292
[% END %]
293
[% IF ( available_attribute_types ) %]
293
[% IF ( available_attribute_types ) %]
294
  [% FOREACH attribute IN available_attribute_types %]
294
    [% FOREACH attribute IN available_attribute_types %]
295
    [% IF attribute.class %]
295
    [% IF attribute.class %]
296
        <h4>[% attribute.lib | html %]</h4>
296
        <h4>[% attribute.lib | html %]</h4>
297
    [% END %]
297
    [% END %]
298
    <table class="patron_attributes_types" id="patron_attr[% attribute.class | html %]">
298
    <div class="page-section">
299
      <thead>
299
        <table class="patron_attributes_types" id="patron_attr[% attribute.class | html %]">
300
        <tr>
300
          <thead>
301
          <th>Code</th>
301
            <tr>
302
          <th>Description</th>
302
              <th>Code</th>
303
          <th>Library limitation</th>
303
              <th>Description</th>
304
          <th>Authorized value category</th>
304
              <th>Library limitation</th>
305
          <th>Mandatory</th>
305
              <th>Authorized value category</th>
306
          <th class="NoSort noExport">Actions</th>
306
              <th>Mandatory</th>
307
        </tr>
307
              <th class="NoSort noExport">Actions</th>
308
      </thead>
308
            </tr>
309
      <tbody>
309
          </thead>
310
        [% FOREACH item IN attribute.items %]
310
          <tbody>
311
          <tr>
311
            [% FOREACH item IN attribute.items %]
312
            <td>[% item.code | html %]</td>
312
              <tr>
313
            <td>[% item.description | html %]</td>
313
                <td>[% item.code | html %]</td>
314
            <td>
314
                <td>[% item.description | html %]</td>
315
                [% SET libraries = item.library_limits %]
315
                <td>
316
                [% IF ( libraries && libraries.count > 0 ) %]
316
                    [% SET libraries = item.library_limits %]
317
                    [% branches_str = "" %]
317
                    [% IF ( libraries && libraries.count > 0 ) %]
318
                    [% FOREACH branch IN libraries %]
318
                        [% branches_str = "" %]
319
                        [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
319
                        [% FOREACH branch IN libraries %]
320
                    [% END %]
320
                            [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
321
                    <span title="[% branches_str | html %]">
322
                        [% IF libraries.count > 1 %]
323
                            <span>[% libraries.count | html %] library limitations</span>
324
                        [% ELSE %]
325
                            <span>[% libraries.count | html %] library limitation</span>
326
                        [% END %]
321
                        [% END %]
327
                    </span>
322
                        <span title="[% branches_str | html %]">
328
                [% ELSE %]
323
                            [% IF libraries.count > 1 %]
329
                    No limitation
324
                                <span>[% libraries.count | html %] library limitations</span>
330
                [% END %]
325
                            [% ELSE %]
331
            </td>
326
                                <span>[% libraries.count | html %] library limitation</span>
332
            <td>
327
                            [% END %]
333
                [% IF ( CAN_user_parameters_manage_auth_values ) %]
328
                        </span>
334
                    <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% item.authorised_value_category | uri %]">[% item.authorised_value_category | html %]</a></td>
329
                    [% ELSE %]
335
                [% ELSE %]
330
                        No limitation
336
                    [% item.authorised_value_category | html %]
331
                    [% END %]
337
                [% END %]
332
                </td>
338
            <td>
333
                <td>
339
                [% IF ( item.mandatory ) -%]
334
                    [% IF ( CAN_user_parameters_manage_auth_values ) %]
340
                   <span>Yes</span>
335
                        <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% item.authorised_value_category | uri %]">[% item.authorised_value_category | html %]</a></td>
341
                [% ELSE -%]
336
                    [% ELSE %]
342
                   <span>No</span>
337
                        [% item.authorised_value_category | html %]
343
                [% END %]
338
                    [% END %]
344
            </td>
339
                <td>
345
            <td class="actions">
340
                    [% IF ( item.mandatory ) -%]
346
              <a class="btn btn-default btn-xs" href="[% script_name | url %]?op=edit_attribute_type&amp;code=[% item.code | uri %]"><i class="fa fa-pencil"></i> Edit</a>
341
                       <span>Yes</span>
347
              <a class="btn btn-default btn-xs" href="[% script_name | url %]?op=delete_attribute_type&amp;code=[% item.code | uri %]"><i class="fa fa-trash"></i> Delete</a>
342
                    [% ELSE -%]
348
            </td>
343
                       <span>No</span>
349
          </tr>
344
                    [% END %]
350
        [% END %]
345
                </td>
351
      </tbody>
346
                <td class="actions">
352
    </table>
347
                  <a class="btn btn-default btn-xs" href="[% script_name | url %]?op=edit_attribute_type&amp;code=[% item.code | uri %]"><i class="fa fa-pencil"></i> Edit</a>
348
                  <a class="btn btn-default btn-xs" href="[% script_name | url %]?op=delete_attribute_type&amp;code=[% item.code | uri %]"><i class="fa fa-trash"></i> Delete</a>
349
                </td>
350
              </tr>
351
            [% END %]
352
          </tbody>
353
        </table>
354
    </div><!-- ./page-section -->
353
  [% END %]
355
  [% END %]
354
[% ELSE %]
356
[% ELSE %]
355
  <p>There are no saved patron attribute types.</p>
357
  <p>There are no saved patron attribute types.</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt (-32 / +34 lines)
Lines 165-204 Link Here
165
        You Searched for [% searchfield | html %]</span>
165
        You Searched for [% searchfield | html %]</span>
166
    [% END %]
166
    [% END %]
167
    [% IF restrictions %]
167
    [% IF restrictions %]
168
        <table id="restriction_types">
168
        <div class="page-section">
169
            <thead>
169
            <table id="restriction_types">
170
                <tr>
170
                <thead>
171
                    <th scope="col">Code</th>
172
                    <th scope="col">Label</th>
173
                    <th scope="col">Default</th>
174
                    <th scope="col">Actions</th>
175
                </tr>
176
            </thead>
177
            <tbody>
178
                [% FOREACH restriction IN restrictions %]
179
                    <tr>
171
                    <tr>
180
                        <td>
172
                        <th scope="col">Code</th>
181
                            [% restriction.code | html %]
173
                        <th scope="col">Label</th>
182
                        </td>
174
                        <th scope="col">Default</th>
183
                        <td>
175
                        <th scope="col">Actions</th>
184
                            [% PROCESS restriction_type_description %]
185
                        </td>
186
                        <td>
187
                            [% IF restriction.is_default %]Yes[% END %]
188
                        </td>
189
                        <td class="actions">
190
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/restrictions.pl?op=add_form&amp;code=[% restriction.code | uri %]"><i class="fa fa-pencil"></i> Edit</a>
191
                            [% IF !restriction.is_system && !restriction.is_default %]
192
                                <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/restrictions.pl?op=delete_confirm&amp;code=[% restriction.code | uri %]"><i class="fa fa-trash"></i> Delete</a>
193
                            [% END %]
194
                            [% IF !restriction.is_system && !restriction.is_default %]
195
                                <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/restrictions.pl?op=make_default&amp;code=[% restriction.code | uri %]"><i class="fa fa-archive"></i> Make default</a>
196
                            [% END %]
197
                        </td>
198
                    </tr>
176
                    </tr>
199
                [% END %]
177
                </thead>
200
            </tbody>
178
                <tbody>
201
        </table>
179
                    [% FOREACH restriction IN restrictions %]
180
                        <tr>
181
                            <td>
182
                                [% restriction.code | html %]
183
                            </td>
184
                            <td>
185
                                [% PROCESS restriction_type_description %]
186
                            </td>
187
                            <td>
188
                                [% IF restriction.is_default %]Yes[% END %]
189
                            </td>
190
                            <td class="actions">
191
                                <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/restrictions.pl?op=add_form&amp;code=[% restriction.code | uri %]"><i class="fa fa-pencil"></i> Edit</a>
192
                                [% IF !restriction.is_system && !restriction.is_default %]
193
                                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/restrictions.pl?op=delete_confirm&amp;code=[% restriction.code | uri %]"><i class="fa fa-trash"></i> Delete</a>
194
                                [% END %]
195
                                [% IF !restriction.is_system && !restriction.is_default %]
196
                                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/restrictions.pl?op=make_default&amp;code=[% restriction.code | uri %]"><i class="fa fa-archive"></i> Make default</a>
197
                                [% END %]
198
                            </td>
199
                        </tr>
200
                    [% END %]
201
                </tbody>
202
            </table>
203
        </div><!-- /.page-section -->
202
    [% ELSE %]
204
    [% ELSE %]
203
        <div class="dialog alert">No restrictions have been defined. <a href="/cgi-bin/koha/admin/restrictions.pl?op=add_form">Create a new restriction</a>.</div>
205
        <div class="dialog alert">No restrictions have been defined. <a href="/cgi-bin/koha/admin/restrictions.pl?op=add_form">Create a new restriction</a>.</div>
204
    [% END %]
206
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt (-109 / +112 lines)
Lines 74-100 Link Here
74
74
75
                    [% IF search_results %]
75
                    [% IF search_results %]
76
                        <h2>Search results</h2>
76
                        <h2>Search results</h2>
77
                        <table class="table table-striped">
77
                        <div class="page-section">
78
                            <thead>
78
                            <table class="table table-striped">
79
                                <tr>
79
                                <thead>
80
                                    <th>Name</th>
80
                                    <tr>
81
                                    <th>Description</th>
81
                                        <th>Name</th>
82
                                    <th>Organization</th>
82
                                        <th>Description</th>
83
                                    <th>Latest version</th>
83
                                        <th>Organization</th>
84
                                    <th>&nbsp;</th>
84
                                        <th>Latest version</th>
85
                                </tr>
85
                                        <th>&nbsp;</th>
86
                            </thead>
86
                                    </tr>
87
87
                                </thead>
88
                            [% FOREACH sr IN search_results %]
88
89
                                <tr>
89
                                [% FOREACH sr IN search_results %]
90
                                    <td><a href="[% sr.result.html_url | url %]" target="_new">[% sr.result.name | html %]</a></td>
90
                                    <tr>
91
                                    <td>[% sr.result.description | html %]</td>
91
                                        <td><a href="[% sr.result.html_url | url %]" target="_new">[% sr.result.name | html %]</a></td>
92
                                    <td>[% sr.repo.name | html %]</td>
92
                                        <td>[% sr.result.description | html %]</td>
93
                                    <td>[% sr.result.tag_name | html %]</td>
93
                                        <td>[% sr.repo.name | html %]</td>
94
                                    <td><a class="btn btn-default btn-sm btn-install-plugin" href="/cgi-bin/koha/plugins/plugins-upload.pl?op=Upload&uploadfile=[% sr.result.install_name | uri %]&uploadlocation=[% sr.result.install_url | uri %]"><i class="fa fa-download"></i> Install</a></td>
94
                                        <td>[% sr.result.tag_name | html %]</td>
95
                                </tr>
95
                                        <td><a class="btn btn-default btn-sm btn-install-plugin" href="/cgi-bin/koha/plugins/plugins-upload.pl?op=Upload&uploadfile=[% sr.result.install_name | uri %]&uploadlocation=[% sr.result.install_url | uri %]"><i class="fa fa-download"></i> Install</a></td>
96
                            [% END %]
96
                                    </tr>
97
                        </table>
97
                                [% END %]
98
                            </table>
99
                        </div><!-- /.page-section -->
98
                    [% END %]
100
                    [% END %]
99
101
100
                    [% UNLESS ( plugins ) %]
102
                    [% UNLESS ( plugins ) %]
Lines 116-220 Link Here
116
                            [% END %]
118
                            [% END %]
117
                        [% END %]
119
                        [% END %]
118
                    [% ELSE %]
120
                    [% ELSE %]
119
                        <table id="installed_plugins">
121
                        <div class="page-section">
120
                            <thead>
122
                            <table id="installed_plugins">
121
                                <tr>
123
                                <thead>
122
                                    <th>Name</th>
124
                                    <tr>
123
                                    <th>Description</th>
125
                                        <th>Name</th>
124
                                    <th>Author</th>
126
                                        <th>Description</th>
125
                                    <th>Plugin version</th>
127
                                        <th>Author</th>
126
                                    <th>Minimum Koha version</th>
128
                                        <th>Plugin version</th>
127
                                    <th>Maximum Koha version</th>
129
                                        <th>Minimum Koha version</th>
128
                                    <th>Last updated</th>
130
                                        <th>Maximum Koha version</th>
129
                                    [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
131
                                        <th>Last updated</th>
130
                                        <th class="noExport">Actions</th>
132
                                        [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
131
                                    [% END %]
133
                                            <th class="noExport">Actions</th>
132
                                </tr>
133
                            </thead>
134
135
                            [% FOREACH plugin IN plugins %]
136
                                [% IF plugin.error %]
137
                                <tr class="warn">
138
                                    <td>
139
                                        <strong>[% plugin.name | html %]</strong>
140
                                        <span class="label label-warning">ERRORS</span>
141
                                    </td>
142
                                    [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
143
                                    <td colspan="7">Error found whilst attempting to load plugin</td>
144
                                    [% ELSE %]
145
                                    <td colspan="6">Error found whilst attempting to load plugin</td>
146
                                    [% END %]
147
                                </tr>
148
                                [% ELSE %]
149
                                <tr>
150
                                    <td>
151
                                        <strong>[% plugin.metadata.name | html %]</strong>
152
                                        [% IF ( plugin.is_enabled ) %]
153
                                            <span class="label label-primary">ENABLED</span>
154
                                        [% ELSE %]
155
                                            <span class="label label-default">DISABLED</span>
156
                                        [% END %]
134
                                        [% END %]
157
                                    </td>
135
                                    </tr>
158
                                    <td>
136
                                </thead>
159
                                        [% plugin.metadata.description | html %]
160
137
161
                                        [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
138
                                [% FOREACH plugin IN plugins %]
162
                                            <div class="dialog alert">
139
                                    [% IF plugin.error %]
163
                                                Warning: This plugin was written for a newer version of Koha. Use at your own risk.
140
                                    <tr class="warn">
164
                                            </div>
141
                                        <td>
142
                                            <strong>[% plugin.name | html %]</strong>
143
                                            <span class="label label-warning">ERRORS</span>
144
                                        </td>
145
                                        [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
146
                                        <td colspan="7">Error found whilst attempting to load plugin</td>
147
                                        [% ELSE %]
148
                                        <td colspan="6">Error found whilst attempting to load plugin</td>
165
                                        [% END %]
149
                                        [% END %]
150
                                    </tr>
151
                                    [% ELSE %]
152
                                    <tr>
153
                                        <td>
154
                                            <strong>[% plugin.metadata.name | html %]</strong>
155
                                            [% IF ( plugin.is_enabled ) %]
156
                                                <span class="label label-primary">ENABLED</span>
157
                                            [% ELSE %]
158
                                                <span class="label label-default">DISABLED</span>
159
                                            [% END %]
160
                                        </td>
161
                                        <td>
162
                                            [% plugin.metadata.description | html %]
166
163
167
                                        [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
164
                                            [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
168
                                            <div class="dialog alert">
165
                                                <div class="dialog alert">
169
                                                Warning: This plugin was written for an older version of Koha. Use at your own risk.
166
                                                    Warning: This plugin was written for a newer version of Koha. Use at your own risk.
170
                                            </div>
167
                                                </div>
171
                                        [% END %]
168
                                            [% END %]
172
                                    </td>
169
173
                                    <td>[% plugin.metadata.author | html %]</td>
170
                                            [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
174
                                    <td>[% plugin.metadata.version | html %]</td>
171
                                                <div class="dialog alert">
175
                                    <td>[% plugin.metadata.minimum_version | html %]</td>
172
                                                    Warning: This plugin was written for an older version of Koha. Use at your own risk.
176
                                    <td>[% plugin.metadata.maximum_version | html %]</td>
173
                                                </div>
177
                                    <td>[% plugin.metadata.date_updated | $KohaDates %]</td>
174
                                            [% END %]
178
                                    [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
175
                                        </td>
179
                                        <td class="actions">
176
                                        <td>[% plugin.metadata.author | html %]</td>
180
                                            <div class="btn-group dropup">
177
                                        <td>[% plugin.metadata.version | html %]</td>
181
                                                <a class="btn btn-default btn-xs dropdown-toggle" id="pluginactions[% plugin.class | html %]" role="button" data-toggle="dropdown" href="#">
178
                                        <td>[% plugin.metadata.minimum_version | html %]</td>
182
                                                   Actions <b class="caret"></b>
179
                                        <td>[% plugin.metadata.maximum_version | html %]</td>
183
                                                </a>
180
                                        <td>[% plugin.metadata.date_updated | $KohaDates %]</td>
184
                                                <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]">
181
                                        [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
185
                                                    [% IF ( CAN_user_plugins_report ) %]
182
                                            <td class="actions">
186
                                                        [% IF plugin.can('report') %]
183
                                                <div class="btn-group dropup">
187
                                                            <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=report"><i class="fa fa-table fa-fw"></i> Run report</a></li>
184
                                                    <a class="btn btn-default btn-xs dropdown-toggle" id="pluginactions[% plugin.class | html %]" role="button" data-toggle="dropdown" href="#">
185
                                                       Actions <b class="caret"></b>
186
                                                    </a>
187
                                                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class | html %]">
188
                                                        [% IF ( CAN_user_plugins_report ) %]
189
                                                            [% IF plugin.can('report') %]
190
                                                                <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=report"><i class="fa fa-table fa-fw"></i> Run report</a></li>
191
                                                            [% END %]
188
                                                        [% END %]
192
                                                        [% END %]
189
                                                    [% END %]
190
193
191
                                                    [% IF ( CAN_user_plugins_tool ) %]
194
                                                        [% IF ( CAN_user_plugins_tool ) %]
192
                                                        [% IF plugin.can('tool') %]
195
                                                            [% IF plugin.can('tool') %]
193
                                                            <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=tool"><i class="fa fa-wrench fa-fw"></i> Run tool</a></li>
196
                                                                <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=tool"><i class="fa fa-wrench fa-fw"></i> Run tool</a></li>
197
                                                            [% END %]
194
                                                        [% END %]
198
                                                        [% END %]
195
                                                    [% END %]
196
199
197
                                                    [% IF ( CAN_user_plugins_configure ) %]
200
                                                        [% IF ( CAN_user_plugins_configure ) %]
198
                                                        [% IF plugin.can('configure') %]
201
                                                            [% IF plugin.can('configure') %]
199
                                                            <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=configure"><i class="fa fa-cog fa-fw"></i> Configure</a></li>
202
                                                                <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class | uri %]&method=configure"><i class="fa fa-cog fa-fw"></i> Configure</a></li>
203
                                                            [% END %]
200
                                                        [% END %]
204
                                                        [% END %]
201
                                                    [% END %]
205
                                                        [% IF ( CAN_user_plugins_manage ) %]
202
                                                    [% IF ( CAN_user_plugins_manage ) %]
206
                                                                <li><a class="uninstall_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class | html %]"><i class="fa fa-trash fa-fw"></i> Uninstall</a></li>
203
                                                            <li><a class="uninstall_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class | html %]"><i class="fa fa-trash fa-fw"></i> Uninstall</a></li>
207
                                                            [% IF ( plugin.is_enabled ) %]
204
                                                        [% IF ( plugin.is_enabled ) %]
208
                                                                    <li><a class="enable_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-enable.pl?class=[% plugin.class | html %]&method=disable"><i class="fa fa-pause fa-fw"></i> Disable</a></li>
205
                                                                <li><a class="enable_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-enable.pl?class=[% plugin.class | html %]&method=disable"><i class="fa fa-pause fa-fw"></i> Disable</a></li>
209
                                                            [% ELSE %]
206
                                                        [% ELSE %]
210
                                                                    <li><a class="enable_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-enable.pl?class=[% plugin.class | html %]&method=enable"><i class="fa fa-play fa-fw"></i> Enable</a></li>
207
                                                                <li><a class="enable_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-enable.pl?class=[% plugin.class | html %]&method=enable"><i class="fa fa-play fa-fw"></i> Enable</a></li>
211
                                                            [% END %]
208
                                                        [% END %]
212
                                                        [% END %]
209
                                                    [% END %]
213
                                                    </ul>
210
                                                </ul>
214
                                                </div>
211
                                            </div>
215
                                            </td>
212
                                        </td>
216
                                        [% END %]
217
                                    </tr>
213
                                    [% END %]
218
                                    [% END %]
214
                                </tr>
215
                                [% END %]
219
                                [% END %]
216
                            [% END %]
220
                            </table>
217
                        </table>
221
                        </div><!-- /.page-section -->
218
                    [% END %]
222
                    [% END %]
219
                </div>
223
                </div>
220
224
221
- 

Return to bug 32028