Skip to content
Snippets Groups Projects
Commit 2c464e81 authored by Lionel Trebuchon's avatar Lionel Trebuchon
Browse files

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

Merge branch 'codingweekendfs18' of https://gitlab.ethz.ch/amiv/amiv-admintool into codingweekendfs18
parents a3e62aef bfbc63cb
No related branches found
No related tags found
No related merge requests found
import m from 'mithril';
import { Button, Card, TextField } from "polythene-mithril"
import { Button} from "polythene-mithril"
import EditView from '../views/editView';
import { styler } from 'polythene-core-css';
const draftStyle = [
{
'.footer': {
......@@ -10,9 +12,9 @@ const draftStyle = [
left: 0,
bottom: 0,
width: '100%',
'background-color': 'red',
color: 'white',
'text-align': 'center',
'background-color': '#E8462B',
color: '#FFFFFF',
'text-align': 'right',
}
}
]
......@@ -26,25 +28,21 @@ export default class eventDraft extends EditView {
}
view() {
const fieldDescriptionEn = m(TextField, {
label: 'Description [EN]',
required: true,
floatingLabel: true,
dense: true,
multiLine: true,
rows: 6,
});
const buttonMaker = m(Button, {
//Submit Button
const buttonMaker = m(Button, {
label: "Submit Request",
color: "white",
});
//Error pop-up in case not all mandatory fields were completed
//CURRENTLY: Error triggered onclick
events: {
onclick: () => alert("You did not complete all prioritary fields!")
}
});
// ])
return m('div',[
m('h1', {class: "title"}, "Request a new event"),
m('h2', {class: "title"}, "Creating a new event:"),
m('div.footer', buttonMaker),
]);
}
......
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