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 m from 'mithril';
import { Button, Card, TextField } from "polythene-mithril" import { Button} from "polythene-mithril"
import EditView from '../views/editView'; import EditView from '../views/editView';
import { styler } from 'polythene-core-css'; import { styler } from 'polythene-core-css';
const draftStyle = [ const draftStyle = [
{ {
'.footer': { '.footer': {
...@@ -10,9 +12,9 @@ const draftStyle = [ ...@@ -10,9 +12,9 @@ const draftStyle = [
left: 0, left: 0,
bottom: 0, bottom: 0,
width: '100%', width: '100%',
'background-color': 'red', 'background-color': '#E8462B',
color: 'white', color: '#FFFFFF',
'text-align': 'center', 'text-align': 'right',
} }
} }
] ]
...@@ -26,25 +28,21 @@ export default class eventDraft extends EditView { ...@@ -26,25 +28,21 @@ export default class eventDraft extends EditView {
} }
view() { view() {
//Submit Button
const fieldDescriptionEn = m(TextField, { const buttonMaker = m(Button, {
label: 'Description [EN]',
required: true,
floatingLabel: true,
dense: true,
multiLine: true,
rows: 6,
});
const buttonMaker = m(Button, {
label: "Submit Request", 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',[ return m('div',[
m('h1', {class: "title"}, "Request a new event"), m('h2', {class: "title"}, "Creating a new event:"),
m('div.footer', buttonMaker), 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