1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 19:01:40 +02:00

feat(form-plugin): update heading field #360

This commit is contained in:
Awilum
2020-02-08 15:08:48 +03:00
parent 73d1353281
commit d2204087dc
2 changed files with 2 additions and 2 deletions

View File

@@ -410,7 +410,7 @@ class FormController extends Controller
$size = isset($properties['size']) ? $this->sizes[$properties['size']] : $this->sizes['12'];
$h = isset($properties['h']) ? $properties['h'] : 3;
$id = isset($properties['id']) ? $properties['id'] : $field_id;
$class = isset($properties['class']) ? $properties['class'] . 'text-3xl border-b border-black' : 'text-3xl border-b border-black';
$class = isset($properties['class']) ? $properties['class'] : '';
return $this->flextype['view']->fetch('plugins/form/templates/fields/heading/field.html', ['title' => $title, 'size' => $size, 'h' => $h, 'id' => $id, 'class' => $class]);
}

View File

@@ -1,3 +1,3 @@
<div class="form-group {{ size }}">
<h{{ h }} id="{{ id }}" class="{{ class }}">{{ tr(title) }}</h{{ h }}>
<h{{ h }} id="{{ id }}" class="{{ class }} text-3xl border-b border-black">{{ tr(title) }}</h{{ h }}>
</div>