Commit 21ef7453 authored by Carsten  Rose's avatar Carsten Rose
Browse files

F3971 / Form title: new design from form title

parent 86ccd5ef
......@@ -44,7 +44,7 @@ class BuildFormBootstrap extends AbstractBuildForm {
// $this->wrap[WRAP_SETUP_OUTER][WRAP_SETUP_START] = '<div class="tab-content">';
// $this->wrap[WRAP_SETUP_OUTER][WRAP_SETUP_END] = '</div>';
$this->wrap[WRAP_SETUP_TITLE][WRAP_SETUP_START] = "<div class='row hidden-xs'><div class='col-md-12'><h1>";
$this->wrap[WRAP_SETUP_TITLE][WRAP_SETUP_START] = "<div class='row'><div class='col-md-12'><h1>";
$this->wrap[WRAP_SETUP_TITLE][WRAP_SETUP_END] = "</h1></div></div>";
// Element: Label + Input + Note
......@@ -120,10 +120,11 @@ class BuildFormBootstrap extends AbstractBuildForm {
$html .= '<div ' . Support::doAttribute('class', $this->formSpec[F_CLASS], true) . '>'; // main <div class=...> around everything, Whole FORM; class="container" or class="container-fluid"
//TODO: nicer error reporting - make test with 'unknown index' here - unset($this->formSpec['title']) - See #3424
$title = Support::wrapTag('<div class="hidden-xs col-sm-6 col-md-8">', Support::wrapTag('<h3>', $this->formSpec[F_TITLE]));
$button = Support::wrapTag('<div class="col-xs-12 col-sm-6 col-md-4">', $this->buildButtons());
$html .= Support::wrapTag('<div class="row">', $title . $button);
$button = Support::wrapTag('<div class="row"><div class="col-md-12">', $this->buildButtons());
$title = Support::wrapTag('<div class="row"><div class="col-md-12">', Support::wrapTag('<div class="qfq-form-title">', $this->formSpec[F_TITLE]));
$html .= $button . $title;
$dummy = array();
$pill = $this->buildPillNavigation($mode, OnArray::filter($this->feSpecNative, FE_TYPE, FE_TYPE_PILL), $dummy);
......@@ -306,12 +307,12 @@ class BuildFormBootstrap extends AbstractBuildForm {
// Arrangement: Edit Form / Save / Close / Delete / New
// Specified in reverse order cause 'pull-right' inverts the order. http://getbootstrap.com/css/#helper-classes-floats
$html = '';
$html .= Support::wrapTag('<div class="btn-group pull-right" role="group">', $buttonNew);
$html .= Support::wrapTag('<div class="btn-group pull-right" role="group">', $buttonDelete);
$html .= Support::wrapTag('<div class="btn-group pull-right" role="group">', $buttonSave . $buttonClose);
$html .= Support::wrapTag('<div class="btn-group pull-right" role="group">', $buttonEditForm);
$html .= Support::wrapTag('<div class="btn-group" role="group">', $buttonNew);
$html .= Support::wrapTag('<div class="btn-group" role="group">', $buttonDelete);
$html .= Support::wrapTag('<div class="btn-group" role="group">', $buttonSave . $buttonClose);
$html .= Support::wrapTag('<div class="btn-group" role="group">', $buttonEditForm);
$html = Support::wrapTag('<div class="btn-toolbar" role="toolbar">', $html);
$html = Support::wrapTag('<div class="btn-toolbar pull-right" role="toolbar">', $html);
return $html;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment