[SIGNED-OFF]Bug 2780 - Capitalize strings consistently (tools)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / koha-news.tt
index 7705e44..ce64053 100644 (file)
@@ -17,23 +17,25 @@ $(document).ready(function() {
 <script language="javascript" type="text/javascript">
 tinyMCE.init({
     mode : "textareas",
-        theme : "advanced",
+    theme : "advanced",
+    content_css : "[% themelang %]/css/tinymce.css",
     plugins : "table,save,advhr,advlink,iespell,searchreplace,print,contextmenu",
-        theme_advanced_disable : "underline,strikethrough,styleselect,image",
-    theme_advanced_buttons1_add_before : "savecommaseparator",
-    theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
-    theme_advanced_buttons3_add_before : "tablecontrolscommaseparator",
-    theme_advanced_buttons3_add : "iespell,advhr,separator,print",
+    theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,search,replace,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,|,print",
+    theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap",
+    theme_advanced_buttons3 : "",
     theme_advanced_toolbar_location : "top",
     theme_advanced_toolbar_align : "left",
     theme_advanced_path_location : "bottom",
+    theme_advanced_resizing : true,
     plugin_insertdate_dateFormat : "%Y-%m-%d",
     plugin_insertdate_timeFormat : "%H:%M:%S",
-    apply_source_formatting : true
+    apply_source_formatting : true,
+    height : "300",
+    width : "700"
 });
 </script>
 </head>
-<body>
+<body id="tools_koha-news" class="tools">
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'cat-search.inc' %]
 
@@ -69,9 +71,9 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div>
             <input type="hidden" name="op" value="[% op %]" />
             <input type="hidden" name="id" value="[% id %]" />
                        <fieldset class="rows">
-                       <legend>OPAC and Koha News</legend>
+            <legend>OPAC and Koha news</legend>
            <ol> <li>
-            <label for="lang">Display Location</label>
+            <label for="lang">Display location</label>
             <select id="lang" name="lang">
                 <option value="koha">Librarian interface</option>
                 [% IF ( slip ) %]<option value="slip" selected="selected">Slip</option>[% ELSE %]<option value="slip">Slip</option>[% END %]
@@ -82,12 +84,12 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div>
             </li>
             <li>
                 <label for="title">Title</label>
-                <input id="title" size="30" type="text" name="title" value="[% title %]" />
+                <input id="title" size="30" type="text" name="title" value="[% new_detail.title %]" />
             </li>
             <li>
                 <label for="timestamp">Publication date</label>
-                <input id="timestamp" type="text" name="timestamp" size="15" value="[% timestamp %]" />
-                <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="timestampButton" style="cursor: pointer;" />
+                <input id="timestamp" type="text" name="timestamp" size="15" value="[% new_detail.timestamp %]" />
+                <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show calendar" border="0" id="timestampButton" style="cursor: pointer;" />
                 <script type="text/javascript">
                     Calendar.setup(
                     {
@@ -101,8 +103,8 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div>
             </li>
             <li>
                 <label for="expirationdate">Expiration date</label>
-                <input id="expirationdate" type="text" name="expirationdate" size="15" value="[% expirationdate %]" />
-                <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendar" style="cursor: pointer;" />
+                <input id="expirationdate" type="text" name="expirationdate" size="15" value="[% new_detail.expirationdate %]" />
+                <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show calendar" border="0" id="openCalendar" style="cursor: pointer;" />
                 <script type="text/javascript">
                     Calendar.setup(
                     {
@@ -116,14 +118,14 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div>
             </li>
             <li>
                 <label for="number">Appear in position </label>
-                [% IF ( number ) %]
-                    <input id="number" size="3" name="number" type="text" checked="checked" value="[% number %]" />
+                [% IF ( new_detail.number ) %]
+                    <input id="number" size="3" name="number" type="text" checked="checked" value="[% new_detail.number %]" />
                 [% ELSE %]
                     <input id="number" size="3" name="number" type="text" />
                 [% END %]
             </li>
             <li><label for="new">News</label>
-            <textarea name="new" id="new"  cols="75" rows="10">[% new %]</textarea></li>
+            <textarea name="new" id="new"  cols="75" rows="10">[% new_detail.new %]</textarea></li>
             </ol>
                        </fieldset>
   
@@ -132,7 +134,7 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div>
     [% ELSE %]
         <div style="margin-bottom:5px;">
         <form name="add_form" method="post" action="/cgi-bin/koha/tools/koha-news.pl" >
-            <label for="lang">Display Location:</label>
+            <label for="lang">Display location:</label>
             <select name="lang" id="lang">
             <option value="">All</option>
             <option value="koha">Librarian interface</option>
@@ -157,8 +159,8 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div>
                         <th>&nbsp;</th>
                         <th>Location</th>
                         <th>Number</th>
-                        <th>Creation&nbsp;Date</th>
-                        <th>Expiration&nbsp;Date</th>
+                        <th>Creation date</th>
+                        <th>Expiration date</th>
                         <th>Title</th>
                         <th>News</th>
                         <th>&nbsp;</th>
@@ -172,10 +174,10 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div>
                             <td>
                                 <input type="checkbox" name="ids" value="[% opac_new.idnew %]" />
                             </td>
-                            <td>[% IF ( lang == 'koha' ) %]
+                            <td>[% IF ( opac_new.lang == 'koha' ) %]
                                    Librarian interface
                                  [% ELSE %]
-                                    [% IF ( lang == 'slip' ) %]
+                                    [% IF ( opac_new.lang == 'slip' ) %]
                                        Slip
                                     [% ELSE %]
                                         OPAC