|
Lines 155-162
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
| 155 |
<td><span title="[% opac_new.expirationdate | html %]">[% opac_new.expirationdate | $KohaDates %] [% IF ( opac_new.expired ) %](<span class="expired">expired</span>)[% END %]</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> |
| 156 |
<td>[% opac_new.title | html %]</td> |
156 |
<td>[% opac_new.title | html %]</td> |
| 157 |
<td>[% opac_new.author_title | html %] [% opac_new.author_firstname | html %] [% opac_new.author_surname | html %]</td> |
157 |
<td>[% opac_new.author_title | html %] [% opac_new.author_firstname | html %] [% opac_new.author_surname | html %]</td> |
| 158 |
<td> |
158 |
<td> |
| 159 |
[% opac_new.content | $raw %] |
159 |
<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> |
| 161 |
</div> |
| 162 |
<div id="contentModal[% loop.count | html %]" class="modal" tabindex="-1" role="dialog" data-number="[% loop.count | html %]"> |
| 163 |
<div class="modal-dialog" role="document"> |
| 164 |
<div class="modal-content"> |
| 165 |
<div class="modal-header"> |
| 166 |
<h5 class="modal-title">Preview of: "[% opac_new.title | html %]"</h5> |
| 167 |
</div> |
| 168 |
<div class="modal-body"> |
| 169 |
[% opac_new.content | $raw %] |
| 170 |
</div> |
| 171 |
<div class="modal-footer"> |
| 172 |
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> |
| 173 |
</div> |
| 174 |
</div> |
| 175 |
</div> |
| 176 |
</div> |
| 160 |
</td> |
177 |
</td> |
| 161 |
<td class="actions"> |
178 |
<td class="actions"> |
| 162 |
[% IF ( wysiwyg ) %] |
179 |
[% IF ( wysiwyg ) %] |
|
Lines 242-247
Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div>
Link Here
|
| 242 |
[% IF ( opac_news_count ) %] |
259 |
[% IF ( opac_news_count ) %] |
| 243 |
[% INCLUDE 'datatables.inc' %] |
260 |
[% INCLUDE 'datatables.inc' %] |
| 244 |
<script> |
261 |
<script> |
|
|
262 |
$('.preview_news').click( function() { |
| 263 |
modalNumber = $(this).attr('data-number'); |
| 264 |
$('.modal[data-number="'+modalNumber+'"]').modal('show'); |
| 265 |
}) |
| 245 |
function Checkbox(){ |
266 |
function Checkbox(){ |
| 246 |
var form = document.getElementById('del_form'); |
267 |
var form = document.getElementById('del_form'); |
| 247 |
var inputs = form.getElementsByTagName('input'); |
268 |
var inputs = form.getElementsByTagName('input'); |
| 248 |
- |
|
|