Synching with default template
This commit is contained in:
parent
2308b376e9
commit
4e1a7b2d4b
|
|
@ -4,7 +4,6 @@
|
|||
<!-- TMPL_IF name="delete_confirmed" -->Data Deleted<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF name="else" -->Item Types Administration<!-- /TMPL_IF -->
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="itemtypes.js" -->
|
||||
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="admin-topmenu.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
|
||||
|
|
@ -15,7 +14,7 @@
|
|||
<form action="<!-- TMPL_VAR name="script_name" -->" name="Aform" method="post">
|
||||
<input type="hidden" name="op" value="add_validate" />
|
||||
<input type="hidden" name="checked" value="0" />
|
||||
<div class="table">
|
||||
<div class="data">
|
||||
<table>
|
||||
<caption><!-- TMPL_IF name="itemtype" -->
|
||||
Modify item type
|
||||
|
|
@ -23,32 +22,28 @@
|
|||
Add item type
|
||||
<!-- /TMPL_IF --></caption>
|
||||
<!-- TMPL_IF name="itemtype" -->
|
||||
<tr><td><label for="">Item type</label></td><td><input type="hidden" name="itemtype" value="<!-- TMPL_VAR name="itemtype" -->" /><!-- TMPL_VAR name="itemtype" --></td></tr>
|
||||
<tr><th><label for="">Item type</label></th><td><input type="hidden" name="itemtype" value="<!-- TMPL_VAR name="itemtype" -->" /><!-- TMPL_VAR name="itemtype" --></td></tr>
|
||||
<!-- TMPL_ELSE -->
|
||||
<tr><td><label for="">Item type</label></td><td><input type="text" name="itemtype" size="6" maxlength="4" onblur="toUC(this)" /></td></tr>
|
||||
<tr><th><label for="">Item type</label></th><td><input type="text" name="itemtype" size="6" maxlength="4" onblur="toUC(this)" /></td></tr>
|
||||
<!-- /TMPL_IF -->
|
||||
<tr>
|
||||
<td><label for="description">Description</label></td>
|
||||
<th><label for="description">Description</label></th>
|
||||
<td><input type="text" id="description" name="description" size="48" maxlength="80" value="<!-- TMPL_VAR name="description" escape="HTML" -->" /> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="notforloan">Not for loan</label></td>
|
||||
<th><label for="notforloan">Not for loan</label></th>
|
||||
<td><input type="checkbox" id="notforloan" name="notforloan"<!-- TMPL_IF name="notforloan" --> checked="checked"<!-- /TMPL_IF --> value="1"> (if checked, no item of this type can be issued. If not checked, every item of this type can be issued unless notforloan is set for a specific item)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="loanlength">Loan length</label></td>
|
||||
<td><input type="text" id="loanlength" name="loanlength" size="10" value="<!-- TMPL_VAR name="loanlength" -->"> (meaningful only if not for loan is not set)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><label for="renewalsallowed">Renewals</label></td>
|
||||
<th><label for="renewalsallowed">Renewals</label></th>
|
||||
<td><input type="text" id="renewalsallowed" name="renewalsallowed" size="3" maxlength="3" value="<!-- TMPL_IF name="renewalsallowed" --><!-- TMPL_VAR NAME="renewalsallowed" --><!-- /TMPL_IF -->" value="1" /><!-- Display for NPL <input type="hidden" name="rentalcharge" value="0" /> /Display for NPL --></td>
|
||||
</tr>
|
||||
<!-- Hide from NPL--> <tr>
|
||||
<td><label for="rentalcharge">Rental charge</label></td>
|
||||
<th><label for="rentalcharge">Rental charge</label></th>
|
||||
<td><input type="text" id="rentalcharge" name="rentalcharge" size="10" value="<!-- TMPL_VAR name="rentalcharge" -->" /></td>
|
||||
</tr><!-- /Hide from NPL -->
|
||||
</table><input type="button" value="OK" onclick="Check(this.form)" class="submit" /> <input type="button" class="cancel" value="Cancel" onclick="history.back();" />
|
||||
</table><input type="button" value="Save Changes" onclick="Check(this.form)" class="submit" /> <input type="button" class="cancel" value="Cancel" onclick="history.back();" />
|
||||
</form>
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
|
|
@ -81,19 +76,26 @@
|
|||
<tr>
|
||||
<th>Code</th>
|
||||
<th>Description</th>
|
||||
<th>Loan Length</th>
|
||||
<th>Not for Loan</th>
|
||||
<th>Renewable</th>
|
||||
<!-- <th>Charge</th> -->
|
||||
<th>Charge</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
<!-- TMPL_LOOP name="loop" -->
|
||||
<tr>
|
||||
<!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
|
||||
<td><a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&itemtype=<!-- TMPL_VAR name="itemtype" escape="HTML" -->"><!-- TMPL_VAR name="itemtype" --></a></td>
|
||||
<td><!-- TMPL_VAR name="description" --></td>
|
||||
<td><!-- TMPL_VAR name="loanlength" --></td>
|
||||
<td><!-- TMPL_IF name="renewalsallowed" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
|
||||
<!-- <td><!-- TMPL_VAR name="rentalcharge" --></td> -->
|
||||
<td><!-- TMPL_IF NAME="notforloan" -->Yes<!-- TMPL_ELSE --> <!-- /TMPL_IF --></td>
|
||||
<td><!-- TMPL_UNLESS name="notforloan" -->
|
||||
<!-- TMPL_IF NAME="renewalsallowed" -->
|
||||
<!-- TMPL_VAR name="renewalsallowed" --> time(s)
|
||||
<!-- TMPL_ELSE -->
|
||||
No
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- /TMPL_UNLESS -->
|
||||
</td>
|
||||
<td><!-- TMPL_UNLESS name="notforloan" --><!-- TMPL_VAR NAME="rentalcharge" --><!-- /TMPL_UNLESS --></td>
|
||||
<td><a class="edit" href="<!-- TMPL_VAR name="script_name" -->?op=add_form&itemtype=<!-- TMPL_VAR name="itemtype" escape="HTML" -->">Edit</a></td>
|
||||
<td><a class="delete" href="<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&itemtype=<!-- TMPL_VAR name="itemtype" escape="HTML" -->">Delete</a></td>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Reference in New Issue