|
Lines 145-199
Link Here
|
| 145 |
<!-- Trigger modal --> |
145 |
<!-- Trigger modal --> |
| 146 |
<li><a href="#" data-toggle="modal" data-target="#importModal_[% framework.frameworkcode | html %][% frameworks.count | html %]" title="Import framework structure (fields, subfields) from a spreadsheet file (.csv or .ods)"><i class="fa fa-download"></i> Import</a></li> |
146 |
<li><a href="#" data-toggle="modal" data-target="#importModal_[% framework.frameworkcode | html %][% frameworks.count | html %]" title="Import framework structure (fields, subfields) from a spreadsheet file (.csv or .ods)"><i class="fa fa-download"></i> Import</a></li> |
| 147 |
</ul> |
147 |
</ul> |
| 148 |
<!-- Modal to export default framework --> |
|
|
| 149 |
<div class="modal" id="exportModal_default" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_default" aria-hidden="true"> |
| 150 |
<div class="modal-dialog"> |
| 151 |
<div class="modal-content"> |
| 152 |
<div class="modal-header"> |
| 153 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 154 |
<h3 id="exportLabelexportModal_default">Export default framework</h3> |
| 155 |
</div> |
| 156 |
<form action="import_export_framework.pl" name="form_defaul" method="get" target="_blank" class="form_export"> |
| 157 |
<div class="modal-body"> |
| 158 |
<fieldset> |
| 159 |
<input type="hidden" name="frameworkcode" value="" /> |
| 160 |
<p><label for="csv_type_export_default"><input type="radio" name="type_export_default" value="csv" id="csv_type_export_default" checked="checked" /> Export to CSV spreadsheet</label></p> |
| 161 |
<p><label for="ods_type_export_default"><input type="radio" name="type_export_default" value="ods" id="ods_type_export_default" /> Export to OpenDocument spreadsheet format</label></p> |
| 162 |
</fieldset> |
| 163 |
</div> |
| 164 |
<div class="modal-footer"> |
| 165 |
<button type="submit" class="btn btn-default">Export</button> |
| 166 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button> |
| 167 |
</div> |
| 168 |
</form> |
| 169 |
</div> |
| 170 |
</div> |
| 171 |
</div> |
| 172 |
|
| 173 |
<!-- Modal to import default framework --> |
| 174 |
<div class="modal" id="importModal_[% framework.frameworkcode | html %][% frameworks.count | html %]" tabindex="-1" role="dialog" aria-labelledby="importLabelexportModal_default[% frameworks.count | html %]" aria-hidden="true"> |
| 175 |
<div class="modal-dialog"> |
| 176 |
<div class="modal-content"> |
| 177 |
<div class="modal-header"> |
| 178 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 179 |
<h3 id="importLabelexportModal_[% framework.frameworkcode | html %][% frameworks.count | html %]">Import default framework structure (fields and subfields) from a spreadsheet file (.csv or .ods)</h> |
| 180 |
</div> |
| 181 |
<form action="/cgi-bin/koha/admin/import_export_framework.pl" name="form_i_default" id="form_i_default" method="post" enctype="multipart/form-data" class="form_import"> |
| 182 |
<div class="modal-body"> |
| 183 |
<input type="hidden" name="frameworkcode" value="default" /> |
| 184 |
<input type="hidden" name="action" value="import" /> |
| 185 |
<p><label for="file_import_default">Upload file:</label> <input type="file" name="file_import_default" id="file_import_default" class="input_import" /></p> |
| 186 |
<div id="importing_default" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /><span class="importing_msg"></span></div> |
| 187 |
</div> |
| 188 |
<div class="modal-footer"> |
| 189 |
<button type="submit" class="btn btn-default">Import</button> |
| 190 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button> |
| 191 |
</div> |
| 192 |
</form> |
| 193 |
</div> |
| 194 |
</div> |
| 195 |
</div> |
| 196 |
</div> |
148 |
</div> |
|
|
149 |
<!-- Modal to export default framework --> |
| 150 |
<div class="modal" id="exportModal_default" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_default" aria-hidden="true"> |
| 151 |
<div class="modal-dialog"> |
| 152 |
<div class="modal-content"> |
| 153 |
<div class="modal-header"> |
| 154 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 155 |
<h3 id="exportLabelexportModal_default">Export default framework</h3> |
| 156 |
</div> <!-- /.modal-header --> |
| 157 |
<form action="import_export_framework.pl" name="form_defaul" method="get" target="_blank" class="form_export"> |
| 158 |
<div class="modal-body"> |
| 159 |
<fieldset> |
| 160 |
<input type="hidden" name="frameworkcode" value="" /> |
| 161 |
<p><label for="csv_type_export_default"><input type="radio" name="type_export_default" value="csv" id="csv_type_export_default" checked="checked" /> Export to CSV spreadsheet</label></p> |
| 162 |
<p><label for="ods_type_export_default"><input type="radio" name="type_export_default" value="ods" id="ods_type_export_default" /> Export to OpenDocument spreadsheet format</label></p> |
| 163 |
</fieldset> |
| 164 |
</div> <!-- /.modal-body --> |
| 165 |
<div class="modal-footer"> |
| 166 |
<button type="submit" class="btn btn-default">Export</button> |
| 167 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button> |
| 168 |
</div> <!-- /.modal-footer --> |
| 169 |
</form> <!-- /.form_export --> |
| 170 |
</div> <!-- /.modal-content --> |
| 171 |
</div> <!-- /.modal-dialog --> |
| 172 |
</div> <!-- /#exportModal_default.modal --> |
| 173 |
|
| 174 |
<!-- Modal to import default framework --> |
| 175 |
<div class="modal" id="importModal_[% framework.frameworkcode | html %][% frameworks.count | html %]" tabindex="-1" role="dialog" aria-labelledby="importLabelexportModal_default[% frameworks.count | html %]" aria-hidden="true"> |
| 176 |
<div class="modal-dialog"> |
| 177 |
<div class="modal-content"> |
| 178 |
<div class="modal-header"> |
| 179 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 180 |
<h3 id="importLabelexportModal_[% framework.frameworkcode | html %][% frameworks.count | html %]">Import default framework structure (fields and subfields) from a spreadsheet file (.csv or .ods)</h> |
| 181 |
</div> <!-- /.modal-header --> |
| 182 |
<form action="/cgi-bin/koha/admin/import_export_framework.pl" name="form_i_default" id="form_i_default" method="post" enctype="multipart/form-data" class="form_import"> |
| 183 |
<div class="modal-body"> |
| 184 |
<input type="hidden" name="frameworkcode" value="default" /> |
| 185 |
<input type="hidden" name="action" value="import" /> |
| 186 |
<p><label for="file_import_default">Upload file:</label> <input type="file" name="file_import_default" id="file_import_default" class="input_import" /></p> |
| 187 |
<div id="importing_default" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /><span class="importing_msg"></span></div> |
| 188 |
</div> <!-- /.modal-body --> |
| 189 |
<div class="modal-footer"> |
| 190 |
<button type="submit" class="btn btn-default">Import</button> |
| 191 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button> |
| 192 |
</div> <!-- /.modal-footer --> |
| 193 |
</form> <!-- /.form_export --> |
| 194 |
</div> <!-- /.modal-content --> |
| 195 |
</div> <!-- /.modal-dialog --> |
| 196 |
</div> <!-- /#import_modal_... --> |
| 197 |
</td> |
197 |
</td> |
| 198 |
</tr> |
198 |
</tr> |
| 199 |
|
199 |
|
|
Lines 215-269
Link Here
|
| 215 |
<!-- Trigger modal --> |
215 |
<!-- Trigger modal --> |
| 216 |
<li><a href="#" data-toggle="modal" data-target="#importModal_[% loo.frameworkcode | html %][% loop.count | html %]" title="Import framework structure (fields, subfields) from a spreadsheet file (.csv or .ods)"><i class="fa fa-download"></i> Import</a></li> |
216 |
<li><a href="#" data-toggle="modal" data-target="#importModal_[% loo.frameworkcode | html %][% loop.count | html %]" title="Import framework structure (fields, subfields) from a spreadsheet file (.csv or .ods)"><i class="fa fa-download"></i> Import</a></li> |
| 217 |
</ul> |
217 |
</ul> |
| 218 |
<!-- Modal to export other framework --> |
218 |
</div> |
| 219 |
<div class="modal" id="exportModal_[% loo.frameworkcode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_[% loo.frameworkcode | html %][% loop.count | html %]" aria-hidden="true"> |
219 |
<!-- Modal to export other framework --> |
| 220 |
<div class="modal-dialog"> |
220 |
<div class="modal" id="exportModal_[% loo.frameworkcode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="exportLabelexportModal_[% loo.frameworkcode | html %][% loop.count | html %]" aria-hidden="true"> |
| 221 |
<div class="modal-content"> |
221 |
<div class="modal-dialog"> |
| 222 |
<div class="modal-header"> |
222 |
<div class="modal-content"> |
| 223 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
223 |
<div class="modal-header"> |
| 224 |
<h3 id="exportLabelexportModal_[% loo.frameworkcode | html %][% loop.count | html %]">Export [% loo.frameworktext | html %] framework</h3> |
224 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 225 |
</div> |
225 |
<h3 id="exportLabelexportModal_[% loo.frameworkcode | html %][% loop.count | html %]">Export [% loo.frameworktext | html %] framework</h3> |
| 226 |
<form action="import_export_framework.pl" name="form_[% loo.frameworkcode | html %]" method="get" target="_blank" class="form_export"> |
226 |
</div> <!-- /.modal-header --> |
| 227 |
<div class="modal-body"> |
227 |
<form action="import_export_framework.pl" name="form_[% loo.frameworkcode | html %]" method="get" target="_blank" class="form_export"> |
| 228 |
<fieldset> |
228 |
<div class="modal-body"> |
| 229 |
<input type="hidden" name="frameworkcode" value="[% loo.frameworkcode | html %]" /> |
229 |
<fieldset> |
| 230 |
<p><label for="csv_type_export_[% loo.frameworkcode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% loo.frameworkcode | html %]" value="csv" id="csv_type_export_[% loo.frameworkcode | html %][% loop.count | html %]" checked="checked" /> Export to CSV spreadsheet</label></p> |
230 |
<input type="hidden" name="frameworkcode" value="[% loo.frameworkcode | html %]" /> |
| 231 |
<p><label for="ods_type_export_[% loo.frameworkcode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% loo.frameworkcode | html %]" value="ods" id="ods_type_export_[% loo.frameworkcode | html %][% loop.count | html %]" /> Export to OpenDocument spreadsheet format</label></p> |
231 |
<p><label for="csv_type_export_[% loo.frameworkcode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% loo.frameworkcode | html %]" value="csv" id="csv_type_export_[% loo.frameworkcode | html %][% loop.count | html %]" checked="checked" /> Export to CSV spreadsheet</label></p> |
| 232 |
</fieldset> |
232 |
<p><label for="ods_type_export_[% loo.frameworkcode | html %][% loop.count | html %]"><input type="radio" name="type_export_[% loo.frameworkcode | html %]" value="ods" id="ods_type_export_[% loo.frameworkcode | html %][% loop.count | html %]" /> Export to OpenDocument spreadsheet format</label></p> |
| 233 |
</div> |
233 |
</fieldset> |
| 234 |
<div class="modal-footer"> |
234 |
</div> <!-- /.modal-body --> |
| 235 |
<button type="submit" class="btn btn-default">Export</button> |
235 |
<div class="modal-footer"> |
| 236 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button> |
236 |
<button type="submit" class="btn btn-default">Export</button> |
| 237 |
</div> |
237 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button> |
| 238 |
</form> |
238 |
</div> <!-- /.modal-footer --> |
| 239 |
</div> |
239 |
</form> <!-- /.form_export --> |
| 240 |
</div> |
240 |
</div> <!-- /.modal-content --> |
| 241 |
</div> |
241 |
</div> <!-- /.modal-dialog --> |
|
|
242 |
</div> <!-- /#exportModal_... --> |
| 242 |
|
243 |
|
| 243 |
<!-- Modal to import other framework --> |
244 |
<!-- Modal to import other framework --> |
| 244 |
<div class="modal" id="importModal_[% loo.frameworkcode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="importLabelexportModal_[% loo.frameworkcode | html %][% loop.count | html %]" aria-hidden="true"> |
245 |
<div class="modal" id="importModal_[% loo.frameworkcode | html %][% loop.count | html %]" tabindex="-1" role="dialog" aria-labelledby="importLabelexportModal_[% loo.frameworkcode | html %][% loop.count | html %]" aria-hidden="true"> |
| 245 |
<div class="modal-dialog"> |
246 |
<div class="modal-dialog"> |
| 246 |
<div class="modal-content"> |
247 |
<div class="modal-content"> |
| 247 |
<div class="modal-header"> |
248 |
<div class="modal-header"> |
| 248 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
249 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 249 |
<h3 id="importLabelexportModal_[% loo.frameworkcode | html %][% loop.count | html %]">Import [% loo.frameworkcode | html %] framework structure (fields and subfields) from a spreadsheet file (.csv or .ods)</h3> |
250 |
<h3 id="importLabelexportModal_[% loo.frameworkcode | html %][% loop.count | html %]">Import [% loo.frameworkcode | html %] framework structure (fields and subfields) from a spreadsheet file (.csv or .ods)</h3> |
| 250 |
</div> |
251 |
</div> <!-- /.modal-header --> |
| 251 |
<form action="/cgi-bin/koha/admin/import_export_framework.pl" name="form_i_[% loo.frameworkcode | html %]" id="form_i_[% loo.frameworkcode | html %]" method="post" enctype="multipart/form-data" class="form_import"> |
252 |
<form action="/cgi-bin/koha/admin/import_export_framework.pl" name="form_i_[% loo.frameworkcode | html %]" id="form_i_[% loo.frameworkcode | html %]" method="post" enctype="multipart/form-data" class="form_import"> |
| 252 |
<div class="modal-body"> |
253 |
<div class="modal-body"> |
| 253 |
<input type="hidden" name="frameworkcode" value="[% loo.frameworkcode | html %]" /> |
254 |
<input type="hidden" name="frameworkcode" value="[% loo.frameworkcode | html %]" /> |
| 254 |
<input type="hidden" name="action" value="import" /> |
255 |
<input type="hidden" name="action" value="import" /> |
| 255 |
<p><label for="file_import_[% loo.frameworkcode | html %]">Upload file:</label> <input type="file" name="file_import_[% loo.frameworkcode | html %]" id="file_import_[% loo.frameworkcode | html %]" class="input_import" /></p> |
256 |
<p><label for="file_import_[% loo.frameworkcode | html %]">Upload file:</label> <input type="file" name="file_import_[% loo.frameworkcode | html %]" id="file_import_[% loo.frameworkcode | html %]" class="input_import" /></p> |
| 256 |
<div id="importing_[% loo.frameworkcode | html %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /><span class="importing_msg"></span></div> |
257 |
<div id="importing_[% loo.frameworkcode | html %]" style="display:none" class="importing"><img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /><span class="importing_msg"></span></div> |
| 257 |
</div> |
258 |
</div> <!-- /.modal-body --> |
| 258 |
<div class="modal-footer"> |
259 |
<div class="modal-footer"> |
| 259 |
<button type="submit" class="btn btn-default" title="[% loo.frameworkcode | html %]">Import</button> |
260 |
<button type="submit" class="btn btn-default" title="[% loo.frameworkcode | html %]">Import</button> |
| 260 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button> |
261 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Close</button> |
| 261 |
</div> |
262 |
</div> <!-- /.modal-footer --> |
| 262 |
</form> |
263 |
</form> <!-- /.form_export --> |
| 263 |
</div> |
264 |
</div> <!-- /.modal-content --> |
| 264 |
</div> |
265 |
</div> <!-- /.modal-dialog --> |
| 265 |
</div> |
266 |
</div> <!-- /#importModal... --> |
| 266 |
</div> |
|
|
| 267 |
</td> |
267 |
</td> |
| 268 |
</tr> |
268 |
</tr> |
| 269 |
|
269 |
|
| 270 |
- |
|
|