Commit f4665597 authored by emustafa's avatar emustafa Committed by Hermann
Browse files

fixed radiobutton default-value when in edit-user mode and not in

add-user mode
parent f8f69e83
...@@ -18,6 +18,7 @@ export default class UserEdit extends EditView { ...@@ -18,6 +18,7 @@ export default class UserEdit extends EditView {
'div', { style }, 'div', { style },
m(RadioGroup, { m(RadioGroup, {
name: 'Membership', name: 'Membership',
default: this.form.data.membership,
values: [ values: [
{ {
value: 'none', value: 'none',
...@@ -46,6 +47,7 @@ export default class UserEdit extends EditView { ...@@ -46,6 +47,7 @@ export default class UserEdit extends EditView {
'div', { style }, 'div', { style },
m(RadioGroup, { m(RadioGroup, {
name: 'Sex', name: 'Sex',
default: this.form.data.gender,
values: [ values: [
{ value: 'female', label: 'Female' }, { value: 'female', label: 'Female' },
{ value: 'male', label: 'Male' }, { value: 'male', label: 'Male' },
...@@ -60,6 +62,7 @@ export default class UserEdit extends EditView { ...@@ -60,6 +62,7 @@ export default class UserEdit extends EditView {
'div', { style }, 'div', { style },
m(RadioGroup, { m(RadioGroup, {
name: 'Departement', name: 'Departement',
default: this.form.data.department,
values: [ values: [
{ value: 'itet', label: 'ITET' }, { value: 'itet', label: 'ITET' },
{ value: 'mavt', label: 'MAVT' }, { value: 'mavt', label: 'MAVT' },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment