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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt (-19 / +19 lines)
Lines 1-5 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE HtmlId %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>
6
<title>
Lines 100-106 Authority types &rsaquo; Administration &rsaquo; Koha Link Here
100
                            <span class="label">Authority type</span>
101
                            <span class="label">Authority type</span>
101
                            <input type="hidden" name="op" value="add_validate" />
102
                            <input type="hidden" name="op" value="add_validate" />
102
                            <input type="hidden" name="checked" value="0" />
103
                            <input type="hidden" name="checked" value="0" />
103
                            <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />[% authority_type.authtypecode | html %]
104
                            <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | $HtmlId %]" />[% authority_type.authtypecode | $HtmlId %]
104
                    [% ELSE %]
105
                    [% ELSE %]
105
                            <div class="hint">10 characters maximum</div>
106
                            <div class="hint">10 characters maximum</div>
106
                            <label for="authtypecode" class="required">Authority type: </label>
107
                            <label for="authtypecode" class="required">Authority type: </label>
Lines 142-148 Authority types &rsaquo; Administration &rsaquo; Koha Link Here
142
            <p>This record is used <strong>[% authorities_using_it | html %]</strong> times</p>
143
            <p>This record is used <strong>[% authorities_using_it | html %]</strong> times</p>
143
            <a class="cancel" href="/cgi-bin/koha/admin/authtypes.pl">Back to the list</a>
144
            <a class="cancel" href="/cgi-bin/koha/admin/authtypes.pl">Back to the list</a>
144
        [% ELSE %]
145
        [% ELSE %]
145
            <h1>Confirm deletion of authority structure definition for <span class="ex">'[% authority_type.authtypetext | html %]' ([% authority_type.authtypecode | html %])</span></h1>
146
            <h1>Confirm deletion of authority structure definition for <span class="ex">'[% authority_type.authtypetext | html %]' ([% authority_type.authtypecode | $HtmlId %])</span></h1>
146
            <form action="/cgi-bin/koha/admin/authtypes.pl" method="post">
147
            <form action="/cgi-bin/koha/admin/authtypes.pl" method="post">
147
                <input type="hidden" name="op" value="delete_confirmed" />
148
                <input type="hidden" name="op" value="delete_confirmed" />
148
                <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
149
                <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
Lines 183-215 Authority types &rsaquo; Administration &rsaquo; Koha Link Here
183
                    <td>[% authority_type.auth_tag_to_report | html %]</td>
184
                    <td>[% authority_type.auth_tag_to_report | html %]</td>
184
                    <td>
185
                    <td>
185
                    <div class="btn-group dropup">
186
                    <div class="btn-group dropup">
186
                        <a class="btn btn-default btn-xs dropdown-toggle" id="authtypeactions[% authority_type.authtypecode | html %]" role="button" data-toggle="dropdown" href="#">
187
                        <a class="btn btn-default btn-xs dropdown-toggle" id="authtypeactions[% authority_type.authtypecode | $HtmlId %]" role="button" data-toggle="dropdown" href="#">
187
                        Actions <b class="caret"></b></a>
188
                        Actions <b class="caret"></b></a>
188
                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtypeactions[% authority_type.authtypecode | html %]">
189
                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtypeactions[% authority_type.authtypecode | $HtmlId %]">
189
                        <li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode | uri %]" class="button parameters"><i class="fa-solid fa-eye"></i> MARC structure</a></li>
190
                        <li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode | uri %]" class="button parameters"><i class="fa-solid fa-eye"></i> MARC structure</a></li>
190
                        <li><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&amp;authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a></li>
