4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Tools › Rotating collections ›
6 [%- IF ( action == "new" ) %]
9 Edit collection [% editColTitle | html %]
12 [% INCLUDE 'doc-head-close.inc' %]
14 <body id="rcoll_editCollections" class="tools rcoll">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'cat-search.inc' %]
18 <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> ›
19 [%- IF ( action == "new" ) %]
22 <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId | uri %]">Collection <i>[% editColTitle | html %]</i></a> › Edit
26 <div class="main container-fluid">
28 <div class="col-sm-10 col-sm-push-2">
31 [% IF ( previousActionCreate ) %]
32 [% IF ( createSuccess ) %]
33 <div class="dialog message">
34 <p>Collection <i>[% createdTitle | html %]</i> added successfully</p>
35 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
38 <div class="dialog alert">
39 <p>Collection <i>[% createdTitle | html %]</i> failed to be added</p>
41 [% IF failureMessage == "NO_TITLE" %]
43 [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
45 [% ELSIF failureMessage == "NO_DESCRIPTION" %]
46 No description entered.
48 [% failureMessage | html %]
55 [% IF ( previousActionDelete ) %]
56 [% IF ( deleteSuccess ) %]
57 <div class="dialog message">
58 <p>Collection deleted successfully</p>
59 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
62 <div class="dialog alert">Collection failed to be deleted</div>
66 [% IF ( previousActionUpdate ) %]
67 [% IF ( updateSuccess ) %]
68 <div class="dialog message">
69 <p>Collection <i>[% updatedTitle | html %]</i> updated successfully</p>
70 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
73 <div class="dialog alert">
74 <p>Collection <i>[% updatedTitle | html %]</i> failed to be updated</p>
76 [% IF failureMessage == "NO_ID" %]
77 No collection id given.
78 [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
81 [% failureMessage | html %]
90 [% IF action == "new" || action == "edit" %]
91 [% IF ( previousActionEdit ) %]
92 <h1>Edit collection <i>[% editColTitle | html %]</i></h1>
94 <h1>Add new collection</h1>
97 <form action="editCollections.pl" method="post" class="validated">
98 [% IF ( previousActionEdit ) %]
99 <input type="hidden" name="action" value="update" />
100 <input type="hidden" name="colId" value="[% editColId | html %]" />
102 <input type="hidden" name="action" value="create" />
105 <fieldset class="rows">
108 <label class="required" for="title">Title: </label>
109 [% IF ( editColTitle ) %]
110 <input type="text" name="title" value="[% editColTitle | html %]" required="required" />
111 <span class="required">Required</span>
113 <input type="text" name="title" required="required" />
114 <span class="required">Required</span>
118 <label for="description">Description: </label>
119 [% IF (editColDescription ) %]
120 <input type="text" size="50" name="description" value="[% editColDescription | html %]" />
122 <input type="text" size="50" name="description" />
127 <fieldset class="action">
128 <p><input type="submit" value="Submit" /> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a></p>
135 </div> <!-- /.col-sm-10.col-sm-push-2 -->
137 <div class="col-sm-2 col-sm-pull-10">
139 [% INCLUDE 'tools-menu.inc' %]
141 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
142 </div> <!-- /.row -->
144 [% MACRO jsinclude BLOCK %]
145 [% Asset.js("js/tools-menu.js") | $raw %]
146 [% Asset.js("js/rotating-collections.js") | $raw %]
149 [% INCLUDE 'intranet-bottom.inc' %]