1
0
mirror of https://github.com/flarum/core.git synced 2025-07-21 16:51:34 +02:00

Make the FormModal component more flexible

This commit is contained in:
Toby Zerner
2015-06-12 16:40:20 +09:30
parent 5c21efe09d
commit 81dc3a1c48
7 changed files with 13 additions and 15 deletions

View File

@@ -23,9 +23,7 @@ export default class FormModal extends Component {
m('form', {onsubmit: this.onsubmit.bind(this)}, [
m('div.modal-header', m('h3.title-control', options.title)),
alert ? m('div.modal-alert', alert) : '',
m('div.modal-body', [
m('div.form-centered', options.body)
]),
m('div.modal-body', options.body),
options.footer ? m('div.modal-footer', options.footer) : ''
])
]),