mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-05 06:08:46 -05:00
Add plural name for unit and food
Add an optional plural name for unit and food. Additional options to show always the plural name for unit and food for an ingredient is added.
This commit is contained in:
@@ -78,6 +78,7 @@ export class Models {
|
||||
params: [
|
||||
[
|
||||
"name",
|
||||
"plural_name",
|
||||
"description",
|
||||
"recipe",
|
||||
"food_onhand",
|
||||
@@ -103,6 +104,13 @@ export class Models {
|
||||
placeholder: "", // form.placeholder always translated
|
||||
subtitle_field: "full_name",
|
||||
},
|
||||
plural_name: {
|
||||
form_field: true,
|
||||
type: "text",
|
||||
field: "plural_name",
|
||||
label: "Plural",
|
||||
placeholder: "",
|
||||
},
|
||||
description: {
|
||||
form_field: true,
|
||||
type: "text",
|
||||
@@ -261,7 +269,7 @@ export class Models {
|
||||
apiName: "Unit",
|
||||
paginated: true,
|
||||
create: {
|
||||
params: [["name", "description"]],
|
||||
params: [["name", "plural_name", "description",]],
|
||||
form: {
|
||||
name: {
|
||||
form_field: true,
|
||||
@@ -270,6 +278,13 @@ export class Models {
|
||||
label: "Name",
|
||||
placeholder: "",
|
||||
},
|
||||
plural_name: {
|
||||
form_field: true,
|
||||
type: "text",
|
||||
field: "plural_name",
|
||||
label: "Plural name",
|
||||
placeholder: "",
|
||||
},
|
||||
description: {
|
||||
form_field: true,
|
||||
type: "text",
|
||||
|
||||
Reference in New Issue
Block a user