Lines 7-14
Link Here
|
7 |
[% INCLUDE 'doc-head-open.inc' %] |
7 |
[% INCLUDE 'doc-head-open.inc' %] |
8 |
<title>News › Tools › Koha</title> |
8 |
<title>News › Tools › Koha</title> |
9 |
[% INCLUDE 'doc-head-close.inc' %] |
9 |
[% INCLUDE 'doc-head-close.inc' %] |
10 |
[% IF ( opac_news_count ) %] |
|
|
11 |
[% END %] |
12 |
[% UNLESS ( wysiwyg ) %] |
10 |
[% UNLESS ( wysiwyg ) %] |
13 |
[% Asset.css("lib/codemirror/codemirror.css") | $raw %] |
11 |
[% Asset.css("lib/codemirror/codemirror.css") | $raw %] |
14 |
[% Asset.css("lib/codemirror/lint.min.css") | $raw %] |
12 |
[% Asset.css("lib/codemirror/lint.min.css") | $raw %] |
Lines 140-146
Link Here
|
140 |
<fieldset class="action"><input class="button" type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a></fieldset> |
138 |
<fieldset class="action"><input class="button" type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a></fieldset> |
141 |
</form> |
139 |
</form> |
142 |
[% ELSE %] |
140 |
[% ELSE %] |
143 |
[% IF ( opac_news_count ) %] |
141 |
[% IF ( opac_news.count ) %] |
144 |
<form id="del_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl"> |
142 |
<form id="del_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl"> |
145 |
<table id="newst"> |
143 |
<table id="newst"> |
146 |
<thead> <tr> |
144 |
<thead> <tr> |
Lines 156-162
Link Here
|
156 |
<th class="NoSort noExport">Actions</th> |
154 |
<th class="NoSort noExport">Actions</th> |
157 |
</tr></thead> |
155 |
</tr></thead> |
158 |
<tbody>[% FOREACH opac_new IN opac_news %] |
156 |
<tbody>[% FOREACH opac_new IN opac_news %] |
159 |
[% IF ( opac_new.expired ) %] |
157 |
[% IF ( opac_new.is_expired ) %] |
160 |
<tr class="expired"> |
158 |
<tr class="expired"> |
161 |
[% ELSE %] |
159 |
[% ELSE %] |
162 |
<tr> |
160 |
<tr> |
Lines 177-189
Link Here
|
177 |
</td> |
175 |
</td> |
178 |
<td>[% IF ( opac_new.branchcode == "" ) -%] |
176 |
<td>[% IF ( opac_new.branchcode == "" ) -%] |
179 |
All libraries |
177 |
All libraries |
180 |
[% ELSE %][% opac_new.branchname | html %] |
178 |
[% ELSE %][% opac_new.library.branchname | html %] |
181 |
[% END %]</td> |
179 |
[% END %]</td> |
182 |
<td>[% opac_new.number | html %]</td> |
180 |
<td>[% opac_new.number | html %]</td> |
183 |
<td data-order="[% opac_new.newdate | html %]">[% opac_new.newdate | $KohaDates %]</td> |
181 |
<td data-order="[% opac_new.timestamp | html %]">[% opac_new.timestamp | $KohaDates %]</td> |
184 |
<td data-order="[% opac_new.expirationdate | html %]">[% opac_new.expirationdate | $KohaDates %] [% IF ( opac_new.expired ) %](<span class="expired">expired</span>)[% END %]</td> |
182 |
<td data-order="[% opac_new.expirationdate | html %]">[% opac_new.expirationdate | $KohaDates %] [% IF ( opac_new.is_expired ) %](<span class="expired">expired</span>)[% END %]</td> |
185 |
<td>[% opac_new.title | html %]</td> |
183 |
<td>[% opac_new.title | html %]</td> |
186 |
<td>[% opac_new.author_title | html %] [% opac_new.author_firstname | html %] [% opac_new.author_surname | html %]</td> |
184 |
<td>[% IF ( opac_new.author) %][% INCLUDE 'patron-title.inc' patron=opac_new.author hide_patron_infos_if_needed=1 %][% END %]</td> |
187 |
<td> |
185 |
<td> |
188 |
<div class="btn-group"> |
186 |
<div class="btn-group"> |
189 |
<a class="preview_news btn btn-default btn-xs" data-number="[% loop.count | html %]"><i class="fa fa-eye" aria-hidden="true"></i> Preview content</a> |
187 |
<a class="preview_news btn btn-default btn-xs" data-number="[% loop.count | html %]"><i class="fa fa-eye" aria-hidden="true"></i> Preview content</a> |
Lines 289-295
Link Here
|
289 |
[% MACRO jsinclude BLOCK %] |
287 |
[% MACRO jsinclude BLOCK %] |
290 |
[% INCLUDE 'calendar.inc' %] |
288 |
[% INCLUDE 'calendar.inc' %] |
291 |
[% Asset.js("js/tools-menu.js") | $raw %] |
289 |
[% Asset.js("js/tools-menu.js") | $raw %] |
292 |
[% IF ( opac_news_count ) %] |
290 |
[% IF ( opac_news.count ) %] |
293 |
[% INCLUDE 'datatables.inc' %] |
291 |
[% INCLUDE 'datatables.inc' %] |
294 |
<script> |
292 |
<script> |
295 |
$('.preview_news').click( function() { |
293 |
$('.preview_news').click( function() { |