-[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
+[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %][%- USE P -%]
+<h1>[% FORM.title %]</h1>
- <form method="post" action="controller.pl">
- <div class="listtop">[% FORM.title %]</div>
+ <form method="post" action="controller.pl" id="form">
[%- INCLUDE 'common/flash.html' %]
<tr>
<td>[%- 'Description' | $T8 %]</td>
<td>
- <input name="delivery_term.description" value="[%- HTML.escape(SELF.delivery_term.description) %]">
+ [% P.input_tag("delivery_term.description", SELF.delivery_term.description, size="60", "data-validate"="required", "data-title"=LxERP.t8("Description")) %]
</td>
</tr>
<tr>
<td>[%- 'Long Description' | $T8 %]</td>
<td>
- <input name="delivery_term.description_long" value="[%- HTML.escape(SELF.delivery_term.description_long) %]" size="60">
+ [% P.input_tag("delivery_term.description_long", SELF.delivery_term.description_long, size="60", "data-validate"="required", "data-title"=LxERP.t8("Long Description")) %]
</td>
</tr>
</td>
</tr>
[%- END %]
+ </table>
- <p>
- <input type="hidden" name="id" value="[% SELF.delivery_term.id %]">
- <input type="hidden" name="action" value="DeliveryTerm/dispatch">
- <input type="submit" class="submit" name="action_[% IF SELF.delivery_term.id %]update[% ELSE %]create[% END %]" value="[% 'Save' | $T8 %]">
- [%- IF SELF.delivery_term.id %]
- <input type="submit" class="submit" name="action_destroy" value="[% 'Delete' | $T8 %]"
- onclick="if (confirm('[% 'Are you sure you want to delete this delivery term?' | $T8 %]')) return true; else return false;">
- [%- END %]
- <a href="[% SELF.url_for(action => 'list') %]">[%- 'Abort' | $T8 %]</a>
- </p>
-
+ [% P.hidden_tag("id", SELF.delivery_term.id) %]
</form>
-