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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt (-52 / +52 lines)
Lines 191-251 Authority types › Administration › Koha Link Here
191
                      <li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode | uri %]" class="button parameters"><i class="fa fa-eye"></i> MARC structure</a></li>
191
                      <li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode | uri %]" class="button parameters"><i class="fa fa-eye"></i> MARC structure</a></li>
192
                      <li><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&amp;authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
192
                      <li><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&amp;authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
193
                      [% IF authority_type.authtypecode %]<li><a href="/cgi-bin/koha/admin/authtypes.pl?op=delete_confirm&amp;authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa fa-trash"></i> Delete</a></li>[% END %]
193
                      [% IF authority_type.authtypecode %]<li><a href="/cgi-bin/koha/admin/authtypes.pl?op=delete_confirm&amp;authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa fa-trash"></i> Delete</a></li>[% END %]
194
                            <!-- Button to trigger modal -->
194
                      <!-- Button to trigger modal -->
195
                            <li><a href="#" data-toggle="modal" data-target="#exportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" title="Export authority type (fields, subfields) to a spreadsheet file (.csv, .ods)"><i class="fa fa-upload"></i> Export</a></li>
195
                      <li><a href="#" data-toggle="modal" data-target="#exportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" title="Export authority type (fields, subfields) to a spreadsheet file (.csv, .ods)"><i class="fa fa-upload"></i> Export</a></li>
196
                            <!-- Button to trigger modal -->
196
                      <!-- Button to trigger modal -->
197
                            <li><a href="#" data-toggle="modal" data-target="#importModal_[% authority_type.authtypecode | html %][% loop.count | html %]" title="Import authority type (fields, subfields) from a spreadsheet file (.csv, .ods)"><i class="fa fa-download"></i> Import</a></li>
197
                      <li><a href="#" data-toggle="modal" data-target="#importModal_[% authority_type.authtypecode | html %][% loop.count | html %]" title="Import authority type (fields, subfields) from a spreadsheet file (.csv, .ods)"><i class="fa fa-download"></i> Import</a></li>
198
                    </ul>
198
                    </ul>
199
                  </div>
199
                  </div>
200
200
201
                        <!-- Modal for export -->
201
                  <!-- Modal for export -->
202
                        <div class="modal" id="exportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" aria-hidden="true">
202
                  <div class="modal" id="exportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" aria-hidden="true">
203
                        <div class="modal-dialog">
203
                      <div class="modal-dialog">
204
                        <div class="modal-content">
204
                          <div class="modal-content">
205
                        <div class="modal-header">
205
                              <div class="modal-header">
206
                            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
206
                                  <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
207
                            <h3 id="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Export [% authority_type.authtypetext | html %] authority type</h3>
207
                                  <h3 id="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Export [% authority_type.authtypetext | html %] authority type</h3>
208
                        </div>
208
                              </div>
209
                        <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_[% authority_type.authtypecode | html %]" method="get" target="_blank" class="form_export">
209
                              <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_[% authority_type.authtypecode | html %]" method="get" target="_blank" class="form_export">
210
                            <div class="modal-body">
210
                                  <div class="modal-body">
211
                                <fieldset>
211
                                      <fieldset>
212
                                    <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
212
                                          <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
213
                                    <p><label for="csv_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | html %]" value="csv" id="csv_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]" checked="checked" /> Export to CSV spreadsheet</label></p>
213
                                          <p><label for="csv_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | html %]" value="csv" id="csv_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]" checked="checked" /> Export to CSV spreadsheet</label></p>
214
                                    <p><label for="ods_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | html %]" value="ods" id="ods_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]" /> Export to OpenDocument spreadsheet format</label></p>
214
                                          <p><label for="ods_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | html %]" value="ods" id="ods_type_export_[% authority_type.authtypecode | html %][% loop.count | html %]" /> Export to OpenDocument spreadsheet format</label></p>
215
                                </fieldset>
215
                                      </fieldset>
216
                            </div>
216
                                  </div>
217
                            <div class="modal-footer">
217
                                  <div class="modal-footer">
218
                                <button type="submit" class="btn btn-default">Export</button>
218
                                      <button type="submit" class="btn btn-default">Export</button>
219
                                <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
219
                                      <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
220
                            </div>
220
                                  </div>
221
                        </form>
221
                              </form>
222
                        </div>
222
                          </div>
223
                        </div>
223
                      </div>
224
                        </div>
224
                  </div>
225
226
                  <!-- Modal for import -->
227
                  <div class="modal" id="importModal_[% authority_type.authtypecode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="importLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" aria-hidden="true">
228
                      <div class="modal-dialog">
229
                          <div class="modal-content">
230
                              <div class="modal-header">
231
                                  <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
232
                                  <h3 id="importLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Import [% authority_type.authtypecode | html %] authority type (fields and subfields) from a spreadsheet file (.csv, .ods)</h3>
233
                              </div>
234
                              <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_i_[% authority_type.authtypecode | html %]" id="form_i_[% authority_type.authtypecode | html %]" method="post" enctype="multipart/form-data" class="form_import">
235
                                  <div class="modal-body">
236
                                      <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
237
                                      <input type="hidden" name="action" value="import" />
238
                                      <p><label for="file_import_[% authority_type.authtypecode | html %]">Upload file:</label> <input type="file" name="file_import_[% authority_type.authtypecode | html %]" id="file_import_[% authority_type.authtypecode | html %]" class="input_import" /></p>
239
                                      <div id="importing_[% authority_type.authtypecode | html %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/loading-small.gif" alt="" /><span class="importing_msg"></span></div>
240
                                  </div>
241
                                  <div class="modal-footer">
242
                                      <button type="submit" class="btn btn-default">Import</button>
243
                                      <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button>
244
                                  </div>
245
                              </form>
246
                          </div>
247
                      </div>
248
                  </div>
225
249
226
                        <!-- Modal for import -->
227
                        <div class="modal" id="importModal_[% authority_type.authtypecode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="importLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]" aria-hidden="true">
228
                            <div class="modal-dialog">
229
                            <div class="modal-content">
230
                            <div class="modal-header">
231
                                <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
232
                                <h3 id="importLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Import [% authority_type.authtypecode | html %] authority type (fields and subfields) from a spreadsheet file (.csv, .ods)</h3>
233
                            </div>
234
                            <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_i_[% authority_type.authtypecode | html %]" id="form_i_[% authority_type.authtypecode | html %]" method="post" enctype="multipart/form-data" class="form_import">
235
                                <div class="modal-body">
236
                                    <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
237
                                    <input type="hidden" name="action" value="import" />
238
                                    <p><label for="file_import_[% authority_type.authtypecode | html %]">Upload file:</label> <input type="file" name="file_import_[% authority_type.authtypecode | html %]" id="file_import_[% authority_type.authtypecode | html %]" class="input_import" /></p>
239
                                    <div id="importing_[% authority_type.authtypecode | html %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/loading-small.gif" alt="" /><span class="importing_msg"></span></div>
240
                                </div>
241
                                <div class="modal-footer">
242
                                    <button type="submit" class="btn btn-default">Import</button>
243
                                    <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button>
244
                                </div>
245
                            </form>
246
                            </div>
247
                            </div>
248
                        </div>
249
                </td>
250
                </td>
250
            </tr>
251
            </tr>
251
        [% END %]
252
        [% END %]
252
- 

Return to bug 13952