3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Tools › Rotating collections ›
5 [%- IF ( action == "new" ) %]
8 Edit collection [% editColTitle %]
11 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="rcoll_editCollections" class="tools rcoll">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'cat-search.inc' %]
17 <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> ›
18 [%- IF ( action == "new" ) %]
21 <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId %]">Collection <i>[% editColTitle %]</i></a> › Edit
25 <div id="doc3" class="yui-t2">
30 [% IF ( previousActionCreate ) %]
31 [% IF ( createSuccess ) %]
32 <div class="dialog message">
33 <p>Collection <i>[% createdTitle %]</i> added successfully</p>
34 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
37 <div class="dialog alert">
38 <p>Collection <i>[% createdTitle %]</i> failed to be added</p>
40 [% IF failureMessage == "NO_TITLE" %]
42 [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
44 [% ELSIF failureMessage == "NO_DESCRIPTION" %]
45 No description entered.
54 [% IF ( previousActionDelete ) %]
55 [% IF ( deleteSuccess ) %]
56 <div class="dialog message">
57 <p>Collection deleted successfully</p>
58 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
61 <div class="dialog alert">Collection failed to be deleted</div>
65 [% IF ( previousActionUpdate ) %]
66 [% IF ( updateSuccess ) %]
67 <div class="dialog message">
68 <p>Collection <i>[% updatedTitle %]</i> updated successfully</p>
69 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
72 <div class="dialog alert">
73 <p>Collection <i>[% updatedTitle %]</i> failed to be updated</p>
75 [% IF failureMessage == "NO_ID" %]
76 No collection id given.
77 [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
89 [% IF action == "new" || action == "edit" %]
90 [% IF ( previousActionEdit ) %]
91 <h1>Edit collection <i>[% editColTitle %]</i></h1>
93 <h1>Add new collection</h1>
96 <form action="editCollections.pl" method="post" class="validated">
97 [% IF ( previousActionEdit ) %]
98 <input type="hidden" name="action" value="update" />
99 <input type="hidden" name="colId" value="[% editColId %]" />
101 <input type="hidden" name="action" value="create" />
104 <fieldset class="rows">
107 <label class="required" for="title">Title: </label>
108 [% IF ( editColTitle ) %]
109 <input type="text" name="title" value="[% editColTitle %]" required="required" />
110 <span class="required">Required</span>
112 <input type="text" name="title" required="required" />
113 <span class="required">Required</span>
117 <label for="description">Description: </label>
118 [% IF (editColDescription ) %]
119 <input type="text" size="50" name="description" value="[% editColDescription %]" />
121 <input type="text" size="50" name="description" />
126 <fieldset class="action">
127 <p><input type="submit" value="Submit" /> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a></p>
133 </div> <!-- /.yui-b -->
134 </div> <!-- /#yui-main -->
136 [% INCLUDE 'tools-menu.inc' %]
140 [% MACRO jsinclude BLOCK %]
141 [% Asset.js("js/tools-menu.js") %]
142 [% Asset.js("js/rotating-collections.js") %]
145 [% INCLUDE 'intranet-bottom.inc' %]