Skip to content
Snippets Groups Projects
Commit b7030d39 authored by aneff's avatar aneff
Browse files

Merge branch 'codingweekendfs18' of gitlab.ethz.ch:amiv/amiv-admintool into codingweekendfs18

parents 3046d08e 5de21806
No related branches found
No related tags found
No related merge requests found
......@@ -5,10 +5,27 @@ import {
Card
} from 'polythene-mithril';
import EditView from '../views/editView';
import {styler} from 'polythene-core-css';
const draftStyle = [
{
'.footer': {
position: 'fixed',
left: 0,
bottom: 0,
width: '100%',
'background-color': '#E8462B',
'text-align': 'right',
}
}
]
styler.add('eventDraft', draftStyle);
export default class eventWithExport extends EditView {
constructor(vnode) {
super(vnode, 'events');
this.performedEdits = 0;
}
view() {
......@@ -18,6 +35,8 @@ export default class eventWithExport extends EditView {
required: true,
floatingLabel: true,
dense: true,
onChange : (newState) => {this.title_en = this.title_en;},
value: this.title_en,
});
const fieldDescriptionEn = m(TextField, {
label: 'Description [EN]',
......@@ -25,21 +44,26 @@ export default class eventWithExport extends EditView {
floatingLabel: true,
dense: true,
multiLine: true,
rows: 6,
});
const creatorButton = m(Button, {
label: 'EXPORT'
// label: 'Create a hyperlink string describing your project.'
rows: 6,
onChange : (newState) => {this.fieldDescriptionEn = this.fieldDescriptionEn;},
value: this.fieldDescriptionEn,
});
// Needs administrator (Kulturi).
const fieldLocation = m(TextField, {
label: 'Location:',
floatingLabel: true,
required: true,
onChange : (newState) => {this.fieldLocation = this.fieldLocation;},
value: this.fieldLocation,
});
const buttonMaker = m(Button, {
label: "Submit Request!",
onClick: () => alert("You did not finish the editing of the fields.")
});
return m('div', [
m('h1', 'For the event creator:', fieldTitleEn, fieldDescriptionEn, 'For the AMIV administrator:', fieldLocation, creatorButton),
m('h1', 'For the event creator:', fieldTitleEn , fieldDescriptionEn, 'For the AMIV administrator:', fieldLocation),
m('div.footer', buttonMaker),
]);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment