Add ingredients field to product view
This commit is contained in:
parent
89a4b5645c
commit
7d7bdb11ae
|
@ -15,7 +15,7 @@
|
||||||
.panel-wrapper {
|
.panel-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
min-width: 40%;
|
width: 40%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</%def>
|
</%def>
|
||||||
|
@ -106,6 +106,15 @@
|
||||||
</div>
|
</div>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
|
<%def name="ingredients_panel()">
|
||||||
|
<div class="panel">
|
||||||
|
<h2>Ingredients</h2>
|
||||||
|
<div class="panel-body">
|
||||||
|
${render_field_readonly(form.fieldset.ingredients)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</%def>
|
||||||
|
|
||||||
|
|
||||||
<div class="form-wrapper">
|
<div class="form-wrapper">
|
||||||
<ul class="context-menu">
|
<ul class="context-menu">
|
||||||
|
@ -189,6 +198,8 @@
|
||||||
|
|
||||||
${self.notes_panel()}
|
${self.notes_panel()}
|
||||||
|
|
||||||
|
${self.ingredients_panel()}
|
||||||
|
|
||||||
${self.lookup_codes_panel()}
|
${self.lookup_codes_panel()}
|
||||||
|
|
||||||
${self.extra_right_panels()}
|
${self.extra_right_panels()}
|
||||||
|
|
|
@ -312,6 +312,7 @@ class ProductsView(MasterView):
|
||||||
fs.discountable,
|
fs.discountable,
|
||||||
fs.special_order,
|
fs.special_order,
|
||||||
fs.not_for_sale,
|
fs.not_for_sale,
|
||||||
|
fs.ingredients,
|
||||||
fs.notes,
|
fs.notes,
|
||||||
fs.deleted,
|
fs.deleted,
|
||||||
fs.last_sold,
|
fs.last_sold,
|
||||||
|
|
Loading…
Reference in a new issue