Skip to content

Commit

Permalink
Artikeleingabe unten: design4.0 templates
Browse files Browse the repository at this point in the history
Im Gegensatz zum alten template Satz ist hier die Artikeleingabe nicht
im scrollbaren Bereich enthalten, weil der sowieso schon recht klein
ist.
  • Loading branch information
sschoeling committed Jan 17, 2025
1 parent 0745825 commit 4702a2f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions templates/design40_webpages/am/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ <h1>[% title %]</h1>
<td>
[% L.yes_no_tag('part_picker_search_all_as_list_default', part_picker_search_all_as_list_default) %]
</td>
</tr>
<tr>
<th>[% 'Item input position for quotations and orders' | $T8 %]</th>
<td>
[% L.select_tag('order_item_input_position', [ [ 'default', LxERP.t8('Use settings from client configuration') ], [ 0, LxERP.t8('above the positions') ], [ 1, LxERP.t8('below the positions') ] ], default=order_item_input_position) %]
</td>
</tr>
</tbody>
</table>
Expand Down
5 changes: 5 additions & 0 deletions templates/design40_webpages/client_config/_features.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,11 @@
</div>
</td>
</tr>
<tr>
<th>[% LxERP.t8("Item input position for quotations and orders") %]</th>
<td>[% L.select_tag("defaults.order_item_input_position", [ [ 0, LxERP.t8('above the positions'), ], [ 1, LxERP.t8('below the positions') ] ], default=SELF.defaults.order_item_input_position) %]</td>
<td>[% LxERP.t8("Controls whether the default item input is above (default) or below the positions list in orders and quotations. Can be overridden by user preferences.") %]</td>
</tr>
<tr>
<th class="caption" colspan="3">[% 'Show certain sales and purchase documents' | $T8 %]</th>
</tr>
Expand Down
8 changes: 7 additions & 1 deletion templates/design40_webpages/order/tabs/basic_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,9 @@

</div><!-- /.wrapper -->

[% PROCESS order/tabs/_item_input.html SELF=SELF %]
[%- IF order_item_input_position == 0 -%]
[% PROCESS order/tabs/_item_input.html SELF=SELF %]
[%- END -%]

[%- IF SELF.positions_scrollbar_height -%]
[%- SET scroll_style = 'style="overflow-y: auto; height:' _ SELF.positions_scrollbar_height _ 'vh;"' -%]
Expand Down Expand Up @@ -450,6 +452,10 @@

</div><!-- /#row_table_scroll_id /.wrapper -->

[%- IF order_item_input_position == 1 -%]
[% PROCESS order/tabs/_item_input.html SELF=SELF %]
[%- END -%]

</div><!-- /#ui-tabs-basic-data -->

[% L.sortable_element('#row_table_id') %]

0 comments on commit 4702a2f

Please sign in to comment.