diff --git a/server/models/fields.js b/server/models/fields.js index eb6b6542..485a2b90 100644 --- a/server/models/fields.js +++ b/server/models/fields.js @@ -663,6 +663,7 @@ function forHbsWithFieldsGrouped(fieldsGrouped, subscription) { // assumes group help: fld.help, field: fld, [type.getHbsType(fld)]: true, + required: fld.required, order_subscribe: fld.order_subscribe, order_manage: fld.order_manage }; @@ -689,6 +690,7 @@ function forHbsWithFieldsGrouped(fieldsGrouped, subscription) { // assumes group key: opt.key, name: opt.name, help: opt.help, + required: opt.required, value: isEnabled }); } @@ -704,7 +706,8 @@ function forHbsWithFieldsGrouped(fieldsGrouped, subscription) { // assumes group key: opt.key, name: opt.label, help: opt.help, - value: value === opt.key + value: value === opt.key, + required: fld.required }); } diff --git a/server/views/subscription/partials/subscription-custom-fields.hbs b/server/views/subscription/partials/subscription-custom-fields.hbs index 2a8b7083..61e8d933 100644 --- a/server/views/subscription/partials/subscription-custom-fields.hbs +++ b/server/views/subscription/partials/subscription-custom-fields.hbs @@ -18,7 +18,7 @@ {{#if typeText}}
- + {{help}}
{{/if}} @@ -26,7 +26,7 @@ {{#if typeNumber}}
- + {{help}}
{{/if}} @@ -34,7 +34,7 @@ {{#if typeWebsite}}
- + {{help}}
{{/if}} @@ -42,7 +42,7 @@ {{#if typeLongtext}}
- + {{help}}
{{/if}} @@ -50,7 +50,7 @@ {{#if typeJson}}
- + {{help}}
{{/if}} @@ -59,7 +59,7 @@
{{help}} @@ -72,7 +72,7 @@ {{#if ../hasPubkey}} {{/if}} - + {{#translate}}insertYourGpgPublicKeyHereToEncrypt{{/translate}} {{help}}
@@ -81,7 +81,7 @@ {{#if typeDateUs}}
- + {{help}}
{{/if}} @@ -89,7 +89,7 @@ {{#if typeDateEur}}
- + {{help}}
{{/if}} @@ -97,7 +97,7 @@ {{#if typeBirthdayUs}}
- + {{help}}
{{/if}} @@ -105,7 +105,7 @@ {{#if typeBirthdayEur}}
- + {{help}}
{{/if}} @@ -113,7 +113,7 @@ {{#if typeDropdownGrouped }}