191
                        <li><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&amp;authtypecode=[% authority_type.authtypecode | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a></li>
191
                        [% 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-can"></i> Delete</a></li>[% END %]
192
                        [% 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-can"></i> Delete</a></li>[% END %]
192
                        <!-- Button to trigger modal -->
193
                        <!-- Button to trigger modal -->
193
                        <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>
194
                        <li><a href="#" data-toggle="modal" data-target="#exportModal_[% authority_type.authtypecode | $HtmlId %][% loop.count | html %]" title="Export authority type (fields, subfields) to a spreadsheet file (.csv, .ods)"><i class="fa fa-upload"></i> Export</a></li>
194
                        <!-- Button to trigger modal -->
195
                        <!-- Button to trigger modal -->
195
                        <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>
196
                        <li><a href="#" data-toggle="modal" data-target="#importModal_[% authority_type.authtypecode | $HtmlId %][% loop.count | html %]" title="Import authority type (fields, subfields) from a spreadsheet file (.csv, .ods)"><i class="fa fa-download"></i> Import</a></li>
196
                        </ul>
197
                        </ul>
197
                    </div>
198
                    </div>
198
199
199
                    <!-- Modal for export -->
200
                    <!-- Modal for export -->
200
                    <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">
201
                    <div class="modal" id="exportModal_[% authority_type.authtypecode | $HtmlId %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_[% authority_type.authtypecode | $HtmlId %][% loop.count | html %]" aria-hidden="true">
201
                        <div class="modal-dialog">
202
                        <div class="modal-dialog">
202
                            <div class="modal-content">
203
                            <div class="modal-content">
203
                                <div class="modal-header">
204
                                <div class="modal-header">
204
                                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
205
                                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
205
                                    <h3 id="exportLabelexportModal_[% authority_type.authtypecode | html %][% loop.count | html %]">Export [% authority_type.authtypetext | html %] authority type</h3>
206
                                    <h3 id="exportLabelexportModal_[% authority_type.authtypecode | $HtmlId %][% loop.count | html %]">Export [% authority_type.authtypetext | html %] authority type</h3>
206
                                </div>
207
                                </div>
207
                                <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_[% authority_type.authtypecode | html %]" method="get" target="_blank" class="form_export">
208
                                <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_[% authority_type.authtypecode | $HtmlId %]" method="get" target="_blank" class="form_export">
208
                                    <div class="modal-body">
209
                                    <div class="modal-body">
209
                                        <fieldset>
210
                                        <fieldset>
210
                                            <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
211
                                            <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | $HtmlId %]" />
211
                                            <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>
212
                                            <p><label for="csv_type_export_[% authority_type.authtypecode | $HtmlId %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | $HtmlId %]" value="csv" id="csv_type_export_[% authority_type.authtypecode | $HtmlId %][% loop.count | html %]" checked="checked" /> Export to CSV spreadsheet</label></p>
212
                                            <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>
213
                                            <p><label for="ods_type_export_[% authority_type.authtypecode | $HtmlId %][% loop.count | html %]"><input type="radio" name="type_export_[% authority_type.authtypecode | $HtmlId %]" value="ods" id="ods_type_export_[% authority_type.authtypecode | $HtmlId %][% loop.count | html %]" /> Export to OpenDocument spreadsheet format</label></p>
213
                                        </fieldset>
214
                                        </fieldset>
214
                                    </div>
215
                                    </div>
215
                                    <div class="modal-footer">
216
                                    <div class="modal-footer">
Lines 222-240 Authority types &rsaquo; Administration &rsaquo; Koha Link Here
222
                    </div>
223
                    </div>
223
224
224
                    <!-- Modal for import -->
225
                    <!-- Modal for import -->
225
                    <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">
226
                    <div class="modal" id="importModal_[% authority_type.authtypecode | $HtmlId %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="importLabelexportModal_[% authority_type.authtypecode | $HtmlId %][% loop.count | html %]" aria-hidden="true">
226
                        <div class="modal-dialog">
227
                        <div class="modal-dialog">
227
                            <div class="modal-content">
228
                            <div class="modal-content">
228
                                <div class="modal-header">
229
                                <div class="modal-header">
229
                                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
230
                                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
230
                                    <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>
231
                                    <h3 id="importLabelexportModal_[% authority_type.authtypecode | $HtmlId %][% loop.count | html %]">Import [% authority_type.authtypecode | html %] authority type (fields and subfields) from a spreadsheet file (.csv, .ods)</h3>
231
                                </div>
232
                                </div>
232
                                <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">
233
                                <form action="/cgi-bin/koha/admin/import_export_authtype.pl" name="form_i_[% authority_type.authtypecode | $HtmlId %]" id="form_i_[% authority_type.authtypecode | $HtmlId %]" method="post" enctype="multipart/form-data" class="form_import">
233
                                    <div class="modal-body">
234
                                    <div class="modal-body">
234
                                        <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />
235
                                        <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | $HtmlId %]" />
235
                                        <input type="hidden" name="action" value="import" />
236
                                        <input type="hidden" name="action" value="import" />
236
                                        <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>
237
                                        <p><label for="file_import_[% authority_type.authtypecode | $HtmlId %]">Upload file:</label> <input type="file" name="file_import_[% authority_type.authtypecode | $HtmlId %]" id="file_import_[% authority_type.authtypecode | $HtmlId %]" class="input_import" /></p>
237
                                        <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>
238
                                        <div id="importing_[% authority_type.authtypecode | $HtmlId %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/loading-small.gif" alt="" /><span class="importing_msg"></span></div>
238
                                    </div>
239
                                    </div>
239
                                    <div class="modal-footer">
240
                                    <div class="modal-footer">
240
                                        <button type="submit" class="btn btn-default">Import</button>
241
                                        <button type="submit" class="btn btn-default">Import</button>
241
- 

Return to bug 33929