Merge pull request #1621 from jloguercio/1.11.x

Added Divider extra field new style - BT#12107
remotes/angel/1.11.x
José Loguercio 8 years ago committed by GitHub
commit 14811178c3
  1. 9
      app/Resources/public/css/base.css
  2. 14
      main/inc/lib/extra_field.lib.php

@ -6428,4 +6428,11 @@ ul#toolnavbox-two li a.btn{
input.form-control[type="color"] {
padding: 2px;
}
.form-separator {
font-weight: bold;
border-bottom: 2px solid #CCC;
padding-bottom: 12px;
color: #666;
margin-bottom: 20px;
margin-top: 20px;
}

@ -1262,11 +1262,15 @@ class ExtraField extends Model
}
break;
case ExtraField::FIELD_TYPE_DIVIDER:
$form->addElement(
'static',
$field_details['variable'],
'<br /><strong>'.$field_details['display_text'].'</strong>'
);
$form->addHtml('
<div class="form-group ">
<div class="col-sm-12">
<div class="panel-separator">
<h4 id="' . $field_details['variable'] . '" class="form-separator">' . $field_details['display_text'] . '</h4>
</div>
</div>
</div>
');
break;
case ExtraField::FIELD_TYPE_TAG:
$variable = $field_details['variable'];

Loading…
Cancel
Save