--- /dev/null
+[%- USE LxERP -%][%- USE L -%]
+[%- DEFAULT id_prefix = 'basic_settings_form'
+ submit_as = 'post'
+%]
+<form method="post" action="controller.pl" id="[% id_prefix %]">
+ [% L.hidden_tag("id", SELF.requirement_spec.id, id=id_prefix _ '_id') %]
+
+ <table class="rs_input_field">
+ <tr>
+ <td>[% LxERP.t8("Title") %]</td>
+ <td>[% L.input_tag("requirement_spec.title", SELF.requirement_spec.title, id=id_prefix _ '_title') %]</td>
+ </tr>
+
+ <tr>
+ <td>[% LxERP.t8("Requirement Spec Type") %]</td>
+ <td>[% L.select_tag("requirement_spec.type_id", SELF.types, default=SELF.requirement_spec.type_id, title_key="description", id=id_prefix _ '_type_id') %]</td>
+ </tr>
+
+ <tr>
+ <td>[% LxERP.t8("Requirement Spec Status") %]</td>
+ <td>[% L.select_tag("requirement_spec.status_id", SELF.statuses, default=SELF.requirement_spec.status_id, title_key="description", id=id_prefix _ '_status_id') %]</td>
+ </tr>
+
+ <tr>
+ <td>[% LxERP.t8("Customer") %]</td>
+ <td>[% L.select_tag("requirement_spec.customer_id", SELF.customers, default=SELF.requirement_spec.customer_id, title_key="name", id=id_prefix _ '_customer_id',
+ onchange="basic_settings_customer_changed('#" _ id_prefix _ "_customer_id', '#" _ id_prefix _ "_hourly_rate_as_number')") %]</td>
+ </tr>
+
+ <tr>
+ <td>[% LxERP.t8("Hourly Rate") %]</td>
+ <td>[% L.input_tag(form_prefix _ "hourly_rate_as_number", SELF.requirement_spec.hourly_rate_as_number, id=id_prefix _ '_hourly_rate_as_number') %]</td>
+ </tr>
+
+ </table>
+
+ <p>
+[% IF submit_as == 'post' %]
+ [% L.hidden_tag("action", "RequirementSpec/dispatch", id=id_prefix _ '_action') %]
+ [% L.submit_tag("action_" _ (SELF.requirement_spec.id ? "update" : "create"), LxERP.t8('Save'), id=id_prefix _ '_action_update') %]
+ [%- IF SELF.requirement_spec.id %]
+ [% L.submit_tag("action_destroy", LxERP.t8('Delete'), confirm=LxERP.t8('Do you really want to delete this object?'), id=id_prefix _ '_action_destroy') %]
+ [%- END %]
+ <a href="[% SELF.url_for(action="list") %]">[% LxERP.t8('Abort') %]</a>
+[% ELSE %]
+ [% L.button_tag("submit_ajax_form('controller.pl?action=RequirementSpec/update', '#" _ id_prefix _ "')", LxERP.t8("Save")) %]
+ [% L.button_tag("submit_ajax_form('controller.pl?action=RequirementSpec/destroy', '#" _ id_prefix _ "')", LxERP.t8("Delete"), confirm=LxERP.t8("Do you really want to delete this object?")) %]
+[% END %]
+ </p>
+</form>