Merge branch 'b-3.6.1' into mebil
[kivitendo-erp.git] / templates / webpages / requirement_spec / select_template_to_paste.html
index f73441b..3ddeb2d 100644 (file)
  [%- END %]
 [%- END %]
 
-<h1>[%- LxERP.t8("Select template to paste") %]</h1>
-
 [%- IF !TEMPLATES.size %]
 <p>[%- LxERP.t8("No requirement spec templates have been created yet.") %]</p>
 
-<p><a href="#" onclick="$('#jqm_popup_dialog').jqmClose();">[%- LxERP.t8("Abort") %]</a></p>
-
 [%- ELSE %]
 
 <table>
@@ -26,6 +22,7 @@
   <th>[%- LxERP.t8("Detail view") %]</th>
   <th>[%- LxERP.t8("Paste template") %]</th>
   <th>[%- LxERP.t8("Title") %]</th>
+  <th>[%- LxERP.t8("Type") %]</th>
   <th>[%- LxERP.t8("Last modification") %]</th>
  </tr>
 
@@ -39,6 +36,7 @@
   </td>
   <td><a href="#" onclick="kivi.requirement_spec.paste_selected_template([% template.id %]);">[%- LxERP.t8("Paste template") %]</a></td>
   <td>[%- HTML.escape(template.title) %]</td>
+  <td>[%- HTML.escape(template.type.description) %]</td>
   <td>[% template.mtime ? template.mtime.to_kivitendo(precision='minute') : template.itime.to_kivitendo(precision='minute') %]</td>
  </tr>
 
@@ -46,6 +44,7 @@
   [% SET front    = template.text_blocks_sorted(output_position=0) %]
   [% SET sections = template.sections_sorted %]
   [% SET back     = template.text_blocks_sorted(output_position=1) %]
+  [% SET parts    = template.parts_sorted %]
   <td colspan="4">
    [%- LxERP.t8("What this template contains") %]:<br>
    <ul>
     [%- END %]
 
     [% PROCESS text_blocks blocks=back  title=LxERP.t8("#1 text block(s) back",  back.size)  %]
+
+    [%- IF parts.size %]
+    <li>[%- LxERP.t8("#1 additional part(s)", parts.size) %]:
+     <ol>
+      [%- FOREACH part = parts %]
+       <li>[%- HTML.escape(part.part.description) %]: [%- HTML.escape(part.qty_as_number) %] [% HTML.escape(part.unit.name) %]</li>
+      [%- END %]
+     </ol>
+    </li>
+    [%- END %]
    </ul>
   </td>
  </tr>
 [%- END %]
 </table>
 
-<p><a href="#" onclick="$('#jqm_popup_dialog').jqmClose();">[%- LxERP.t8("Abort") %]</a></p>
 [%- END %]
+
+<p><a href="#" onclick="$('#jqueryui_popup_dialog').dialog('close');">[%- LxERP.t8("Abort") %]</a></p>