Dunning: Email und Zahlungsbedingung in Mahnlaufbericht aufgenommen
[kivitendo-erp.git] / templates / webpages / requirement_spec / _edit_time_and_cost_estimate.html
index f0e6831..ce09a9a 100644 (file)
@@ -1,7 +1,7 @@
 [%- USE LxERP -%][%- USE L -%][%- USE HTML -%][%- USE P -%]
 [%- DEFAULT id_prefix = 'time_and_cost_estimate_form' %]
 
-<div id="time_cost_estimate" class="edit-time-cost-estimate-context-menu">
+<div id="time_cost_estimate_form_container" class="edit-time-cost-estimate-context-menu">
  [%- IF !SELF.requirement_spec.sections.size %]
   <p>[%- LxERP.t8("Neither sections nor function blocks have been created yet.") %]</p>
 
@@ -15,7 +15,7 @@
    [%# time-cost-estimate-context-menu %]
    <table class="time-cost-estimate">
     <tbody>
-     [%- FOREACH section = SELF.requirement_spec.sections %]
+     [%- FOREACH section = SELF.requirement_spec.sections_sorted %]
       <tr class="listheading">
        <th>[%- LxERP.t8("Function block") %]</th>
        <th>[%- LxERP.t8("Complexity") %]</th>
@@ -29,7 +29,7 @@
 
       [%- IF section.children.size %]
        [%- SET at_least_one_function_block = 1 %]
-       [%- FOREACH child = section.children %]
+       [%- FOREACH child = section.children_sorted %]
         [%- INCLUDE 'requirement_spec/_edit_time_and_cost_estimate_item.html'
                     id_prefix = id_prefix
                     item      = child
@@ -39,6 +39,8 @@
      [%- END -%]
     </tbody>
    </table>
+
+   [% L.button_tag("kivi.requirement_spec.standard_time_cost_estimate_ajax_call('save')", LxERP.t8("Save")) %]
   </form>
  [%- END %]
 </div>