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 == "DUPLICATE_TITLE" %]
42 [% ELSIF failureMessage == "NO_DESCRIPTION" %]
43 No description entered.
52 [% IF ( previousActionDelete ) %]
53 [% IF ( deleteSuccess ) %]
54 <div class="dialog message">
55 <p>Collection deleted successfully</p>
56 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
59 <div class="dialog alert">Collection failed to be deleted</div>
63 [% IF ( previousActionUpdate ) %]
64 [% IF ( updateSuccess ) %]
65 <div class="dialog message">
66 <p>Collection <i>[% updatedTitle %]</i> updated successfully</p>
67 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
70 <div class="dialog alert">
71 <p>Collection <i>[% updatedTitle %]</i> failed to be updated</p>
73 [% IF failureMessage == "NO_ID" %]
74 No collection id given.
75 [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
87 [% IF action == "new" || action == "edit" %]
88 [% IF ( previousActionEdit ) %]
89 <h1>Edit collection <i>[% editColTitle %]</i></h1>
91 <h1>Add new collection</h1>
94 <form action="editCollections.pl" method="post" class="validated">
95 [% IF ( previousActionEdit ) %]
96 <input type="hidden" name="action" value="update" />
97 <input type="hidden" name="colId" value="[% editColId %]" />
99 <input type="hidden" name="action" value="create" />
102 <fieldset class="rows">
105 <label class="required" for="title">Title: </label>
106 [% IF ( editColTitle ) %]
107 <input type="text" name="title" value="[% editColTitle %]" required="required" />
108 <span class="required">Required</span>
110 <input type="text" name="title" required="required" />
111 <span class="required">Required</span>
115 <label for="description">Description: </label>
116 [% IF (editColDescription ) %]
117 <input type="text" size="50" name="description" value="[% editColDescription %]" />
119 <input type="text" size="50" name="description" />
124 <fieldset class="action">
125 <p><input type="submit" value="Submit" /> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a></p>
131 </div> <!-- /.yui-b -->
132 </div> <!-- /#yui-main -->
134 [% INCLUDE 'tools-menu.inc' %]
137 [% INCLUDE 'intranet-bottom.inc' %]