Lines 70-75
Link Here
|
70 |
<a href="#" data-toggle="modal" data-template_id="" data-target="#createTemplate" id="new_template" class="btn btn-default duplicate_template"><i class="fa fa-plus"></i> New template</a> |
70 |
<a href="#" data-toggle="modal" data-template_id="" data-target="#createTemplate" id="new_template" class="btn btn-default duplicate_template"><i class="fa fa-plus"></i> New template</a> |
71 |
[% IF ( template_id != '' ) %] |
71 |
[% IF ( template_id != '' ) %] |
72 |
<a href="#" class="btn btn-default new_action"><i class="fa fa-plus"></i> New action</a> |
72 |
<a href="#" class="btn btn-default new_action"><i class="fa fa-plus"></i> New action</a> |
|
|
73 |
<a href="#" data-toggle="modal" data-template_id="" data-target="#renameTemplate" id="rename_template" class="btn btn-default rename_template"><i class="fa-solid fa-pen"></i> Rename template</a> |
73 |
<form action="/cgi-bin/koha/tools/marc_modification_templates.pl" method="post"> |
74 |
<form action="/cgi-bin/koha/tools/marc_modification_templates.pl" method="post"> |
74 |
[% INCLUDE 'csrf-token.inc' %] |
75 |
[% INCLUDE 'csrf-token.inc' %] |
75 |
<input type="hidden" name="template_id" value="[% template_id | html %]" /> |
76 |
<input type="hidden" name="template_id" value="[% template_id | html %]" /> |
Lines 373-378
Link Here
|
373 |
</div> |
374 |
</div> |
374 |
</div> |
375 |
</div> |
375 |
|
376 |
|
|
|
377 |
<!-- Modal to rename a template --> |
378 |
<div class="modal" id="renameTemplate" tabindex="-1" role="dialog" aria-labelledby="LabelrenameTemplate" aria-hidden="true"> |
379 |
<div class="modal-dialog"> |
380 |
<div class="modal-content"> |
381 |
<div class="modal-header"> |
382 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
383 |
<h2 id="LabelrenameTemplate">Rename template</h2> |
384 |
</div> |
385 |
<form method="post" action="/cgi-bin/koha/tools/marc_modification_templates.pl" id="rename_template" class="validated"> |
386 |
[% INCLUDE 'csrf-token.inc' %] |
387 |
<div class="modal-body"> |
388 |
<fieldset> |
389 |
<p> |
390 |
<label for="template_name" class="required">Name: </label> |
391 |
<input name="template_name" id="template_name" type="text" size="30" required="required" class="required" /> |
392 |
<span class="required">Required</span> |
393 |
</p> |
394 |
|
395 |
<input type="hidden" name="template_id" value="[% template_id | html %]" /> |
396 |
<input type="hidden" name="op" value="cud-rename_template" /> |
397 |
</fieldset> |
398 |
</div> |
399 |
<div class="modal-footer"> |
400 |
<button type="submit" class="btn btn-default">Submit</button> |
401 |
<button class="btn btn-link" data-dismiss="modal" aria-hidden="true">Cancel</button> |
402 |
</div> |
403 |
</form> |
404 |
</div> |
405 |
</div> |
406 |
</div> |
407 |
|
376 |
</main> |
408 |
</main> |
377 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
409 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
378 |
|
410 |
|