Bug 6027 - Delete biblios if deleting all their items in batch deletion
[koha_gimpoz] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / koha-news.tt
index 7705e44..dfee834 100644 (file)
@@ -17,19 +17,21 @@ $(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>
@@ -82,11 +84,11 @@ 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 %]" />
+                <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,7 +103,7 @@ 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 %]" />
+                <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>
   
@@ -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