]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/letter/edit.html
Auftrags-Controller: POD - hauptsächlich Todos
[mfinanz.git] / templates / webpages / letter / edit.html
index 1e84de8089e911de8164ebba5688c7974988e033..3de5ea38fc1a2beaf8a83e9abfcbdd1b90c7b77e 100644 (file)
   <input type="hidden" name="draft.id" value="[% draft.id | html %]">
   <input type="hidden" name="type" value="[% type | html %]">
 
-  [%- PROCESS 'common/flash.html' %]
+  [%- INCLUDE 'common/flash.html' %]
+
+  <div id="oe_tabs" class="tabwidget">
+   <ul>
+    <li><a href="#ui-tabs-letter">[% LxERP.t8("Letter") %]</a></li>
+[%- IF letter.id %]
+    <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Letter&object_id=[% HTML.url(letter.id) %]">[% LxERP.t8("Linked Records") %]</a></li>
+[%- END %]
+   </ul>
+
+   <div id="ui-tabs-letter">
 
 <table width=100%>
 <tr>
@@ -69,7 +79,7 @@
     <tr>
     <tr>
      <th align=right>[% 'Body' | $T8 %]</th>
-     <td><textarea name='letter.body' style='width:100%' rows=20>[% letter.body | html %]</textarea></td>
+     <td>[% L.textarea_tag('letter.body_as_restricted_html', letter.body_as_restricted_html, style='width:100%', rows=20, class="texteditor") %]</td>
     </tr>
     <tr height=10></tr>
      <th align=right>[% 'Internal Notes' | $T8 %]</th>
 </tr>
 </table>
 
+ </div>
+ <div id="ui-tabs-1">
+  [%- LxERP.t8("Loading...") %]
+ </div>
+</div>
+
 <input type="hidden" name="action" value="Letter/dispatch">
 <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">