Remove delete button for billing profiles.

Fixes #353 by just not making deletion of billing profiles possible,
because this can have severe side effects.
3.2
Andreas Granig 14 years ago
parent dc88fdbaea
commit ba255fea50

@ -60,7 +60,7 @@
[% FOREACH bilprof = bilprofs %]
<li class="ui-state-default">
<div class="span-9">[% bilprof.data.name %]</div>
<div class="span-2">
<div class="prepend-1 span-2">
[% UNLESS Catalyst.session.admin.read_only %]
<a href="/billing/edit_bilprof?bilprof=[% bilprof.handle %]"><span class="button-edit">Edit</span></a>
[% ELSE %]&nbsp;
@ -68,12 +68,11 @@
</div>
<form action="/billing/do_delete_bilprof" method="post">
<input type="hidden" name="bilprof" value="[% bilprof.handle %]" />
[% UNLESS Catalyst.session.admin.read_only || 1 %]<!-- agranig: deletion of billing profiles not supported yet -->
<div class="span-2">
[% UNLESS Catalyst.session.admin.read_only %]
<button class="button-delete" id="bildel[% id %]">Delete</button>
[% ELSE %]&nbsp;
[% END %]
</div>
[% END %]
</form>
<div class="span-2">
<a href="/billing/search_fees?bilprof=[% bilprof.handle %]"><span class="button-cart">Edit Fees</span></a>

Loading…
Cancel
Save