Da Seriennummer ein Pflichtfeld sein kann -> 1. Zeile
[kivitendo-erp.git] / templates / webpages / requirement_spec_text_block / ajax_list.html
index dacf154..4477974 100644 (file)
@@ -1,14 +1,19 @@
-[%- USE LxERP -%][% nownow %]
-<h1>
- [%- IF output_position == 0 %][%- LxERP.t8("Text blocks front") %][%- ELSE %][%- LxERP.t8("Text blocks back") %][%- END %]
-</h1>
+[%- USE LxERP -%][%- USE L -%]
 
-<div id="text-block-list-empty"[% IF TEXT_BLOCKS.size %] style="display: none"[% END %]>
- [%- LxERP.t8("No text blocks have been created for this position.") %]
-</div>
+<div id="text-block-list-container">
+ [% L.hidden_tag('text_block_output_position', output_position) %]
+ <h1 class="text-block-context-menu">
+  [%- IF output_position == 0 %][%- LxERP.t8("Text blocks front") %][%- ELSE %][%- LxERP.t8("Text blocks back") %][%- END %]
+ </h1>
+
+ <div id="text-block-list-empty" class="text-block-context-menu"[% IF TEXT_BLOCKS.size %] style="display: none"[% END %]>
+  [%- LxERP.t8("No text blocks have been created for this position.") %]
+  [% LxERP.t8("Create one from the context menu by right-clicking on this text.") %]
+ </div>
 
-<div id="text-block-list">
- [%- FOREACH text_block = TEXT_BLOCKS %]
-  [%- INCLUDE 'requirement_spec_text_block/_text_block.html' %]
- [%- END %]
+ <div id="text-block-list">
+  [%- FOREACH text_block = TEXT_BLOCKS %]
+   [%- INCLUDE 'requirement_spec_text_block/_text_block.html' %]
+  [%- END %]
+ </div>
 </div>