Koha/koha-tmpl/intranet-tmpl/npl/en/parameters/branches.tmpl

219 lines
8.8 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- System Administration: <!-- TMPL_IF name="add" --><!-- TMPL_VAR name="head" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="delete_confirm" -->Confirm deletion of branch '<!-- TMPL_VAR NAME="branchcode" -->'<!-- /TMPL_IF -->
<!-- TMPL_IF name="else" --><!-- TMPL_VAR name="head" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="delete_category" -->Confirm deletion of category<!-- /TMPL_IF -->
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<!-- TMPL_INCLUDE NAME="admin-topmenu.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
<div id="main"><!-- TMPL_IF name="add" -->
<h1><!-- TMPL_VAR name="head" --></h1>
<form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
<input type="hidden" name="op" value="add_validate" />
<table>
<tr>
<td>Branch code</td>
<td>
<!-- TMPL_IF name="branchcode" -->
<input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
<!-- TMPL_VAR name="branchcode" -->
<!-- TMPL_ELSE -->
<input type="text" name="branchcode" size="5" maxlength="5" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
<!-- /TMPL_IF -->
</td>
</tr>
<tr>
<td>Name</td>
<td><input type="text" name="branchname" size="40" maxlength="80" value="<!-- TMPL_VAR name="branchname" escape="HTML" -->" />&nbsp;</td>
</tr>
<!-- TMPL_LOOP name="categoryloop" -->
<tr>
<td><!-- TMPL_VAR name="categoryname" --></td>
<td><input type="checkbox" name="<!-- TMPL_VAR name="categorycode" -->" <!-- TMPL_VAR name="checked" --> /><!-- TMPL_VAR name="codedescription" --></td>
</tr>
<!-- /TMPL_LOOP -->
<tr>
<td>Address</td>
<td><input type="text" name="branchaddress1" value="<!-- TMPL_VAR name="branchaddress1" escape="HTML" -->" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="text" name="branchaddress2" value="<!-- TMPL_VAR name="branchaddress2" escape="HTML" -->" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="text" name="branchaddress3" value="<!-- TMPL_VAR name="branchaddress3" escape="HTML" -->" /></td>
</tr>
<tr>
<td>Phone</td>
<td><input type="text" name="branchphone" value="<!-- TMPL_VAR name="branchphone" escape="HTML" -->" /></td>
</tr>
<tr>
<td>Fax</td>
<td><input type="text" name="branchfax" value="<!-- TMPL_VAR name="branchfax" escape="HTML" -->" /></td>
</tr>
<tr>
<td>E-mail</td>
<td><input type="text" name="branchemail" value="<!-- TMPL_VAR name="branchemail" escape="HTML" -->" /></td>
</tr>
</table><p><input type="submit" class="submit" value="Submit" /></p>
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="delete_confirm" -->
<h3>Confirm deletion of <!-- TMPL_VAR NAME="branchname" --> (<!-- TMPL_VAR NAME="branchcode" -->)?</h3>
<div class="tabitem"><span class="form"><form action="<!-- TMPL_VAR name="action" -->" method="post">
<input type="hidden" name="op" value="delete_confirmed" />
<input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
<input type="hidden" name="branchname" value="<!-- TMPL_VAR NAME="branchname" escape="HTML" -->">
<input type="submit" value="Delete Branch" class="cancel" />
</form>
<form action="<!-- TMPL_VAR name="action" -->" method="post"><input type="hidden" name="op" value="">
<input type="submit" value="Do Not Delete" class="submit" />
</form></span></div>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="else" -->
<!-- TMPL_IF NAME="message" --><div class="error"><!-- TMPL_VAR name="message" --></div><!-- /TMPL_IF -->
<table>
<caption><!-- TMPL_VAR name="head" --></caption>
<tr>
<th>Name</th>
<th>Code</th>
<th>Address</th>
<th>Category</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
<!-- TMPL_LOOP name="branches" -->
<tr>
<td><!-- TMPL_VAR name="branch_name" escape="HTML" --></td>
<td><!-- TMPL_VAR name="branch_code" escape="HTML" --></td>
<td>
<!-- TMPL_IF name="address-empty-p" -->
(nothing entered)
<!-- TMPL_ELSE -->
<!-- TMPL_IF name="branchaddress1" -->
<!-- TMPL_VAR name="branchaddress1" escape="HTML" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="branchaddress2" -->
<br /><!-- TMPL_VAR name="branchaddress2" escape="HTML" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="branchaddress3" -->
<br /><!-- TMPL_VAR name="branchaddress3" escape="HTML" --><!-- /TMPL_IF -->
<!-- TMPL_IF name=branchphone -->
<br />Ph: <!-- TMPL_VAR name="branchphone" escape="HTML" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="branchfax" -->
<br />Fax: <!-- TMPL_VAR name="branchfax" escape="HTML" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="branchemail" -->
<br />Email: <!-- TMPL_VAR name="branchemail" escape="HTML" --><!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</td>
<td>
<!-- TMPL_IF name="no-categories-p" -->
(no categories set)
<!-- TMPL_ELSE -->
<!-- TMPL_LOOP name="category_list" -->
<!-- TMPL_VAR name="categoryname" --><br />
<!-- /TMPL_LOOP -->
<!-- /TMPL_IF -->
</td>
<td>
<form action="<!-- TMPL_VAR name=action -->" method="post">
<input type="hidden" name="op" value="edit" />
<input type="hidden" name="branchcode" value="<!-- TMPL_VAR name=value escape="HTML" -->" />
<input type="submit" value="Edit" class="submit" />
</form>
</td>
<td>
<form action="<!-- TMPL_VAR name=action -->" method="post">
<input type="hidden" name="branchcode" value="<!-- TMPL_VAR name=value escape="HTML" -->" />
<input type="hidden" name="branchname" value="<!-- TMPL_VAR NAME="branch_name" escape="HTML" -->">
<input type="hidden" name="op" value="delete" /><input type="submit" value="Delete" class="cancel" />
</form>
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<form action="<!-- TMPL_VAR name=action -->" method="post">
<p><input type="hidden" name="op" value="add" />
<input type="submit" class="submit" value="Add New Branch" /></p>
</form>
<table>
<caption>Branches Categories</caption>
<tr>
<th>Name</th>
<th>Code</th>
<th>Description</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
<!-- TMPL_LOOP name="branchcategories" -->
<tr>
<td><!-- TMPL_VAR name="categoryname" --></td>
<td><!-- TMPL_VAR name="categorycode" --></td>
<td><!-- TMPL_VAR name="codedescription" --></td>
<td>
<form action="<!-- TMPL_VAR name=action -->" method="post">
<input type="hidden" name="op" value="editcategory" />
<input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
<input type="submit" value="Edit" class="submit" />
</form>
</td>
<td>
<form action="<!-- TMPL_VAR name=action -->" method="post">
<input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
<input type="hidden" name="op" value="delete_category" /><input type="submit" value="Delete" class="cancel" />
</form>
</td>
</tr>
<!-- /TMPL_LOOP -->
</table><form action="<!-- TMPL_VAR name="action" -->" method="post"><p>
<input type="hidden" name="op" value="editcategory" />
<input type="submit" class="submit" value="Add New Category" /></p>
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="editcategory" -->
<form action="<!-- TMPL_VAR name=action -->" name="Aform" method="post">
<input type="hidden" name=op value="addcategory_validate" />
<table>
<caption><!-- TMPL_VAR name="head" --></caption>
<tr>
<td>Category code</td>
<td>
<!-- TMPL_IF name="categorycode" -->
<input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
<!-- TMPL_VAR name="categorycode" -->
<!-- TMPL_ELSE -->
<input type="text" name="categorycode" size="5" maxlength="5" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
<!-- /TMPL_IF -->
</td>
</tr>
<tr>
<td>Name</td>
<td><input type="text" name="categoryname" size="40" maxlength="80" value="<!-- TMPL_VAR name=categoryname escape="HTML" -->" />&nbsp;</td>
</tr>
<tr>
<td>Description</td>
<td><input type="text" name="codedescription" size="40" maxlength="80" value="<!-- TMPL_VAR name="codedescription" escape="HTML" -->" />&nbsp;</td>
</tr>
</table><input type="submit" value="Update" class="submit" />
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="delete_category" -->
Confirm delete:
<div class="tabitem"> <form action="<!-- TMPL_VAR name=action -->" method="post">
<input type="hidden" name="op" value="categorydelete_confirmed" />
<input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
<input type="submit" value="YES" class="submit" />
</form>
<form action="<!-- TMPL_VAR name="action" -->" method="post"><input type="hidden" name="op" value="">
<input type="submit" value="NO" class="cancel" />
</form></div>
<!-- /TMPL_IF --></div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->