Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 996443bb

Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt

  • ID 996443bba52c6adca160b2e197454e869909efb5
  • Vorgänger 90ac5660
  • Nachfolger d5d99060

Neues Design 2019 Standard-Code templates/webpages/letter/edit.html

Unterschiede anzeigen:

templates/webpages/letter/edit.html
<h1>[% title | html %]</h1>
<form action='controller.pl' method='POST' id='form'>
<input type="hidden" name="letter.id" value="[% letter.id | html %]">
<input type="hidden" name="draft.id" value="[% draft.id | html %]">
<input type="hidden" name="type" value="[% type | html %]">
[% L.hidden_tag('is_sales', SELF.is_sales) %]
<input type="hidden" name="letter.id" value="[% letter.id | html %]">
<input type="hidden" name="draft.id" value="[% draft.id | html %]">
<input type="hidden" name="type" value="[% type | html %]">
[% L.hidden_tag('is_sales', SELF.is_sales) %]
[%- INCLUDE 'common/flash.html' %]
[% INCLUDE 'common/flash.html' %]
<div id="oe_tabs" class="tabwidget">
<ul>
<div id="oe_tabs" class="tabwidget">
<ul>
<li><a href="#ui-tabs-letter">[% LxERP.t8("Letter") %]</a></li>
[%- IF letter.id %]
[%- IF INSTANCE_CONF.get_webdav %]
<li><a href="#ui-tabs-webdav">[% LxERP.t8('WebDAV') %]</a></li>
[%- END %]
<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>
<td width=50%>
<!-- upper left block -->
<table width=90%>
[%- IF SELF.is_sales %]
<tr>
<th align='right'>[% 'Customer' | $T8 %]:</th>
<td>[% P.customer_vendor.picker('letter.customer_id', letter.customer_id, type='customer') %]</td>
</tr>
[%- ELSE %]
[% IF letter.id %]
[% IF INSTANCE_CONF.get_webdav %]
<li><a href="#ui-tabs-webdav">[% LxERP.t8('WebDAV') %]</a></li>
[% END %]
<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">
<div class="wrapper">
<table class="tbl-horizontal col">
<colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
<tbody>
[% IF SELF.is_sales %]
<tr>
<th>[% 'Customer' | $T8 %]</th>
<td class="wi-wider">[% P.customer_vendor.picker('letter.customer_id', letter.customer_id, type='customer', class='wi-wider') %]</td>
</tr>
[% ELSE %]
<tr>
<th>[% 'Vendor' | $T8 %]</th>
<td class="wi-wider">[% P.customer_vendor.picker('letter.vendor_id', letter.vendor_id, type='vendor', class='wi-wider') %]</td>
</tr>
[% END %]
<tr>
<th>[% 'Contact Person' | $T8 %]</th>
<td class="wi-wider">[% L.select_tag('letter.cp_id', letter.customer_vendor_id ? letter.customer_vendor.contacts : [], value_key='cp_id', title_key='full_name', default=letter.cp_id, class='wi-wider') %]</td>
</tr>
</tbody>
</table>
<table class="tbl-horizontal col">
<tbody>
<tr>
<th>[% 'Your Reference' | $T8 %]</th>
<td><input type="text" name='letter.reference' value='[% letter.reference | html %]' class="wi-small">
</td>
</tr>
<tr>
<th>[% 'Letternumber' | $T8 %]:</th>
<td><input type="text" name='letter.letternumber' value='[% letter.letternumber | html %]' class="wi-small">
</td>
</tr>
</tbody>
</table>
<table class="tbl-horizontal col">
<tbody>
<tr>
<th>[% 'Employee' | $T8 %]</th>
<td>[% L.select_tag('letter.employee_id', employees, default=letter.employee_id, title_key='safe_name', class='wi-wide', allow_empty=1,) %]</td>
</tr>
<tr>
<th>[% 'Salesman' | $T8 %]</th>
<td>[% L.select_tag('letter.salesman_id', employees, default=letter.salesman_id, title_key='safe_name', class='wi-wide', allow_empty=1,) %]</td>
</tr>
</tbody>
</table>
</div><!-- /.wrapper -->
<div class="wrapper">
<table class="tbl-horizontal">
<colgroup> <col class="wi-small"><col class="wi-wider"> </colgroup>
<tbody>
<tr>
<th align='right'>[% 'Vendor' | $T8 %]:</th>
<td>[% P.customer_vendor.picker('letter.vendor_id', letter.vendor_id, type='vendor') %]</td>
<th>[% 'Date' | $T8 %]</th>
<td>[% L.date_tag('letter.date_as_date', letter.date_as_date, readonly=readonly, class='wi-date') %]</td>
</tr>
[%- END %]
<tr>
<th align='right'>[% 'Contact Person' | $T8 %]</th>
<td>[% L.select_tag('letter.cp_id', letter.customer_vendor_id ? letter.customer_vendor.contacts : [], value_key='cp_id', title_key='full_name', default=letter.cp_id) %]</td>
<th>[% 'Subject' | $T8 %]</th>
<td><textarea name='letter.subject' rows="1" class="wi-wider">[% letter.subject | html %]</textarea></td>
</tr>
<tr>
<th align='right'>[% 'Your Reference' | $T8 %]:</th>
<td><input name='letter.reference' style='width:70%' value='[% letter.reference | html %]'></td>
<th>[% 'Greeting' | $T8 %]</th>
<td><input type="text" name='letter.greeting' value="[% letter.greeting | html %]" class="wi-wider"> </td>
</tr>
</table>
<!-- /upper left block -->
</td>
<td width=50%>
<!-- upper right block -->
<table align=center width=90%>
<tr>
<th align='right'>[% 'Letternumber' | $T8 %]:</th>
<td><input name='letter.letternumber' style='width:70%' value='[% letter.letternumber | html %]'></td>
<th>[% 'Body' | $T8 %]</th>
<td class="wi-wider">[% L.textarea_tag('letter.body_as_restricted_html', letter.body_as_restricted_html, rows=20, class='texteditor wi-wider') %]</td>
</tr>
<tr>
<th align='right'>[% 'Date' | $T8 %]:</th>
<td>[% L.date_tag('letter.date_as_date', letter.date_as_date, readonly=readonly) %]</td>
</td>
<th>[% 'Internal Notes' | $T8 %]</th>
<td><textarea name='letter.intnotes' rows="4" class="wi-wider">[% letter.intnotes | html %]</textarea></td>
</tr>
</table>
<!-- /upper right block -->
</td>
</tr>
</tbody>
</table>
<tr height=20></tr>
<div id="email_inputs" class="hidden"></div>
<div id="print_options" class="hidden">[% print_options %]</div>
<tr>
<td colspan=2 width=100%>
<!-- central block -->
<table width=80%>
<tr>
<th align=right>[% 'Subject' | $T8 %]</th>
<td><textarea name='letter.subject' style='width:100%;font-weight:bold' rows=1>[% letter.subject | html %]</textarea></td>
</tr>
<th align=right>[% 'Greeting' | $T8 %]</th>
<td><input name='letter.greeting' style='width:100%;font-weight:bold' value="[% letter.greeting | html %]"></td>
</tr>
<tr>
<tr>
<th align=right>[% 'Body' | $T8 %]</th>
<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>
<td><textarea name='letter.intnotes' style='width:100%' rows=4>[% letter.intnotes | html %]</textarea></td>
</tr>
</div><!-- /.wrapper -->
<tr>
<th></th>
<td>
<table width=90% align='center'>
<tr>
<td>
<table width=100%>
<tr>
<td>[% 'Employee' | $T8 %]</td>
</tr>
<tr>
<td>
[%- L.select_tag('letter.employee_id', employees, default=letter.employee_id, title_key='safe_name', class='bold', allow_empty=1, style='width:70%') %]
</td>
</tr>
</table>
</td>
<td>
<table width=100%>
<tr>
<td>[% 'Salesman' | $T8 %]</td>
</tr>
<tr>
<td>
[%- L.select_tag('letter.salesman_id', employees, default=letter.salesman_id, title_key='safe_name', class='bold', allow_empty=1, style='width:70%') %]
</td>
</tr>
</table>
</td>
<td>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- /central block -->
</td>
</tr>
</table>
</div><!-- /.ui-tabs-letter -->
<div id="email_inputs" class="hidden"></div>
<div id="print_options" class="hidden">
[% print_options %]
[% PROCESS 'webdav/_list.html' %]
<div id="ui-tabs-1">
<div class="wrapper">
[% LxERP.t8("Loading...") %]
</div>
</div>
</div>
[% PROCESS 'webdav/_list.html' %]
<div id="ui-tabs-1">
[%- LxERP.t8("Loading...") %]
</div>
</div>
</div><!-- /.tabwidget -->
</form>
<div id="print_dialog" class="hidden">
[%- PROCESS 'common/_print_dialog.html' %]
[% PROCESS 'common/_print_dialog.html' %]
</div>

Auch abrufbar als: Unified diff