Koha/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tmpl
Kyle M Hall 844f63f1f8 Rotating Collections Fixes
This patch does the following:
  * Fixes the typos in updatedatabase.pl ( updates colBranchcode to varchar(10)
  * Adds the rotating_collections template files that somehow were not committed
  * Adds a missing sub from RotatingCollections.pm that must been deleted by accident
  * Adds the neccessary hooks in returns.pl to warn that and item needs to be returned
    to the branch that currently holds the collection.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-02 19:22:05 -05:00

125 lines
No EOL
4.6 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Tools &rsaquo; Rotating Collections &rsaquo; Edit Collections</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating Collections</a> &rsaquo; Edit Collections</div>
<div id="doc3">
<div id="bd">
<div class="yui-gb">
<h1>Rotating Collections: Edit Collections</h1>
<!--
<!-- TMPL_IF NAME="previousActionCreate" -->
<!-- TMPL_IF NAME="createSuccess" -->
<div>Collection '<!-- TMPL_VAR NAME="createdTitle" -->' Created Succesfully!</div>
<!-- TMPL_ELSE -->
<div>Collection '<!-- TMPL_VAR NAME="createdTitle" -->' Failed To Be Created!</div>
<div>Reason: <strong><!-- TMPL_VAR NAME="failureMessage" --></strong></div>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="previousActionDelete" -->
<!-- TMPL_IF NAME="DeleteSuccess" -->
<div>Collection Deleted Succesfully!</div>
<!-- TMPL_ELSE -->
<div>Collection Failed To Be Deleted!</div>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
-->
<!-- TMPL_IF NAME="previousActionUpdate" -->
<!-- TMPL_IF NAME="updateSuccess" -->
<div>Collection '<!-- TMPL_VAR NAME="updatedTitle" -->' Updated Succesfully!</div>
<!-- TMPL_ELSE -->
<div>Collection '<!-- TMPL_VAR NAME="updatedTitle" -->' Failed To Be Updated!</div>
<div>Reason: <strong><!-- TMPL_VAR NAME="failureMessage" --></strong></div>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<div>
<!-- TMPL_IF NAME="collectionsLoop" -->
<table>
<tr>
<th>Title</th>
<th>Description</th>
<th>Holding Library</th>
<td></td>
<td></td>
</tr>
<!-- TMPL_LOOP NAME="collectionsLoop" -->
<tr>
<td><!-- TMPL_VAR NAME="colTitle" --></td>
<td><!-- TMPL_VAR NAME="colDesc" --></td>
<td><!-- TMPL_VAR NAME="colBranchcode" --></td>
<td><a href="editCollections.pl?action=edit&colId=<!-- TMPL_VAR NAME="colId" -->">Edit</a></td>
<td><a href="editCollections.pl?action=delete&colId=<!-- TMPL_VAR NAME="colId" -->">Delete</a></td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<!-- TMPL_ELSE -->
There are no Collections currently defined.
<!-- /TMPL_IF -->
</div>
<div>
<br />
<!-- TMPL_IF NAME="previousActionEdit" -->
<h1>Edit Collection</h1>
<!-- TMPL_ELSE -->
<h1>Create New Collection</h1>
<!-- /TMPL_IF -->
<form action="editCollections.pl" method="post">
<!-- TMPL_IF NAME="previousActionEdit" -->
<input type="hidden" name="action" value="update" />
<input type="hidden" name="colId" value="<!-- TMPL_VAR NAME="editColId" -->" />
<!-- TMPL_ELSE -->
<input type="hidden" name="action" value="create" />
<!-- /TMPL_IF -->
<table>
<tr>
<td>
<label for="title">Title: </label>
</td>
<td>
<input type="text" name="title" <!-- TMPL_IF NAME="editColTitle" --> value="<!-- TMPL_VAR NAME="editColTitle" -->" <!-- /TMPL_IF --> />
</td>
</tr>
<tr>
<td>
<label for="description">Description: </label>
</td>
<td>
<input type="text" size="50" name="description" <!-- TMPL_IF NAME="editColDescription" --> value="<!-- TMPL_VAR NAME="editColDescription" -->" <!-- /TMPL_IF --> />
</td>
</tr>
<tr>
<td colspan="2">
<!-- TMPL_IF NAME="previousActionEdit" -->
<input type="submit" value="Update" />
<!-- TMPL_ELSE -->
<input type="submit" value="Create" />
<!-- /TMPL_IF -->
</td>
</tr>
</table>
</form>
</div>
<div>
<br/>
<input type="button" value="Return to Rotating Collections Home" onclick="window.location.href='rotatingCollections.pl'">
</div>
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->