Projekt

Allgemein

Profil

Herunterladen (4,68 KB) Statistiken
| Zweig: | Markierung: | Revision:
[%- USE HTML %]
[%- USE T8 %]
[%- USE L %]
[%- USE P %]
[%- USE LxERP %]
[%- SET WEBDAV = SELF.webdav_objects %]
<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="[% FORM.type | html %]">
[% L.hidden_tag('is_sales', SELF.is_sales) %]

<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 %]
[%- IF INSTANCE_CONF.get_doc_storage %]
<li><a href="controller.pl?action=File/list&file_type=document&object_type=[% HTML.escape(FORM.type) %]&object_id=[% HTML.url(letter.id) %]">[% 'Documents' | $T8 %]</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 %]
<tr>
<th align='right'>[% 'Vendor' | $T8 %]:</th>
<td>[% P.customer_vendor.picker('letter.vendor_id', letter.vendor_id, type='vendor') %]</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>
</tr>
<tr>
<th align='right'>[% 'Your Reference' | $T8 %]:</th>
<td><input name='letter.reference' style='width:70%' value='[% letter.reference | html %]'></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>
</tr>
<tr>
<th align='right'>[% 'Date' | $T8 %]:</th>
<td>[% L.date_tag('letter.date_as_date', letter.date_as_date, readonly=readonly) %]</td>
</td>
</tr>
</table>
<!-- /upper right block -->
</td>
</tr>

<tr height=20></tr>

<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>

<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 id="email_inputs" class="hidden"></div>
<div id="print_options" class="hidden">
[% print_options %]
</div>

</div>
[% PROCESS 'webdav/_list.html' %]
<div id="ui-tabs-1">
[%- LxERP.t8("Loading...") %]
</div>
</div>
</form>

<div id="print_dialog" class="hidden">
[%- PROCESS 'common/_print_dialog.html' %]
</div>
(1-1/5)