1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › Rotating collections › Edit collections</title>
3 [% INCLUDE 'doc-head-close.inc' %]
5 <body id="rcoll_editCollections" class="tools rcoll">
6 [% INCLUDE 'header.inc' %]
7 [% INCLUDE 'cat-search.inc' %]
9 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a> › Edit collections</div>
14 <h1>Rotating collections: Edit collections</h1>
17 [% IF ( previousActionCreate ) %]
18 [% IF ( createSuccess ) %]
19 <div>Collection '[% createdTitle %]' Created successfully!</div>
21 <div>Collection '[% createdTitle %]' Failed to be created!</div>
22 <div>Reason: <strong>[% failureMessage %]</strong></div>
26 [% IF ( previousActionDelete ) %]
27 [% IF ( DeleteSuccess ) %]
28 <div>Collection Deleted successfully!</div>
30 <div>Collection Failed to be deleted!</div>
35 [% IF ( previousActionUpdate ) %]
36 [% IF ( updateSuccess ) %]
37 <div>Collection '[% updatedTitle %]' Updated successfully!</div>
39 <div>Collection '[% updatedTitle %]' Failed to be updated!</div>
40 <div>Reason: <strong>[% failureMessage %]</strong></div>
45 [% IF ( collectionsLoop ) %]
51 <th>Holding library</th>
57 [% FOREACH collectionsLoo IN collectionsLoop %]
59 <td>[% collectionsLoo.colTitle %]</td>
60 <td>[% collectionsLoo.colDesc %]</td>
61 <td>[% collectionsLoo.colBranchcode %]</td>
62 <td><a href="editCollections.pl?action=edit&colId=[% collectionsLoo.colId %]">Edit</a></td>
63 <td><a href="editCollections.pl?action=delete&colId=[% collectionsLoo.colId %]">Delete</a></td>
69 There are no collections currently defined.
76 [% IF ( previousActionEdit ) %]
77 <h1>Edit Collection</h1>
79 <h1>Create new collection</h1>
82 <form action="editCollections.pl" method="post">
83 [% IF ( previousActionEdit ) %]
84 <input type="hidden" name="action" value="update" />
85 <input type="hidden" name="colId" value="[% editColId %]" />
87 <input type="hidden" name="action" value="create" />
93 <label for="title">Title: </label>
96 [% IF ( editColTitle ) %]<input type="text" name="title" value="[% editColTitle %]" />
97 [% ELSE %]<input type="text" name="title" />[% END %]
103 <label for="description">Description: </label>
106 [% IF (editColDescription ) %]<input type="text" size="50" name="description" value="[% editColDescription %]" />
107 [% ELSE %]<input type="text" size="50" name="description" />[% END %]
113 [% IF ( previousActionEdit ) %]
114 <input type="submit" value="Update" />
116 <input type="submit" value="Create" />
126 <input type="button" value="Return to rotating collections home" onclick="window.location.href='rotatingCollections.pl'">
131 [% INCLUDE 'intranet-bottom.inc' %]