responsify create room form

This commit is contained in:
Felix Favre 2014-12-12 22:55:56 +01:00
parent 1cc84a967a
commit bc6aa9a209
1 changed files with 45 additions and 35 deletions

View File

@ -110,7 +110,7 @@ function admin_rooms() {
}
$angeltypes_count_form = array();
foreach ($angeltypes as $angeltype_id => $angeltype)
$angeltypes_count_form[] = form_spinner('angeltype_count_' . $angeltype_id, $angeltype, $angeltypes_count[$angeltype_id]);
$angeltypes_count_form[] = div('col-lg-4 col-md-6 col-xs-6', array(form_spinner('angeltype_count_' . $angeltype_id, $angeltype, $angeltypes_count[$angeltype_id])));
return page_with_title(admin_rooms_title(), array(
buttons(array(
@ -118,13 +118,23 @@ function admin_rooms() {
)),
$msg,
form(array(
form_text('name', _("Name"), $name),
form_checkbox('from_pentabarf', _("Frab import"), $from_pentabarf),
form_checkbox('public', _("Public"), $public),
form_text('number', _("Room number"), $number),
form_info(_("Needed angels:")),
join($angeltypes_count_form),
form_submit('submit', _("Save"))
div('row', array(
div('col-md-6', array(
form_text('name', _("Name"), $name),
form_checkbox('from_pentabarf', _("Frab import"), $from_pentabarf),
form_checkbox('public', _("Public"), $public),
form_text('number', _("Room number"), $number)
)),
div('col-md-6', array(
div('row', array(
div('col-md-12', array(
form_info(_("Needed angels:")),
)),
join($angeltypes_count_form)
))
))
)),
form_submit('submit', _("Save"))
))
));
} elseif ($_REQUEST['show'] == 'delete') {