added ingredient notes + removed null constraints

This commit is contained in:
vabene1111
2020-03-17 22:47:17 +01:00
parent 1d562452df
commit 0c2b3d2d03
6 changed files with 64 additions and 3 deletions

View File

@@ -151,6 +151,7 @@
validator: "required",
editor: select2UnitEditor
},
{title: "{% trans 'Note' %}", field: "note", editor: "input"},
{
formatter: function (cell, formatterParams) {
return "<span style='color:red'><i class=\"fas fa-trash-alt\"></i></span>"
@@ -188,6 +189,7 @@
ingredient__name: "{% trans 'Ingredient' %}",
amount: "100",
unit__name: "g",
note: "",
id: Math.floor(Math.random() * 10000000),
delete: false,
});