Lines 1-3
Link Here
|
|
|
1 |
[% USE Koha %] |
1 |
[% USE KohaDates %] |
2 |
[% USE KohaDates %] |
2 |
[% USE Branches %] |
3 |
[% USE Branches %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
Lines 72-82
tinyMCE.init({
Link Here
|
72 |
</script> |
73 |
</script> |
73 |
</head> |
74 |
</head> |
74 |
<body id="tools_koha-news" class="tools"> |
75 |
<body id="tools_koha-news" class="tools"> |
75 |
[% INCLUDE 'header.inc' %] |
|
|
76 |
[% INCLUDE 'cat-search.inc' %] |
77 |
|
76 |
|
78 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › [% IF ( add_form ) %]<a href="/cgi-bin/koha/tools/koha-news.pl">News</a> › [% IF ( id ) %] |
77 |
[% IF not popup_window %] |
|
|
78 |
[% INCLUDE 'header.inc' %] |
79 |
[% INCLUDE 'cat-search.inc' %] |
80 |
|
81 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › [% IF ( add_form ) %]<a href="/cgi-bin/koha/tools/koha-news.pl">News</a> › [% IF ( id ) %] |
79 |
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> |
82 |
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> |
|
|
83 |
[% END %] |
80 |
|
84 |
|
81 |
[% IF ( add_form ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %] |
85 |
[% IF ( add_form ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %] |
82 |
<div id="bd"> |
86 |
<div id="bd"> |
Lines 92-97
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
92 |
</div> |
96 |
</div> |
93 |
[% END %] |
97 |
[% END %] |
94 |
|
98 |
|
|
|
99 |
[% BLOCK langoptions %] |
100 |
<label for="lang">Display location:</label> |
101 |
<select id="lang" name="lang"> |
102 |
[% IF CAN_user_tools_edit_news %] |
103 |
[% IF ( default_lang == "" ) %] |
104 |
<option value="" selected="selected">All</option> |
105 |
[% ELSE %] |
106 |
<option value="">All</option> |
107 |
[% END %] |
108 |
[% IF ( default_lang == "koha" ) %] |
109 |
<option value="koha" selected="selected">Librarian interface</option> |
110 |
[% ELSE %] |
111 |
<option value="koha">Librarian interface</option> |
112 |
[% END %] |
113 |
[% IF ( default_lang == "slip" ) %] |
114 |
<option value="slip" selected="selected">Slip</option> |
115 |
[% ELSE %] |
116 |
<option value="slip">Slip</option> |
117 |
[% END %] |
118 |
[% FOREACH lang_lis IN lang_list %] |
119 |
[% IF ( lang_lis.language == default_lang ) %] |
120 |
<option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option> |
121 |
[% ELSE %] |
122 |
<option value="[% lang_lis.language %]">OPAC ([% lang_lis.language %])</option> |
123 |
[% END %] |
124 |
[% END %] |
125 |
[% END %] |
126 |
[% IF ( Koha.Preference('HelpSystem').match('newsbased') && CAN_user_tools_edit_help ) %] |
127 |
[% IF ( default_lang == "staffhelp" ) %] |
128 |
<option value="staffhelp" selected="selected">Staff help</option> |
129 |
[% ELSE %] |
130 |
<option value="staffhelp">Help for staff client</option> |
131 |
[% END %] |
132 |
[% END %] |
133 |
</select> |
134 |
[% END %] |
135 |
|
95 |
[% IF ( add_form ) %] |
136 |
[% IF ( add_form ) %] |
96 |
[% IF ( op == 'add' ) %][% default_lang = lang %] |
137 |
[% IF ( op == 'add' ) %][% default_lang = lang %] |
97 |
[% ELSE %][% default_lang = new_detail.lang %] |
138 |
[% ELSE %][% default_lang = new_detail.lang %] |
Lines 99-132
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
99 |
<form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" > |
140 |
<form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" > |
100 |
<input type="hidden" name="op" value="[% op %]" /> |
141 |
<input type="hidden" name="op" value="[% op %]" /> |
101 |
<input type="hidden" name="id" value="[% id %]" /> |
142 |
<input type="hidden" name="id" value="[% id %]" /> |
|
|
143 |
<input type="hidden" name="popupreferer" value="[% popupreferer %]" > |
102 |
<fieldset class="rows"> |
144 |
<fieldset class="rows"> |
103 |
<legend>OPAC and Koha news</legend> |
145 |
<legend>OPAC and Koha news</legend> |
104 |
<ol> <li> |
146 |
<ol> <li> |
105 |
<label for="lang">Display location:</label> |
147 |
[% INCLUDE langoptions %] |
106 |
<select id="lang" name="lang"> |
|
|
107 |
[% IF ( default_lang == "" ) %] |
108 |
<option value="" selected="selected">All</option> |
109 |
[% ELSE %] |
110 |
<option value="" >All</option> |
111 |
[% END %] |
112 |
[% IF ( default_lang == "koha" ) %] |
113 |
<option value="koha" selected="selected">Librarian interface</option> |
114 |
[% ELSE %] |
115 |
<option value="koha" >Librarian interface</option> |
116 |
[% END %] |
117 |
[% IF ( default_lang == "slip" ) %] |
118 |
<option value="slip" selected="selected">Slip</option> |
119 |
[% ELSE %] |
120 |
<option value="slip" >Slip</option> |
121 |
[% END %] |
122 |
[% FOREACH lang_lis IN lang_list %] |
123 |
[% IF ( lang_lis.language == default_lang ) %] |
124 |
<option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option> |
125 |
[% ELSE %] |
126 |
<option value="[% lang_lis.language %]" >OPAC ([% lang_lis.language %])</option> |
127 |
[% END %] |
128 |
[% END %] |
129 |
</select> |
130 |
</li> |
148 |
</li> |
131 |
<li> |
149 |
<li> |
132 |
<label for="branch">Library: </label> |
150 |
<label for="branch">Library: </label> |
Lines 161-202
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
161 |
<input id="number" size="3" name="number" type="text" /> |
179 |
<input id="number" size="3" name="number" type="text" /> |
162 |
[% END %] |
180 |
[% END %] |
163 |
</li> |
181 |
</li> |
|
|
182 |
<li> |
183 |
[% IF ( Koha.Preference('HelpSystem').match('newsbased') && CAN_user_tools_edit_help ) %] |
184 |
<label for="helpkey">Help key: </label> |
185 |
[% IF ( new_detail.helpkey ) %] |
186 |
<input id="number" size="60" name="helpkey" type="text" value="[% new_detail.helpkey %]" /> |
187 |
[% ELSIF ( helpkey ) %] |
188 |
<input id="number" size="60" name="helpkey" type="text" value="[% helpkey %]" /> |
189 |
[% ELSE %] |
190 |
<input id="helpkey" size="60" name="helpkey" type="text" /> |
191 |
[% END %] |
192 |
<span class="hint">Used for staff help. Will be populated for individual page when creating a new entry from 'Help'. Example: 'help/circ/circulation'. Use 'all' for all pages.</span> |
193 |
[% END %] |
194 |
|
195 |
</li> |
164 |
<li><label for="content">News: </label> |
196 |
<li><label for="content">News: </label> |
165 |
<textarea name="content" id="content" cols="75" rows="10">[% new_detail.content %]</textarea> |
197 |
<textarea name="content" id="content" cols="75" rows="10">[% new_detail.content %]</textarea> |
166 |
</li> |
198 |
</li> |
167 |
</ol> |
199 |
</ol> |
168 |
</fieldset> |
200 |
</fieldset> |
169 |
|
201 |
|
170 |
<fieldset class="action"><input class="button" type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a></fieldset> |
202 |
<fieldset class="action"> |
|
|
203 |
[% IF popup_window %] |
204 |
<input class="button" type="submit" value="Submit" /> |
205 |
<a class="cancel" href="#" onclick="history.back(); return false;">Cancel</a> |
206 |
[% ELSE %] |
207 |
<input class="button" type="submit" value="Submit" /> |
208 |
<a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a> |
209 |
[% END %] |
210 |
</fieldset> |
171 |
</form> |
211 |
</form> |
172 |
[% ELSE %] |
212 |
[% ELSE %] |
173 |
<div style="margin-bottom:5px;"> |
213 |
<div style="margin-bottom:5px;"> |
174 |
<form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" > |
214 |
<form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" > |
175 |
<label for="lang">Display location:</label> |
215 |
|
176 |
<select name="lang" id="lang"> |
216 |
[% INCLUDE langoptions %] |
177 |
[% IF ( lang == "" ) %] |
217 |
|
178 |
<option value="" selected="selected">All</option> |
|
|
179 |
[% ELSE %] |
180 |
<option value="" >All</option> |
181 |
[% END %] |
182 |
[% IF ( lang == "koha" ) %] |
183 |
<option value="koha" selected="selected">Librarian interface</option> |
184 |
[% ELSE %] |
185 |
<option value="koha" >Librarian interface</option> |
186 |
[% END %] |
187 |
[% IF ( lang == "slip" ) %] |
188 |
<option value="slip" selected="selected">Slip</option> |
189 |
[% ELSE %] |
190 |
<option value="slip" >Slip</option> |
191 |
[% END %] |
192 |
[% FOREACH lang_lis IN lang_list %] |
193 |
[% IF ( lang_lis.language == lang ) %] |
194 |
<option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option> |
195 |
[% ELSE %] |
196 |
<option value="[% lang_lis.language %]" >OPAC ([% lang_lis.language %])</option> |
197 |
[% END %] |
198 |
[% END %] |
199 |
</select> |
200 |
<label for="branch">Library: </label> |
218 |
<label for="branch">Library: </label> |
201 |
<select id="branch" name="branch"> |
219 |
<select id="branch" name="branch"> |
202 |
[% IF ( branchcode == "" ) %] |
220 |
[% IF ( branchcode == "" ) %] |
Lines 225-230
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
225 |
<th>Actions</th> |
243 |
<th>Actions</th> |
226 |
</tr></thead> |
244 |
</tr></thead> |
227 |
<tbody>[% FOREACH opac_new IN opac_news %] |
245 |
<tbody>[% FOREACH opac_new IN opac_news %] |
|
|
246 |
[% IF opac_new.lang == 'staffhelp' %] |
247 |
[% NEXT IF not ( CAN_user_tools_edit_help && Koha.Preference('HelpSystem').match('newsbased') ) %] |
248 |
[% ELSE %] |
249 |
[% NEXT IF not CAN_user_tools_edit_news %] |
250 |
[% END %] |
251 |
|
228 |
[% IF ( opac_new.expired ) %] |
252 |
[% IF ( opac_new.expired ) %] |
229 |
<tr class="expired"> |
253 |
<tr class="expired"> |
230 |
[% ELSE %] |
254 |
[% ELSE %] |
Lines 240-245
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
240 |
Slip |
264 |
Slip |
241 |
[% CASE "" %] |
265 |
[% CASE "" %] |
242 |
All |
266 |
All |
|
|
267 |
[% CASE "staffhelp" %] |
268 |
Staff help |
269 |
[% IF opac_new.helpkey %] |
270 |
<span class="hint">[% opac_new.helpkey %]</span> |
271 |
[% ELSE %] |
272 |
<span class="hint">No page key!</span> |
273 |
[% END %] |
274 |
|
243 |
[% CASE %] |
275 |
[% CASE %] |
244 |
OPAC ([% opac_new.lang %]) |
276 |
OPAC ([% opac_new.lang %]) |
245 |
[% END %] |
277 |
[% END %] |