|
Lines 1-28
Link Here
|
| 1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
| 2 |
<title>Koha › Tools › Rotating collections › Edit collections</title> |
2 |
<title>Koha › Tools › Rotating collections › |
|
|
3 |
[%- IF ( action == "new" ) %] |
| 4 |
Add a new collection |
| 5 |
[% ELSE %] |
| 6 |
Edit collection [% editColTitle %] |
| 7 |
[% END -%] |
| 8 |
</title> |
| 3 |
[% INCLUDE 'doc-head-close.inc' %] |
9 |
[% INCLUDE 'doc-head-close.inc' %] |
| 4 |
</head> |
10 |
</head> |
| 5 |
<body id="rcoll_editCollections" class="tools rcoll"> |
11 |
<body id="rcoll_editCollections" class="tools rcoll"> |
| 6 |
[% INCLUDE 'header.inc' %] |
12 |
[% INCLUDE 'header.inc' %] |
| 7 |
[% INCLUDE 'cat-search.inc' %] |
13 |
[% INCLUDE 'cat-search.inc' %] |
| 8 |
|
14 |
|
| 9 |
<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> › Edit collections</div> |
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" ) %] |
| 17 |
Add a new collection |
| 18 |
[% ELSE %] |
| 19 |
<a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId %]">Collection <i>[% editColTitle %]</i></a> › Edit |
| 20 |
[% END -%] |
| 21 |
</div> |
| 10 |
|
22 |
|
| 11 |
<div id="doc3" class="yui-t2"> |
23 |
<div id="doc3" class="yui-t2"> |
| 12 |
<div id="bd"> |
24 |
<div id="bd"> |
| 13 |
<div class="yui-b"> |
25 |
<div id="yui-main"> |
| 14 |
[% INCLUDE 'tools-menu.inc' %] |
26 |
<div class="yui-b"> |
| 15 |
</div> |
|
|
| 16 |
|
| 17 |
<div class="yui-main"> |
| 18 |
<div class="yui-bd"> |
| 19 |
|
27 |
|
| 20 |
[% IF ( previousActionCreate ) %] |
28 |
[% IF ( previousActionCreate ) %] |
| 21 |
[% IF ( createSuccess ) %] |
29 |
[% IF ( createSuccess ) %] |
| 22 |
<div class="alert">Collection <i>[% createdTitle %]</i> created successfully!</div> |
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> |
| 33 |
</div> |
| 23 |
[% ELSE %] |
34 |
[% ELSE %] |
| 24 |
<div class="alert"> |
35 |
<div class="dialog alert"> |
| 25 |
<p>Collection <i>[% createdTitle %]</i> failed to be created!</p> |
36 |
<p>Collection <i>[% createdTitle %]</i> failed to be added</p> |
| 26 |
<p> |
37 |
<p> |
| 27 |
[% IF failureMessage == "NO_TITLE" %] |
38 |
[% IF failureMessage == "NO_TITLE" %] |
| 28 |
No title entered. |
39 |
No title entered. |
|
Lines 38-55
Link Here
|
| 38 |
|
49 |
|
| 39 |
[% IF ( previousActionDelete ) %] |
50 |
[% IF ( previousActionDelete ) %] |
| 40 |
[% IF ( deleteSuccess ) %] |
51 |
[% IF ( deleteSuccess ) %] |
| 41 |
<div class="alert">Collection deleted successfully!</div> |
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> |
| 55 |
</div> |
| 42 |
[% ELSE %] |
56 |
[% ELSE %] |
| 43 |
<div class="alert">Collection failed to be deleted!</div> |
57 |
<div class="dialog alert">Collection failed to be deleted</div> |
| 44 |
[% END %] |
58 |
[% END %] |
| 45 |
[% END %] |
59 |
[% END %] |
| 46 |
|
60 |
|
| 47 |
[% IF ( previousActionUpdate ) %] |
61 |
[% IF ( previousActionUpdate ) %] |
| 48 |
[% IF ( updateSuccess ) %] |
62 |
[% IF ( updateSuccess ) %] |
| 49 |
<div class="alert">Collection <i>[% updatedTitle %]</i> updated successfully!</div> |
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> |
| 66 |
</div> |
| 50 |
[% ELSE %] |
67 |
[% ELSE %] |
| 51 |
<div class="alert"> |
68 |
<div class="dialog alert"> |
| 52 |
<p>Collection <i>[% updatedTitle %]</i> failed to be updated!</p> |
69 |
<p>Collection <i>[% updatedTitle %]</i> failed to be updated</p> |
| 53 |
<p> |
70 |
<p> |
| 54 |
[% IF failureMessage == "NO_ID" %] |
71 |
[% IF failureMessage == "NO_ID" %] |
| 55 |
No collection id given. |
72 |
No collection id given. |
|
Lines 62-125
Link Here
|
| 62 |
[% END %] |
79 |
[% END %] |
| 63 |
|
80 |
|
| 64 |
<div> |
81 |
<div> |
| 65 |
<br /> |
|
|
| 66 |
|
82 |
|
| 67 |
[% IF action == "new" || action == "edit" %] |
83 |
[% IF action == "new" || action == "edit" %] |
| 68 |
[% IF ( previousActionEdit ) %] |
84 |
[% IF ( previousActionEdit ) %] |
| 69 |
<h1>Edit collection <i>[% editColTitle %]</i></h1> |
85 |
<h1>Edit collection <i>[% editColTitle %]</i></h1> |
| 70 |
[% ELSE %] |
86 |
[% ELSE %] |
| 71 |
<h1>Create new collection</h1> |
87 |
<h1>Add new collection</h1> |
| 72 |
[% END %] |
88 |
[% END %] |
| 73 |
|
89 |
|
| 74 |
<form action="editCollections.pl" method="post"> |
90 |
<form action="editCollections.pl" method="post" class="validated"> |
| 75 |
[% IF ( previousActionEdit ) %] |
91 |
[% IF ( previousActionEdit ) %] |
| 76 |
<input type="hidden" name="action" value="update" /> |
92 |
<input type="hidden" name="action" value="update" /> |
| 77 |
<input type="hidden" name="colId" value="[% editColId %]" /> |
93 |
<input type="hidden" name="colId" value="[% editColId %]" /> |
| 78 |
[% ELSE %] |
94 |
[% ELSE %] |
| 79 |
<input type="hidden" name="action" value="create" /> |
95 |
<input type="hidden" name="action" value="create" /> |
| 80 |
[% END %] |
96 |
[% END %] |
| 81 |
|
|
|
| 82 |
<table> |
| 83 |
<tr> |
| 84 |
<td> |
| 85 |
<label class="required" for="title">Title: </label> |
| 86 |
</td> |
| 87 |
<td> |
| 88 |
[% IF ( editColTitle ) %]<input type="text" name="title" value="[% editColTitle %]" /> |
| 89 |
[% ELSE %]<input type="text" name="title" />[% END %] |
| 90 |
</td> |
| 91 |
</tr> |
| 92 |
|
| 93 |
<tr> |
| 94 |
<td> |
| 95 |
<label class="required" for="description">Description: </label> |
| 96 |
</td> |
| 97 |
<td> |
| 98 |
[% IF (editColDescription ) %]<input type="text" size="50" name="description" value="[% editColDescription %]" /> |
| 99 |
[% ELSE %]<input type="text" size="50" name="description" />[% END %] |
| 100 |
</td> |
| 101 |
</tr> |
| 102 |
|
97 |
|
| 103 |
<tr> |
98 |
<fieldset class="rows"> |
| 104 |
<td colspan="2"> |
99 |
<ol> |
| 105 |
[% IF ( previousActionEdit ) %] |
100 |
<li> |
| 106 |
<input class="btn" type="submit" value="Update" /> |
101 |
<label class="required" for="title">Title: </label> |
| 107 |
[% ELSE %] |
102 |
[% IF ( editColTitle ) %] |
| 108 |
<input class="btn" type="submit" value="Create" /> |
103 |
<input type="text" name="title" value="[% editColTitle %]" required="required" /> |
| 109 |
[% END %] |
104 |
<span class="required">Required</span> |
| 110 |
</td> |
105 |
[% ELSE %] |
| 111 |
</tr> |
106 |
<input type="text" name="title" required="required" /> |
| 112 |
</table> |
107 |
<span class="required">Required</span> |
|
|
108 |
[% END %] |
| 109 |
</li> |
| 110 |
<li> |
| 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> |
| 115 |
[% ELSE %] |
| 116 |
<input type="text" size="50" name="description" required="required" /> |
| 117 |
<span class="required">Required</span> |
| 118 |
[% END %] |
| 119 |
</li> |
| 120 |
</ol> |
| 121 |
</fieldset> |
| 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> |
| 124 |
</fieldset> |
| 113 |
</form> |
125 |
</form> |
| 114 |
[% END %] |
126 |
[% END %] |
| 115 |
</div> |
127 |
</div> |
| 116 |
|
128 |
|
| 117 |
<p> |
129 |
</div> <!-- /.yui-b --> |
| 118 |
<a class="btn" href="rotatingCollections.pl">Return to rotating collections home</a> |
130 |
</div> <!-- /#yui-main --> |
| 119 |
</p> |
131 |
<div class="yui-b"> |
| 120 |
|
132 |
[% INCLUDE 'tools-menu.inc' %] |
| 121 |
</div> |
|
|
| 122 |
</div> |
133 |
</div> |
| 123 |
</div> |
134 |
</div> <!-- /#bd --> |
| 124 |
[% INCLUDE 'intranet-bottom.inc' %] |
135 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 125 |
|
|
|