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 119-124
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
119 |
[% ELSE %] |
123 |
[% ELSE %] |
120 |
<option value="slip" >Slip</option> |
124 |
<option value="slip" >Slip</option> |
121 |
[% 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">Staffhelp</option> |
131 |
[% END %] |
132 |
[% END %] |
122 |
[% FOREACH lang_lis IN lang_list %] |
133 |
[% FOREACH lang_lis IN lang_list %] |
123 |
[% IF ( lang_lis.language == default_lang ) %] |
134 |
[% IF ( lang_lis.language == default_lang ) %] |
124 |
<option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option> |
135 |
<option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option> |
Lines 161-173
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
161 |
<input id="number" size="3" name="number" type="text" /> |
172 |
<input id="number" size="3" name="number" type="text" /> |
162 |
[% END %] |
173 |
[% END %] |
163 |
</li> |
174 |
</li> |
|
|
175 |
<li> |
176 |
[% IF ( Koha.Preference('HelpSystem').match('newsbased') && CAN_user_tools_edit_help ) %] |
177 |
<label for="helpkey">Help key: </label> |
178 |
[% IF ( new_detail.helpkey ) %] |
179 |
<input id="number" size="60" name="helpkey" type="text" value="[% new_detail.helpkey %]" /> |
180 |
[% ELSIF ( helpkey ) %] |
181 |
<input id="number" size="60" name="helpkey" type="text" value="[% helpkey %]" /> |
182 |
[% ELSE %] |
183 |
<input id="helpkey" size="60" name="helpkey" type="text" /> |
184 |
[% END %] |
185 |
<span class="hint">Used for news driven custom help system</span> |
186 |
[% END %] |
187 |
|
188 |
</li> |
164 |
<li><label for="content">News: </label> |
189 |
<li><label for="content">News: </label> |
165 |
<textarea name="content" id="content" cols="75" rows="10">[% new_detail.content %]</textarea> |
190 |
<textarea name="content" id="content" cols="75" rows="10">[% new_detail.content %]</textarea> |
166 |
</li> |
191 |
</li> |
167 |
</ol> |
192 |
</ol> |
168 |
</fieldset> |
193 |
</fieldset> |
169 |
|
194 |
|
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> |
195 |
<fieldset class="action"> |
|
|
196 |
[% IF popup_window %] |
197 |
<input class="button" type="submit" value="Submit" /> |
198 |
<a class="cancel" href="#" onclick="history.back(); return false;">Cancel</a> |
199 |
[% ELSE %] |
200 |
<input class="button" type="submit" value="Submit" /> |
201 |
<a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a> |
202 |
[% END %] |
203 |
</fieldset> |
171 |
</form> |
204 |
</form> |
172 |
[% ELSE %] |
205 |
[% ELSE %] |
173 |
<div style="margin-bottom:5px;"> |
206 |
<div style="margin-bottom:5px;"> |
Lines 189-194
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
189 |
[% ELSE %] |
222 |
[% ELSE %] |
190 |
<option value="slip" >Slip</option> |
223 |
<option value="slip" >Slip</option> |
191 |
[% END %] |
224 |
[% END %] |
|
|
225 |
[% IF ( lang == "staffhelp" ) %] |
226 |
<option value="staffhelp" selected="selected">Staff help</option> |
227 |
[% ELSE %] |
228 |
<option value="staffhelp" >Staff help</option> |
229 |
[% END %] |
192 |
[% FOREACH lang_lis IN lang_list %] |
230 |
[% FOREACH lang_lis IN lang_list %] |
193 |
[% IF ( lang_lis.language == lang ) %] |
231 |
[% IF ( lang_lis.language == lang ) %] |
194 |
<option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option> |
232 |
<option value="[% lang_lis.language %]" selected="selected">OPAC ([% lang_lis.language %])</option> |
Lines 225-230
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
225 |
<th>Actions</th> |
263 |
<th>Actions</th> |
226 |
</tr></thead> |
264 |
</tr></thead> |
227 |
<tbody>[% FOREACH opac_new IN opac_news %] |
265 |
<tbody>[% FOREACH opac_new IN opac_news %] |
|
|
266 |
[% IF opac_new.lang == 'staffhelp' %] |
267 |
[% NEXT IF not ( CAN_user_tools_edit_help && Koha.Preference('HelpSystem').match('newsbased') ) %] |
268 |
[% ELSE %] |
269 |
[% NEXT IF not CAN_user_tools_edit_news %] |
270 |
[% END %] |
228 |
[% IF ( opac_new.expired ) %] |
271 |
[% IF ( opac_new.expired ) %] |
229 |
<tr class="expired"> |
272 |
<tr class="expired"> |
230 |
[% ELSE %] |
273 |
[% ELSE %] |
Lines 240-245
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
240 |
Slip |
283 |
Slip |
241 |
[% CASE "" %] |
284 |
[% CASE "" %] |
242 |
All |
285 |
All |
|
|
286 |
[% CASE "staffhelp" %] |
287 |
Staff help <span class="hint">[% opac_new.helpkey %]</span> |
243 |
[% CASE %] |
288 |
[% CASE %] |
244 |
OPAC ([% opac_new.lang %]) |
289 |
OPAC ([% opac_new.lang %]) |
245 |
[% END %] |
290 |
[% END %] |