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