Skip to content
Snippets Groups Projects
Commit 7ce8967f authored by Andy's avatar Andy
Browse files

[export] - Small corrections.

parent 9946c7b9
No related branches found
No related tags found
No related merge requests found
......@@ -11,5 +11,6 @@ module.exports = {
"class-methods-use-this": 0,
"prefer-destructuring": 1,
"no-underscore-dangle": 0,
"linebreak-style": 0,
}
};
......@@ -107,6 +107,15 @@ body {
.featuredcolor{
background: salmon;
}
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: red;
color: white;
text-align: center;
}
......@@ -14,6 +14,7 @@
},
"author": "Hermann Blum et al",
"dependencies": {
"@material/drawer": "^0.30.0",
"ajv": "^5.5.0",
"axios": "^0.17.1",
"mithril": "^1.1.6",
......
import m from 'mithril';
import { Button, Card, TextField } 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': 'red',
color: 'white',
'text-align': 'center',
}
}
]
styler.add('eventDraft', draftStyle);
export default class eventDraft extends EditView {
......@@ -8,6 +26,26 @@ export default class eventDraft extends EditView {
}
view() {
return m('h1', 'Hello World');
const fieldDescriptionEn = m(TextField, {
label: 'Description [EN]',
required: true,
floatingLabel: true,
dense: true,
multiLine: true,
rows: 6,
});
const buttonMaker = m(Button, {
label: "Submit Request",
});
// ])
return m('div',[
m('h1', {class: "title"}, "Request 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