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 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
27 <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a>
30 [%- IF ( action == "new" ) %]
32 <a href="#" aria-current="page">
38 <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId | uri %]">Collection <em>[% editColTitle | html %]</em></a>
41 <a href="#" aria-current="page">
49 <div class="main container-fluid">
51 <div class="col-sm-10 col-sm-push-2">
54 [% IF ( previousActionCreate ) %]
55 [% IF ( createSuccess ) %]
56 <div class="dialog message">
57 <p>Collection <em>[% createdTitle | html %]</em> added 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">
62 <p>Collection <em>[% createdTitle | html %]</em> failed to be added</p>
64 [% IF failureMessage == "NO_TITLE" %]
66 [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
68 [% ELSIF failureMessage == "NO_DESCRIPTION" %]
69 No description entered.
71 [% failureMessage | html %]
78 [% IF ( previousActionDelete ) %]
79 [% IF ( deleteSuccess ) %]
80 <div class="dialog message">
81 <p>Collection deleted successfully</p>
82 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
85 <div class="dialog alert">Collection failed to be deleted</div>
89 [% IF ( previousActionUpdate ) %]
90 [% IF ( updateSuccess ) %]
91 <div class="dialog message">
92 <p>Collection <em>[% updatedTitle | html %]</em> updated successfully</p>
93 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
96 <div class="dialog alert">
97 <p>Collection <em>[% updatedTitle | html %]</em> failed to be updated</p>
99 [% IF failureMessage == "NO_ID" %]
100 No collection id given.
101 [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
102 Title already in use.
104 [% failureMessage | html %]
113 [% IF action == "new" || action == "edit" %]
114 [% IF ( previousActionEdit ) %]
115 <h1>Edit collection <em>[% editColTitle | html %]</em></h1>
117 <h1>Add new collection</h1>
120 <form action="editCollections.pl" method="post" class="validated">
121 [% IF ( previousActionEdit ) %]
122 <input type="hidden" name="action" value="update" />
123 <input type="hidden" name="colId" value="[% editColId | html %]" />
125 <input type="hidden" name="action" value="create" />
128 <fieldset class="rows">
131 <label class="required" for="title">Title: </label>
132 [% IF ( editColTitle ) %]
133 <input type="text" name="title" value="[% editColTitle | html %]" required="required" />
134 <span class="required">Required</span>
136 <input type="text" name="title" required="required" />
137 <span class="required">Required</span>
141 <label for="description">Description: </label>
142 [% IF (editColDescription ) %]
143 <input type="text" size="50" name="description" value="[% editColDescription | html %]" />
145 <input type="text" size="50" name="description" />
150 <fieldset class="action">
151 <p><input type="submit" value="Submit" /> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a></p>
158 </div> <!-- /.col-sm-10.col-sm-push-2 -->
160 <div class="col-sm-2 col-sm-pull-10">
162 [% INCLUDE 'tools-menu.inc' %]
164 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
165 </div> <!-- /.row -->
167 [% MACRO jsinclude BLOCK %]
168 [% Asset.js("js/tools-menu.js") | $raw %]
169 [% Asset.js("js/rotating-collections.js") | $raw %]
172 [% INCLUDE 'intranet-bottom.inc' %]