1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › Rotating collections ›
3 [%- IF ( action == "new" ) %]
6 Edit collection [% editColTitle %]
9 [% INCLUDE 'doc-head-close.inc' %]
11 <body id="rcoll_editCollections" class="tools rcoll">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'cat-search.inc' %]
15 <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> ›
16 [%- IF ( action == "new" ) %]
19 <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId %]">Collection <i>[% editColTitle %]</i></a> › Edit
23 <div id="doc3" class="yui-t2">
28 [% IF ( previousActionCreate ) %]
29 [% IF ( createSuccess ) %]
30 <div class="dialog message">
31 <p>Collection <i>[% createdTitle %]</i> added successfully</p>
32 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
35 <div class="dialog alert">
36 <p>Collection <i>[% createdTitle %]</i> failed to be added</p>
38 [% IF failureMessage == "NO_TITLE" %]
40 [% ELSIF failureMessage == "NO_DESCRIPTION" %]
41 No description entered.
50 [% IF ( previousActionDelete ) %]
51 [% IF ( deleteSuccess ) %]
52 <div class="dialog message">
53 <p>Collection deleted successfully</p>
54 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
57 <div class="dialog alert">Collection failed to be deleted</div>
61 [% IF ( previousActionUpdate ) %]
62 [% IF ( updateSuccess ) %]
63 <div class="dialog message">
64 <p>Collection <i>[% updatedTitle %]</i> updated successfully</p>
65 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
68 <div class="dialog alert">
69 <p>Collection <i>[% updatedTitle %]</i> failed to be updated</p>
71 [% IF failureMessage == "NO_ID" %]
72 No collection id given.
83 [% IF action == "new" || action == "edit" %]
84 [% IF ( previousActionEdit ) %]
85 <h1>Edit collection <i>[% editColTitle %]</i></h1>
87 <h1>Add new collection</h1>
90 <form action="editCollections.pl" method="post" class="validated">
91 [% IF ( previousActionEdit ) %]
92 <input type="hidden" name="action" value="update" />
93 <input type="hidden" name="colId" value="[% editColId %]" />
95 <input type="hidden" name="action" value="create" />
98 <fieldset class="rows">
101 <label class="required" for="title">Title: </label>
102 [% IF ( editColTitle ) %]
103 <input type="text" name="title" value="[% editColTitle %]" required="required" />
104 <span class="required">Required</span>
106 <input type="text" name="title" required="required" />
107 <span class="required">Required</span>
111 <label class="required" for="description">Description: </label>
112 [% IF (editColDescription ) %]
113 <input type="text" size="50" name="description" value="[% editColDescription %]" required="required" />
114 <span class="required">Required</span>
116 <input type="text" size="50" name="description" required="required" />
117 <span class="required">Required</span>
122 <fieldset class="action">
123 <p><input type="submit" value="Submit" /> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a></p>
129 </div> <!-- /.yui-b -->
130 </div> <!-- /#yui-main -->
132 [% INCLUDE 'tools-menu.inc' %]
135 [% INCLUDE 'intranet-bottom.inc' %]