-
Notifications
You must be signed in to change notification settings - Fork 0
Description
when using the client with siren4j (currently I am using 1.1.3) radio options are not generated.
the code returned (see below) returns options, the jade template seems to get it from the value,
should it not get the option repeat from the field.options instead ?
-- action-form.jave snippet ---
form(ng-submit='actionFromCtrl.submit(action); $parent.$close()')
div(ng-repeat="field in action.fields")
div.form-group(ng-if="field.type == 'checkbox' || field.type == 'radio'")
label {{field.title}}
div.checkbox.radio(ng-repeat="option in field.value")
label
---- example return snippet
{
"name": "language",
"title": "The language he or she wants to be addressed in",
"type": "radio",
"required": true,
"options": [
{
"title": "English",
"value": "EN",
"default": false
},
{
"title": "Français",
"value": "FR",
"default": false
}
]
}