kivitendo/templates/webpages/letter/edit.html @ 19af626b
90ac5660 | Hans P. Schlaepfer | [% USE HTML %]
|
||
[% USE T8 %]
|
||||
[% USE L %]
|
||||
[% USE P %]
|
||||
[% USE LxERP %]
|
||||
[% SET WEBDAV = SELF.webdav_objects %]
|
||||
ea5d75b5 | Sven Schöling | <h1>[% title | html %]</h1>
|
||
591e645d | Jan Büren | |||
6d9d1fbf | Moritz Bunkus | <form action='controller.pl' method='POST' id='form'>
|
||
996443bb | Hans P. Schlaepfer | <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) %]
|
||||
591e645d | Jan Büren | |||
996443bb | Hans P. Schlaepfer | [% INCLUDE 'common/flash.html' %]
|
||
591e645d | Jan Büren | |||
996443bb | Hans P. Schlaepfer | <div id="oe_tabs" class="tabwidget">
|
||
<ul>
|
||||
0c09beb4 | Moritz Bunkus | <li><a href="#ui-tabs-letter">[% LxERP.t8("Letter") %]</a></li>
|
||
996443bb | Hans P. Schlaepfer | [% 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>
|
||||
db7a2e79 | Sven Schöling | <tr>
|
||
996443bb | Hans P. Schlaepfer | <th>[% 'Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('letter.date_as_date', letter.date_as_date, readonly=readonly, class='wi-date') %]</td>
|
||||
db7a2e79 | Sven Schöling | </tr>
|
||
ea5d75b5 | Sven Schöling | <tr>
|
||
996443bb | Hans P. Schlaepfer | <th>[% 'Subject' | $T8 %]</th>
|
||
<td><textarea name='letter.subject' rows="1" class="wi-wider">[% letter.subject | html %]</textarea></td>
|
||||
ea5d75b5 | Sven Schöling | </tr>
|
||
<tr>
|
||||
996443bb | Hans P. Schlaepfer | <th>[% 'Greeting' | $T8 %]</th>
|
||
<td><input type="text" name='letter.greeting' value="[% letter.greeting | html %]" class="wi-wider"> </td>
|
||||
ea5d75b5 | Sven Schöling | </tr>
|
||
<tr>
|
||||
996443bb | Hans P. Schlaepfer | <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>
|
||||
ea5d75b5 | Sven Schöling | </tr>
|
||
<tr>
|
||||
996443bb | Hans P. Schlaepfer | <th>[% 'Internal Notes' | $T8 %]</th>
|
||
<td><textarea name='letter.intnotes' rows="4" class="wi-wider">[% letter.intnotes | html %]</textarea></td>
|
||||
ea5d75b5 | Sven Schöling | </tr>
|
||
996443bb | Hans P. Schlaepfer | </tbody>
|
||
</table>
|
||||
591e645d | Jan Büren | |||
996443bb | Hans P. Schlaepfer | <div id="email_inputs" class="hidden"></div>
|
||
<div id="print_options" class="hidden">[% print_options %]</div>
|
||||
591e645d | Jan Büren | |||
996443bb | Hans P. Schlaepfer | </div><!-- /.wrapper -->
|
||
591e645d | Jan Büren | |||
996443bb | Hans P. Schlaepfer | </div><!-- /.ui-tabs-letter -->
|
||
591e645d | Jan Büren | |||
996443bb | Hans P. Schlaepfer | [% PROCESS 'webdav/_list.html' %]
|
||
<div id="ui-tabs-1">
|
||||
<div class="wrapper">
|
||||
[% LxERP.t8("Loading...") %]
|
||||
</div>
|
||||
ac1a9e8e | Moritz Bunkus | </div>
|
||
996443bb | Hans P. Schlaepfer | </div><!-- /.tabwidget -->
|
||
ea5d75b5 | Sven Schöling | </form>
|
||
940da3f8 | Moritz Bunkus | |||
<div id="print_dialog" class="hidden">
|
||||
996443bb | Hans P. Schlaepfer | [% PROCESS 'common/_print_dialog.html' %]
|
||
940da3f8 | Moritz Bunkus | </div>
|