Bug 21513: Add a 'Cancel' button to the authority editor and remove duplicate 'Save' button
The authority editor (authorities/authorities.pl) does not have a 'Cancel' button. Also, it has two 'Save' buttons. This patch fixes that by: a) adding a 'Cancel' button to the floating toolbar at the top b) removing the 'Save' button from the bottom of the page Test plan: 1) Go to Home > Authorities and launch the authority editor by clicking on 'New authority'. Notice how the editor doesn't have a 'Cancel' button. Also notice the two 'Save' buttons. 2) Apply the patch. 3) Re-launch the authority editor, and hit cancel; you should be taken back to Home > Authorities. 4) Edit an existing authority, and hit cancel; you should be taken back to the details page for the authority you chose. 5) Edit an authority as new (duplicate), and hit cancel; you should be taken back to Home > Authorities (this behaviour is mimicking the bibliographic editor: when duplicating a biblio the 'Cancel' button will take you back to Home > Cataloging). Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> (cherry picked from commit2cffe3a574) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit81ceef6b84) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
b5b249290e
commit
bc54704cd6
|
|
@ -216,6 +216,13 @@ function confirmnotdup(redirect){
|
|||
<div class="btn-group">
|
||||
<a class="btn btn-default btn-sm" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50 search</a>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
[% IF ( authid ) %]
|
||||
<a class="btn btn-default btn-sm" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a>
|
||||
[% ELSE %]
|
||||
<a class="btn btn-default btn-sm" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a>
|
||||
[% END %]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="authoritytabs" class="toptabs numbered">
|
||||
|
|
@ -426,10 +433,6 @@ function confirmnotdup(redirect){
|
|||
<input type="hidden" name="field_value" value="[% authtypecode %]" />
|
||||
[% END %]
|
||||
|
||||
<fieldset class="action">
|
||||
<input type="button" id="addauth2" value="Save" onclick="Check(this.form)" accesskey="w" />
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue