X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Ftools%2Fkoha-news.tt;h=02875226f38baa3f578cb74bb0022fdcfe8a319f;hb=b04a3e4b5df97018436c72b68fe50014f6fcee5a;hp=ce64053c998b66189892c895f6fe6a486f78642b;hpb=1ee7f449be2ba45c2458d2ac571172ecf58752b2;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt index ce64053c99..02875226f3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt @@ -1,131 +1,119 @@ +[% USE raw %] +[% USE Asset %] +[% USE KohaDates %] +[% USE Branches %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › News [% INCLUDE 'doc-head-close.inc' %] -[% INCLUDE 'calendar.inc' %] - - - - +[% IF ( opac_news_count ) %] + [% Asset.css("css/datatables.css") | $raw %] +[% END %] + [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] +Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %] + +[% IF ( add_form ) %] +
+
+
+[% ELSE %] +
+
+
+[% END %] +
-[% IF ( add_form ) %]
[% ELSE %]
[% END %] -
-
-
- [% UNLESS ( add_form ) %] -
- -
+ [% IF error_message == 'title_missing' %] +
Error: Required news title missing!
+ [% END %] +

News

+ [% END %] [% IF ( add_form ) %] + [% IF ( op == 'add' ) %][% default_lang = lang | html %] + [% ELSE %][% default_lang = new_detail.lang | html %] + [% END %]
- - + +
OPAC and Koha news
  1. - +
  2. - - + + +
  3. +
  4. + + Required
  5. - - - Show calendar - + +
    [% INCLUDE 'date-format.inc' %]
  6. - - - Show calendar - -
    [% INCLUDE 'date-format.inc' %]
    + + +
    + [% INCLUDE 'date-format.inc' %] +
    News will still be accessible by direct URL if expired. +
  7. - + [% IF ( new_detail.number ) %] - + [% ELSE %] [% END %]
  8. -
  9. -
  10. +
  11. + +
@@ -136,34 +124,55 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]
+ +
[% IF ( opac_news_count ) %] -
+ + - - + + + - + [% FOREACH opac_new IN opac_news %] [% IF ( opac_new.expired ) %] @@ -172,27 +181,35 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %] [% END %] - - - - - - + + + + + + + - [% END %]
  LocationLibrary NumberCreation dateExpiration datePublication dateExpiration date TitleAuthor News Actions
- + [% IF ( opac_new.lang == 'koha' ) %] - Librarian interface - [% ELSE %] - [% IF ( opac_new.lang == 'slip' ) %] - Slip - [% ELSE %] - OPAC - [% END %] - [% END %] + [% SWITCH opac_new.lang %] + [% CASE "koha" %] + Librarian interface + [% CASE "slip" %] + Slip + [% CASE "" %] + All + [% CASE %] + OPAC ([% opac_new.lang | html %]) + [% END %] [% opac_new.number %][% opac_new.newdate %][% opac_new.expirationdate %] [% IF ( opac_new.expired ) %](expired)[% END %][% opac_new.title %][% IF ( opac_new.branchcode == "" ) -%] + All libraries + [% ELSE %][% opac_new.branchname | html %] + [% END %][% opac_new.number | html %][% opac_new.newdate | $KohaDates %][% opac_new.expirationdate | $KohaDates %] [% IF ( opac_new.expired ) %](expired)[% END %][% opac_new.title | html %][% opac_new.author_title | html %] [% opac_new.author_firstname | html %] [% opac_new.author_surname | html %] - [% opac_new.new %] + [% opac_new.content | $raw %] + + Edit + Delete Edit
@@ -200,15 +217,88 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]
[% ELSE %] -

No news loaded

+
There are no news items.
[% END %] [% END %] -
-
-[% UNLESS ( add_form ) %] -
- [% INCLUDE 'tools-menu.inc' %] -
+ +
+ [% UNLESS ( add_form ) %] +
+ +
+ +
+ [% END %] +
+ +[% MACRO jsinclude BLOCK %] + [% INCLUDE 'calendar.inc' %] + [% Asset.js("js/tools-menu.js") | $raw %] + [% IF ( opac_news_count ) %] + [% INCLUDE 'datatables.inc' %] + + [% END %] + [% Asset.js("lib/tiny_mce/tiny_mce.js") | $raw %] + [% END %] -
+ [% INCLUDE 'intranet-bottom.inc' %]