Bug 15961 - Use Font Awesome icons for confirmation of currency deletion
When deleting a currency, the confirmation and error dialogs should use Font Awesome icons. This patch makes this change. To test, apply the patch and go to Administration -> Currencies and exchange rates. - Click the "delete" link next to any currency. - Verify that the confirmation dialog is correctly styled. - Test the both cancel and confirm operations. - Verify that the deletion confirmation dialog is correctly styled. Bug 15962 prevents testing the error dialog which should appear if you try to delete a currency which is use (defined as a currency in a vendor record). To test this error you could manually enter a currency code into aqbooksellers.currency and then try to delete that currency. Signed-off-by: Nicole C Engard <nengard@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
parent
1b7b9a453a
commit
b951f158cb
|
|
@ -129,7 +129,7 @@
|
|||
<h3>Cannot delete currency <span class="ex">'[% currency.currency %]'</span></h3>
|
||||
<p>This currency is used by [% nb_of_orders %] orders. Deletion not possible</p>
|
||||
<form action="/cgi-bin/koha/admin/currency.pl" method="post">
|
||||
<input type="submit" value="OK" class="approve" />
|
||||
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button>
|
||||
</form>
|
||||
</div>
|
||||
[% ELSE %]
|
||||
|
|
@ -146,10 +146,10 @@
|
|||
<form action="/cgi-bin/koha/admin/currency.pl" method="post">
|
||||
<input type="hidden" name="op" value="delete_confirmed" />
|
||||
<input type="hidden" name="currency_code" value="[% currency.currency_code %]" />
|
||||
<input type="submit" class="approve" value="Delete this currency" />
|
||||
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this currency</button>
|
||||
</form>
|
||||
<form action="/cgi-bin/koha/admin/currency.pl" method="post">
|
||||
<input type="submit" class="deny" value="No, do not delete" />
|
||||
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
|
||||
</form>
|
||||
</div>
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue