Lines 7-14
Link Here
|
7 |
[% INCLUDE 'doc-head-open.inc' %] |
7 |
[% INCLUDE 'doc-head-open.inc' %] |
8 |
<title>Koha › Tools › News</title> |
8 |
<title>Koha › Tools › News</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 111-117
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
111 |
<fieldset class="action"><input class="button" type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a></fieldset> |
109 |
<fieldset class="action"><input class="button" type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/tools/koha-news.pl">Cancel</a></fieldset> |
112 |
</form> |
110 |
</form> |
113 |
[% ELSE %] |
111 |
[% ELSE %] |
114 |
[% IF ( opac_news_count ) %] |
112 |
[% IF ( opac_news.count ) %] |
115 |
<form id="del_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl"> |
113 |
<form id="del_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl"> |
116 |
<table id="newst"> |
114 |
<table id="newst"> |
117 |
<thead> <tr> |
115 |
<thead> <tr> |
Lines 127-133
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
127 |
<th class="NoSort noExport">Actions</th> |
125 |
<th class="NoSort noExport">Actions</th> |
128 |
</tr></thead> |
126 |
</tr></thead> |
129 |
<tbody>[% FOREACH opac_new IN opac_news %] |
127 |
<tbody>[% FOREACH opac_new IN opac_news %] |
130 |
[% IF ( opac_new.expired ) %] |
128 |
[% IF ( opac_new.is_expired ) %] |
131 |
<tr class="expired"> |
129 |
<tr class="expired"> |
132 |
[% ELSE %] |
130 |
[% ELSE %] |
133 |
<tr> |
131 |
<tr> |
Lines 148-160
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
148 |
</td> |
146 |
</td> |
149 |
<td>[% IF ( opac_new.branchcode == "" ) -%] |
147 |
<td>[% IF ( opac_new.branchcode == "" ) -%] |
150 |
All libraries |
148 |
All libraries |
151 |
[% ELSE %][% opac_new.branchname | html %] |
149 |
[% ELSE %][% opac_new.library.branchname | html %] |
152 |
[% END %]</td> |
150 |
[% END %]</td> |
153 |
<td>[% opac_new.number | html %]</td> |
151 |
<td>[% opac_new.number | html %]</td> |
154 |
<td><span title="[% opac_new.newdate | html %]">[% opac_new.newdate | $KohaDates %]</span></td> |
152 |
<td><span title="[% opac_new.timestamp | html %]">[% opac_new.timestamp | $KohaDates %]</span></td> |
155 |
<td><span title="[% opac_new.expirationdate | html %]">[% opac_new.expirationdate | $KohaDates %] [% IF ( opac_new.expired ) %](<span class="expired">expired</span>)[% END %]</span></td> |
153 |
<td><span title="[% opac_new.expirationdate | html %]">[% opac_new.expirationdate | $KohaDates %] [% IF ( opac_new.is_expired ) %](<span class="expired">expired</span>)[% END %]</span></td> |
156 |
<td>[% opac_new.title | html %]</td> |
154 |
<td>[% opac_new.title | html %]</td> |
157 |
<td>[% opac_new.author_title | html %] [% opac_new.author_firstname | html %] [% opac_new.author_surname | html %]</td> |
155 |
<td>[% IF ( opac_new.author) %][% INCLUDE 'patron-title.inc' patron=opac_new.author hide_patron_infos_if_needed=1 %][% END %]</td> |
158 |
<td> |
156 |
<td> |
159 |
<div class="btn-group"> |
157 |
<div class="btn-group"> |
160 |
<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> |
158 |
<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 260-266
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
260 |
[% MACRO jsinclude BLOCK %] |
258 |
[% MACRO jsinclude BLOCK %] |
261 |
[% INCLUDE 'calendar.inc' %] |
259 |
[% INCLUDE 'calendar.inc' %] |
262 |
[% Asset.js("js/tools-menu.js") | $raw %] |
260 |
[% Asset.js("js/tools-menu.js") | $raw %] |
263 |
[% IF ( opac_news_count ) %] |
261 |
[% IF ( opac_news.count ) %] |
264 |
[% INCLUDE 'datatables.inc' %] |
262 |
[% INCLUDE 'datatables.inc' %] |
265 |
<script> |
263 |
<script> |
266 |
$('.preview_news').click( function() { |
264 |
$('.preview_news').click( function() { |