|
Lines 1-11
Link Here
|
|
|
1 |
[% PROCESS 'i18n.inc' %] |
| 1 |
[% USE Asset %] |
2 |
[% USE Asset %] |
| 2 |
[% SET footerjs = 1 %] |
3 |
[% SET footerjs = 1 %] |
| 3 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
| 4 |
<title>Koha › Tools › Rotating collections › |
5 |
<title>[% t('Koha › Tools › Rotating collections ›') %] |
| 5 |
[%- IF ( action == "new" ) %] |
6 |
[%- IF ( action == "new" ) %] |
| 6 |
Add a new collection |
7 |
[% t('Add a new collection') %] |
| 7 |
[% ELSE %] |
8 |
[% ELSE %] |
| 8 |
Edit collection [% editColTitle %] |
9 |
[% t('Edit collection') %] [% editColTitle %] |
| 9 |
[% END -%] |
10 |
[% END -%] |
| 10 |
</title> |
11 |
</title> |
| 11 |
[% INCLUDE 'doc-head-close.inc' %] |
12 |
[% INCLUDE 'doc-head-close.inc' %] |
|
Lines 14-24
Link Here
|
| 14 |
[% INCLUDE 'header.inc' %] |
15 |
[% INCLUDE 'header.inc' %] |
| 15 |
[% INCLUDE 'cat-search.inc' %] |
16 |
[% INCLUDE 'cat-search.inc' %] |
| 16 |
|
17 |
|
| 17 |
<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> › |
18 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> › <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Rotating collections') %]</a> › |
| 18 |
[%- IF ( action == "new" ) %] |
19 |
[%- IF ( action == "new" ) %] |
| 19 |
Add a new collection |
20 |
[% t('Add a new collection') %] |
| 20 |
[% ELSE %] |
21 |
[% ELSE %] |
| 21 |
<a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId %]">Collection <i>[% editColTitle %]</i></a> › Edit |
22 |
<a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId %]">[% t('Collection') %] <i>[% editColTitle %]</i></a> [% t('› Edit') %] |
| 22 |
[% END -%] |
23 |
[% END -%] |
| 23 |
</div> |
24 |
</div> |
| 24 |
|
25 |
|
|
Lines 30-48
Link Here
|
| 30 |
[% IF ( previousActionCreate ) %] |
31 |
[% IF ( previousActionCreate ) %] |
| 31 |
[% IF ( createSuccess ) %] |
32 |
[% IF ( createSuccess ) %] |
| 32 |
<div class="dialog message"> |
33 |
<div class="dialog message"> |
| 33 |
<p>Collection <i>[% createdTitle %]</i> added successfully</p> |
34 |
<p>[% t('Collection') %] <i>[% createdTitle %]</i> [% t('added successfully') %]</p> |
| 34 |
<p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p> |
35 |
<p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Return to rotating collections home') %]</a></p> |
| 35 |
</div> |
36 |
</div> |
| 36 |
[% ELSE %] |
37 |
[% ELSE %] |
| 37 |
<div class="dialog alert"> |
38 |
<div class="dialog alert"> |
| 38 |
<p>Collection <i>[% createdTitle %]</i> failed to be added</p> |
39 |
<p>[% t('Collection') %] <i>[% createdTitle %]</i> [% t('failed to be added') %]</p> |
| 39 |
<p> |
40 |
<p> |
| 40 |
[% IF failureMessage == "NO_TITLE" %] |
41 |
[% IF failureMessage == "NO_TITLE" %] |
| 41 |
No title entered. |
42 |
[% t('No title entered.') %] |
| 42 |
[% ELSIF failureMessage == "DUPLICATE_TITLE" %] |
43 |
[% ELSIF failureMessage == "DUPLICATE_TITLE" %] |
| 43 |
Title already in use. |
44 |
[% t('Title already in use.') %] |
| 44 |
[% ELSIF failureMessage == "NO_DESCRIPTION" %] |
45 |
[% ELSIF failureMessage == "NO_DESCRIPTION" %] |
| 45 |
No description entered. |
46 |
[% t('No description entered.') %] |
| 46 |
[% ELSE %] |
47 |
[% ELSE %] |
| 47 |
[% failureMessage %] |
48 |
[% failureMessage %] |
| 48 |
[% END %] |
49 |
[% END %] |
|
Lines 54-81
Link Here
|
| 54 |
[% IF ( previousActionDelete ) %] |
55 |
[% IF ( previousActionDelete ) %] |
| 55 |
[% IF ( deleteSuccess ) %] |
56 |
[% IF ( deleteSuccess ) %] |
| 56 |
<div class="dialog message"> |
57 |
<div class="dialog message"> |
| 57 |
<p>Collection deleted successfully</p> |
58 |
<p>[% t('Collection deleted successfully') %]</p> |
| 58 |
<p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p> |
59 |
<p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Return to rotating collections home') %]</a></p> |
| 59 |
</div> |
60 |
</div> |
| 60 |
[% ELSE %] |
61 |
[% ELSE %] |
| 61 |
<div class="dialog alert">Collection failed to be deleted</div> |
62 |
<div class="dialog alert">[% t('Collection failed to be deleted') %]</div> |
| 62 |
[% END %] |
63 |
[% END %] |
| 63 |
[% END %] |
64 |
[% END %] |
| 64 |
|
65 |
|
| 65 |
[% IF ( previousActionUpdate ) %] |
66 |
[% IF ( previousActionUpdate ) %] |
| 66 |
[% IF ( updateSuccess ) %] |
67 |
[% IF ( updateSuccess ) %] |
| 67 |
<div class="dialog message"> |
68 |
<div class="dialog message"> |
| 68 |
<p>Collection <i>[% updatedTitle %]</i> updated successfully</p> |
69 |
<p>[% t('Collection') %] <i>[% updatedTitle %]</i> [% t('updated successfully') %]</p> |
| 69 |
<p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p> |
70 |
<p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Return to rotating collections home') %]</a></p> |
| 70 |
</div> |
71 |
</div> |
| 71 |
[% ELSE %] |
72 |
[% ELSE %] |
| 72 |
<div class="dialog alert"> |
73 |
<div class="dialog alert"> |
| 73 |
<p>Collection <i>[% updatedTitle %]</i> failed to be updated</p> |
74 |
<p>[% t('Collection') %] <i>[% updatedTitle %]</i> [% t('failed to be updated') %]</p> |
| 74 |
<p> |
75 |
<p> |
| 75 |
[% IF failureMessage == "NO_ID" %] |
76 |
[% IF failureMessage == "NO_ID" %] |
| 76 |
No collection id given. |
77 |
[% t('No collection id given.') %] |
| 77 |
[% ELSIF failureMessage == "DUPLICATE_TITLE" %] |
78 |
[% ELSIF failureMessage == "DUPLICATE_TITLE" %] |
| 78 |
Title already in use. |
79 |
[% t('Title already in use.') %] |
| 79 |
[% ELSE %] |
80 |
[% ELSE %] |
| 80 |
[% failureMessage %] |
81 |
[% failureMessage %] |
| 81 |
[% END %] |
82 |
[% END %] |
|
Lines 88-96
Link Here
|
| 88 |
|
89 |
|
| 89 |
[% IF action == "new" || action == "edit" %] |
90 |
[% IF action == "new" || action == "edit" %] |
| 90 |
[% IF ( previousActionEdit ) %] |
91 |
[% IF ( previousActionEdit ) %] |
| 91 |
<h1>Edit collection <i>[% editColTitle %]</i></h1> |
92 |
<h1>[% t('Edit collection') %] <i>[% editColTitle %]</i></h1> |
| 92 |
[% ELSE %] |
93 |
[% ELSE %] |
| 93 |
<h1>Add new collection</h1> |
94 |
<h1>[% t('Add new collection') %]</h1> |
| 94 |
[% END %] |
95 |
[% END %] |
| 95 |
|
96 |
|
| 96 |
<form action="editCollections.pl" method="post" class="validated"> |
97 |
<form action="editCollections.pl" method="post" class="validated"> |
|
Lines 104-120
Link Here
|
| 104 |
<fieldset class="rows"> |
105 |
<fieldset class="rows"> |
| 105 |
<ol> |
106 |
<ol> |
| 106 |
<li> |
107 |
<li> |
| 107 |
<label class="required" for="title">Title: </label> |
108 |
<label class="required" for="title">[% t('Title:') %] </label> |
| 108 |
[% IF ( editColTitle ) %] |
109 |
[% IF ( editColTitle ) %] |
| 109 |
<input type="text" name="title" value="[% editColTitle %]" required="required" /> |
110 |
<input type="text" name="title" value="[% editColTitle %]" required="required" /> |
| 110 |
<span class="required">Required</span> |
111 |
<span class="required">[% t('Required') %]</span> |
| 111 |
[% ELSE %] |
112 |
[% ELSE %] |
| 112 |
<input type="text" name="title" required="required" /> |
113 |
<input type="text" name="title" required="required" /> |
| 113 |
<span class="required">Required</span> |
114 |
<span class="required">[% t('Required') %]</span> |
| 114 |
[% END %] |
115 |
[% END %] |
| 115 |
</li> |
116 |
</li> |
| 116 |
<li> |
117 |
<li> |
| 117 |
<label for="description">Description: </label> |
118 |
<label for="description">[% t('Description:') %] </label> |
| 118 |
[% IF (editColDescription ) %] |
119 |
[% IF (editColDescription ) %] |
| 119 |
<input type="text" size="50" name="description" value="[% editColDescription %]" /> |
120 |
<input type="text" size="50" name="description" value="[% editColDescription %]" /> |
| 120 |
[% ELSE %] |
121 |
[% ELSE %] |
|
Lines 124-130
Link Here
|
| 124 |
</ol> |
125 |
</ol> |
| 125 |
</fieldset> |
126 |
</fieldset> |
| 126 |
<fieldset class="action"> |
127 |
<fieldset class="action"> |
| 127 |
<p><input type="submit" value="Submit" /> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a></p> |
128 |
<p><input type="submit" value="Submit" /> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">[% t('Cancel') %]</a></p> |
| 128 |
</fieldset> |
129 |
</fieldset> |
| 129 |
</form> |
130 |
</form> |
| 130 |
[% END %] |
131 |
[% END %] |