Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

125 lines
5.0 KiB

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Tools &rsaquo; Rotating collections &rsaquo; Edit collections</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="rcoll_editCollections" class="tools rcoll">
[% INCLUDE 'header.inc' %]
[% INCLUDE '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" class="yui-t2">
<div id="bd">
<div class="yui-b">
[% INCLUDE 'tools-menu.inc' %]
</div>
<div class="yui-main">
<div class="yui-bd">
[% IF ( previousActionCreate ) %]
[% IF ( createSuccess ) %]
<div class="alert">Collection <i>[% createdTitle %]</i> created successfully!</div>
[% ELSE %]
<div class="alert">
<p>Collection <i>[% createdTitle %]</i> failed to be created!</p>
<p>
[% IF failureMessage == "NO_TITLE" %]
No title entered.
[% ELSIF failureMessage == "NO_DESCRIPTION" %]
No description entered.
[% ELSE %]
[% failureMessage %]
[% END %]
</p>
</div>
[% END %]
[% END %]
[% IF ( previousActionDelete ) %]
[% IF ( deleteSuccess ) %]
<div class="alert">Collection deleted successfully!</div>
[% ELSE %]
<div class="alert">Collection failed to be deleted!</div>
[% END %]
[% END %]
[% IF ( previousActionUpdate ) %]
[% IF ( updateSuccess ) %]
<div class="alert">Collection <i>[% updatedTitle %]</i> updated successfully!</div>
[% ELSE %]
<div class="alert">
<p>Collection <i>[% updatedTitle %]</i> failed to be updated!</p>
<p>
[% IF failureMessage == "NO_ID" %]
No collection id given.
[% ELSE %]
[% failureMessage %]
[% END %]
</p>
</div>
[% END %]
[% END %]
<div>
<br />
[% IF action == "new" || action == "edit" %]
[% IF ( previousActionEdit ) %]
<h1>Edit collection <i>[% editColTitle %]</i></h1>
[% ELSE %]
<h1>Create new collection</h1>
[% END %]
<form action="editCollections.pl" method="post">
[% IF ( previousActionEdit ) %]
<input type="hidden" name="action" value="update" />
<input type="hidden" name="colId" value="[% editColId %]" />
[% ELSE %]
<input type="hidden" name="action" value="create" />
[% END %]
<table>
<tr>
<td>
<label class="required" for="title">Title: </label>
</td>
<td>
[% IF ( editColTitle ) %]<input type="text" name="title" value="[% editColTitle %]" />
[% ELSE %]<input type="text" name="title" />[% END %]
</td>
</tr>
<tr>
<td>
<label class="required" for="description">Description: </label>
</td>
<td>
[% IF (editColDescription ) %]<input type="text" size="50" name="description" value="[% editColDescription %]" />
[% ELSE %]<input type="text" size="50" name="description" />[% END %]
</td>
</tr>
<tr>
<td colspan="2">
[% IF ( previousActionEdit ) %]
<input class="btn" type="submit" value="Update" />
[% ELSE %]
<input class="btn" type="submit" value="Create" />
[% END %]
</td>
</tr>
</table>
</form>
[% END %]
</div>
<p>
<a class="btn" href="rotatingCollections.pl">Return to rotating collections home</a>
</p>
</div>
</div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]