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

[export] - Add footer that posts warning to screen.

parent e14ee114
No related branches found
No related tags found
No related merge requests found
...@@ -5,10 +5,27 @@ import { ...@@ -5,10 +5,27 @@ import {
Card Card
} from 'polythene-mithril'; } from 'polythene-mithril';
import EditView from '../views/editView'; 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 { export default class eventWithExport extends EditView {
constructor(vnode) { constructor(vnode) {
super(vnode, 'events'); super(vnode, 'events');
this.performedEdits = 0;
} }
view() { view() {
...@@ -18,6 +35,8 @@ export default class eventWithExport extends EditView { ...@@ -18,6 +35,8 @@ export default class eventWithExport extends EditView {
required: true, required: true,
floatingLabel: true, floatingLabel: true,
dense: true, dense: true,
onChange : (newState) => {this.title_en = this.title_en;},
value: this.title_en,
}); });
const fieldDescriptionEn = m(TextField, { const fieldDescriptionEn = m(TextField, {
label: 'Description [EN]', label: 'Description [EN]',
...@@ -25,21 +44,26 @@ export default class eventWithExport extends EditView { ...@@ -25,21 +44,26 @@ export default class eventWithExport extends EditView {
floatingLabel: true, floatingLabel: true,
dense: true, dense: true,
multiLine: true, multiLine: true,
rows: 6, rows: 6,
}); onChange : (newState) => {this.fieldDescriptionEn = this.fieldDescriptionEn;},
const creatorButton = m(Button, { value: this.fieldDescriptionEn,
label: 'EXPORT'
// label: 'Create a hyperlink string describing your project.'
}); });
// Needs administrator (Kulturi). // Needs administrator (Kulturi).
const fieldLocation = m(TextField, { const fieldLocation = m(TextField, {
label: 'Location:', label: 'Location:',
floatingLabel: true, floatingLabel: true,
required: 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', [ 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