› Confirm deletion of contract [% contractnumber %]
[% END %]
[% IF ( delete_confirmed ) %]
- <a href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]">Contracts</a> › Contract Deleted
+ <a href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]">Contracts</a> › Contract deleted
[% END %]
[% IF ( else ) %]Contracts[% END %]
</div>
<div class="yui-b">
[% INCLUDE 'acquisitions-toolbar.inc' %]
+
+[% IF error == 'not_deleted' %]
+ <div class="dialog alert">Contract has not been deleted. Maybe a basket linked to this contract exists.</div>
+[% END %]
+
[% IF ( add_form ) %]
<form name="Aform" action="[% script_name %]" method="post">
<input type="hidden" name="op" value="add_validate" />
<input type="hidden" name="is_a_modif" value="1" />
</li>
[% END %]
- <li><label for="contractname" class="required">Name *</label>
+ <li><label for="contractname" class="required">Name: *</label>
<input type="text" name="contractname" id="contractname" size="40" maxlength="80" value="[% contractname %]" />
</li>
- <li><label for="contractdescription">Description</label>
+ <li><label for="contractdescription">Description: </label>
<input type="text" name="contractdescription" id="contractdescription" size="40" maxlength="80" value="[% contractdescription %]" />
</li>
- <li><label for="from" class="required">Start date *</label>
+ <li><label for="from" class="required">Start date: *</label>
<input type="text" name="contractstartdate" id="from" value="[% contractstartdate %]" maxlength="10" size="10" class="datepickerfrom" />
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
</li>
- <li><label for="to" class="required">End date *</label>
+ <li><label for="to" class="required">End date: *</label>
<input type="text" name="contractenddate" id="to" value="[% contractenddate %]" maxlength="10" size="10" class="datepickerto" />
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
</li>
<input type="hidden" name="op" value="delete_confirmed" />
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
<input type="hidden" name="contractnumber" value="[% contractnumber %]" />
- <input type="submit" value="Delete this Contract" />
+ <input type="submit" value="Delete this contract" />
<a class="cancel" href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]&contractnumber=[% contractnumber %]">Cancel</a>
</fieldset>
</fieldset>
<th scope="col" colspan="2"> </th>
</tr>
[% FOREACH loo IN loop %]
- [% IF ( loop.even ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
+ <tr>
<td>
<a href="[% loo.script_name %]?op=add_form&booksellerid=[% loo.booksellerid %]&contractnumber=[% loo.contractnumber %]">[% loo.contractname %]</a>
</td>