To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 3f81f53b authored by Hermann's avatar Hermann
Browse files

edit phone and newsletter subscription of users

parent ad8eebca
......@@ -10,14 +10,14 @@ export default class UserEdit extends EditView {
view() {
return this.layout([
...this.form.renderSchema(['lastname', 'firstname', 'email', 'nethz', 'legi']),
...this.form.renderSchema(['lastname', 'firstname', 'email', 'phone', 'nethz', 'legi']),
m(TextInput, this.form.bind({
type: 'password',
name: 'password',
label: 'New password',
floatingLabel: true,
})),
...this.form.renderSchema(['rfid', 'membership', 'gender', 'department']),
...this.form.renderSchema(['rfid', 'send_newsletter', 'membership', 'gender', 'department']),
]);
}
}
......@@ -24,7 +24,7 @@ export default class EditView extends ItemView {
const validInitially = this.controller.modus === 'edit';
// start a form to collect the submit data
this.form = new Form({}, validInitially, 4, Object.assign({}, this.controller.data));
this.form.setSchema(this.handler.schema);
this.form.setSchema(JSON.parse(JSON.stringify(this.handler.schema)));
}
/**
......
Markdown is supported
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