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 {
'div', { style },
m(RadioGroup, {
name: 'Membership',
default: this.form.data.membership,
values: [
{
value: 'none',
......@@ -46,6 +47,7 @@ export default class UserEdit extends EditView {
'div', { style },
m(RadioGroup, {
name: 'Sex',
default: this.form.data.gender,
values: [
{ value: 'female', label: 'Female' },
{ value: 'male', label: 'Male' },
......@@ -60,6 +62,7 @@ export default class UserEdit extends EditView {
'div', { style },
m(RadioGroup, {
name: 'Departement',
default: this.form.data.department,
values: [
{ value: 'itet', label: 'ITET' },
{ 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