View | Details | Raw Unified | Return to bug 16058
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-2 / +6 lines)
Lines 4-10 Link Here
4
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/mainpage.css" />
4
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/mainpage.css" />
5
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
6
<style type="text/css"> </style>
6
<style type="text/css"> </style>
7
7
<script type="text/javascript">
8
//<![CDATA[
9
var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
10
//]]>
11
</script>
8
</head>
12
</head>
9
<body id="main_intranet-main" class="main">
13
<body id="main_intranet-main" class="main">
10
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
Lines 179-185 Link Here
179
                    <p class="newsfooter"> Posted on [% koha_new.newdate %][% IF( ( newsdisp == 'staff' || newsdisp == 'both' ) && koha_new.borrowernumber ) %] by <span class="newsauthor_title">[% koha_new.author_title %] </span>[% koha_new.author_firstname %] [% koha_new.author_surname %]<br />[% END %]
183
                    <p class="newsfooter"> Posted on [% koha_new.newdate %][% IF( ( newsdisp == 'staff' || newsdisp == 'both' ) && koha_new.borrowernumber ) %] by <span class="newsauthor_title">[% koha_new.author_title %] </span>[% koha_new.author_firstname %] [% koha_new.author_surname %]<br />[% END %]
180
                        [% IF ( CAN_user_tools ) %]
184
                        [% IF ( CAN_user_tools ) %]
181
                            <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=[% koha_new.idnew %]">Edit</a>
185
                            <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=[% koha_new.idnew %]">Edit</a>
182
                             | <a href="/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=[% koha_new.idnew %]">Delete</a>
186
                             | <a href="/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=[% koha_new.idnew %]" onclick="return confirm(MSG_CONFIRM_DELETE);">Delete</a>
183
                             | <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New</a>
187
                             | <a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New</a>
184
                        [% END %]
188
                        [% END %]
185
                    </p>
189
                    </p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt (-3 / +3 lines)
Lines 23-28 Link Here
23
<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script>
23
<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script>
24
<script type="text/javascript">//<![CDATA[
24
<script type="text/javascript">//<![CDATA[
25
var MSG_CONFIRM_DELETE_NEWS  = _("Are you sure you want to delete the selected news?");
25
var MSG_CONFIRM_DELETE_NEWS  = _("Are you sure you want to delete the selected news?");
26
var MSG_CONFIRM_DELETE_SINGLE = _("Are you sure you want to delete this news item? This cannot be undone.");
26
27
27
tinyMCE.init({
28
tinyMCE.init({
28
    mode : "textareas",
29
    mode : "textareas",
Lines 215-221 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
215
                        <th>Title</th>
216
                        <th>Title</th>
216
                        <th>Author</th>
217
                        <th>Author</th>
217
                        <th>News</th>
218
                        <th>News</th>
218
                        <th>&nbsp;</th>
219
                        <th>Actions</th>
219
                    </tr></thead>
220
                    </tr></thead>
220
                    <tbody>[% FOREACH opac_new IN opac_news %]
221
                    <tbody>[% FOREACH opac_new IN opac_news %]
221
                         [% IF ( opac_new.expired ) %]
222
                         [% IF ( opac_new.expired ) %]
Lines 249-255 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
249
                           <td>
250
                           <td>
250
                                [% opac_new.new %]
251
                                [% opac_new.new %]
251
                            </td>
252
                            </td>
252
                            <td><a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=[% opac_new.idnew %]">Edit</a></td>
253
                            <td class="actions"><a href="/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=[% opac_new.idnew %]" class="btn btn-mini"><i class="fa fa-pencil"></i> Edit</a> <a href="/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=[% opac_new.idnew %]" onclick="return confirm(MSG_CONFIRM_DELETE_SINGLE);" class="btn btn-mini"><i class="fa fa-trash"></i> Delete</a></td>
253
                        </tr>
254
                        </tr>
254
                    [% END %]</tbody>
255
                    [% END %]</tbody>
255
                </table>
256
                </table>
256
- 

Return to bug 16058