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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt (-53 / +53 lines)
Lines 157-217 Link Here
157
                      <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>
157
                      <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>
158
                      <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>
158
                      <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>
159
                      [% 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 %]
159
                      [% 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 %]
160
                            <!-- Button to trigger modal -->
160
                      <!-- Button to trigger modal -->
161
                            <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>
161
                      <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>
162
                            <!-- Button to trigger modal -->
162
                      <!-- Button to trigger modal -->
163
                            <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>
163
                      <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>
164
                    </ul>
164
                    </ul>
165
                  </div>
165
                  </div>
166
166
167
                        <!-- Modal for export -->
167
                  <!-- Modal for export -->
168
                        <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">
168
                  <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">
169
                        <div class="modal-dialog">
169
                      <div class="modal-dialog">
170
                        <div class="modal-content">
170
                          <div class="modal-content">
171
                        <div class="modal-header">
171
                              <div class="modal-header">
172
                            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
172
                                  <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
173
                            <h3 id="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Export [% authority_type.authtypetext | html %] authority type</h3>
173
                                  <h3 id="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Export [% authority_type.authtypetext | html %] authority type</h3>
174
                        </div>
174
                              </div>
175
                        <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_[% authority_type.authtypecode | html %]" method="get" target="_blank" class="form_export">
175
                              <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_[% authority_type.authtypecode | html %]" method="get" target="_blank" class="form_export">
176
                            <div class="modal-body">
176
                                  <div class="modal-body">
177
                                <fieldset>
177
                                      <fieldset>
178
                                    <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
178
                                          <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
179
                                    <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>
179
                                          <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>
180
                                    <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>
180
                                          <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>
181
                                </fieldset>
181
                                      </fieldset>
182
                            </div>
182
                                  </div>
183
                            <div class="modal-footer">
183
                                  <div class="modal-footer">
184
                                <button type="submit" class="btn btn-default">Export</button>
184
                                      <button type="submit" class="btn btn-default">Export</button>
185
                                <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
185
                                      <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button>
186
                            </div>
186
                                  </div>
187
                        </form>
187
                              </form>
188
                        </div>
188
                          </div>
189
                        </div>
189
                      </div>
190
                        </div>
190
                  </div>
191
191
192
                        <!-- Modal for import -->
192
                  <!-- Modal for import -->
193
                        <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">
193
                  <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">
194
                            <div class="modal-dialog">
194
                      <div class="modal-dialog">
195
                            <div class="modal-content">
195
                          <div class="modal-content">
196
                            <div class="modal-header">
196
                              <div class="modal-header">
197
                                <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
197
                                  <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
198
                                <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>
198
                                  <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>
199
                            </div>
199
                              </div>
200
                            <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">
200
                              <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">
201
                                <div class="modal-body">
201
                                  <div class="modal-body">
202
                                    <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
202
                                      <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
203
                                    <input type="hidden" name="action" value="import" />
203
                                      <input type="hidden" name="action" value="import" />
204
                                    <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>
204
                                      <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>
205
                                    <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>
205
                                      <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>
206
                                </div>
206
                                  </div>
207
                                <div class="modal-footer">
207
                                  <div class="modal-footer">
208
                                    <button type="submit" class="btn btn-default">Import</button>
208
                                      <button type="submit" class="btn btn-default">Import</button>
209
                                    <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button>
209
                                      <button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button>
210
                                </div>
210
                                  </div>
211
                            </form>
211
                              </form>
212
                            </div>
212
                          </div>
213
                            </div>
213
                      </div>
214
                        </div>
214
                  </div>
215
215
                </td>
216
                </td>
216
            </tr>
217
            </tr>
217
        [% END %]
218
        [% END %]
218
- 

Return to bug 13952