2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Tools › Rotating collections ›
4 [%- IF ( action == "new" ) %]
7 Edit collection [% editColTitle %]
10 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="rcoll_editCollections" class="tools rcoll">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'cat-search.inc' %]
16 <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> ›
17 [%- IF ( action == "new" ) %]
20 <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId %]">Collection <i>[% editColTitle %]</i></a> › Edit
24 <div id="doc3" class="yui-t2">
29 [% IF ( previousActionCreate ) %]
30 [% IF ( createSuccess ) %]
31 <div class="dialog message">
32 <p>Collection <i>[% createdTitle %]</i> added successfully</p>
33 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
36 <div class="dialog alert">
37 <p>Collection <i>[% createdTitle %]</i> failed to be added</p>
39 [% IF failureMessage == "NO_TITLE" %]
41 [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
43 [% ELSIF failureMessage == "NO_DESCRIPTION" %]
44 No description entered.
53 [% IF ( previousActionDelete ) %]
54 [% IF ( deleteSuccess ) %]
55 <div class="dialog message">
56 <p>Collection deleted successfully</p>
57 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
60 <div class="dialog alert">Collection failed to be deleted</div>
64 [% IF ( previousActionUpdate ) %]
65 [% IF ( updateSuccess ) %]
66 <div class="dialog message">
67 <p>Collection <i>[% updatedTitle %]</i> updated successfully</p>
68 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
71 <div class="dialog alert">
72 <p>Collection <i>[% updatedTitle %]</i> failed to be updated</p>
74 [% IF failureMessage == "NO_ID" %]
75 No collection id given.
76 [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
88 [% IF action == "new" || action == "edit" %]
89 [% IF ( previousActionEdit ) %]
90 <h1>Edit collection <i>[% editColTitle %]</i></h1>
92 <h1>Add new collection</h1>
95 <form action="editCollections.pl" method="post" class="validated">
96 [% IF ( previousActionEdit ) %]
97 <input type="hidden" name="action" value="update" />
98 <input type="hidden" name="colId" value="[% editColId %]" />
100 <input type="hidden" name="action" value="create" />
103 <fieldset class="rows">
106 <label class="required" for="title">Title: </label>
107 [% IF ( editColTitle ) %]
108 <input type="text" name="title" value="[% editColTitle %]" required="required" />
109 <span class="required">Required</span>
111 <input type="text" name="title" required="required" />
112 <span class="required">Required</span>
116 <label for="description">Description: </label>
117 [% IF (editColDescription ) %]
118 <input type="text" size="50" name="description" value="[% editColDescription %]" />
120 <input type="text" size="50" name="description" />
125 <fieldset class="action">
126 <p><input type="submit" value="Submit" /> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a></p>
132 </div> <!-- /.yui-b -->
133 </div> <!-- /#yui-main -->
135 [% INCLUDE 'tools-menu.inc' %]
139 [% MACRO jsinclude BLOCK %]
140 <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
141 <script type="text/javascript" src="[% interface %]/[% theme %]/js/rotating-collections.js"></script>
144 [% INCLUDE 'intranet-bottom.inc' %]