Move again panel fields views to admin/views/fields

This commit is contained in:
Giuseppe Criscione 2021-05-12 00:18:31 +02:00
parent 381d082ac9
commit 9999c15214
22 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<div <?= $this->attr([
'class' => ['array-input', $field->get('associative') ? 'array-input-associative' : ''],
'id' => $field->name(),

View File

@ -2,6 +2,6 @@
<?php if ($field->has('label')): ?>
<?= $field->label() ?>
<?php else: ?>
<?php $field->get('fields')->render() ?>
<?php $this->insert('fields', ['fields' => $field->get('fields')]) ?>
<?php endif; ?>
</div>

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<div class="input-wrap">
<input <?= $this->attr([
'type' => 'text',

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<input <?= $this->attr([
'type' => 'number',
'id' => $field->name(),

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<input <?= $this->attr([
'type' => 'email',
'id' => $field->name(),

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<input <?= $this->attr([
'type' => 'file',
'class' => 'file-input',

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<div class="input-wrap">
<input <?= $this->attr([
'type' => 'text',

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<input <?= $this->attr([
'type' => 'number',
'id' => $field->name(),

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<input <?= $this->attr([
'type' => 'password',
'id' => $field->name(),

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<input <?= $this->attr([
'type' => 'range',
'id' => $field->name(),

View File

@ -0,0 +1,3 @@
<div class="row">
<?php $this->insert('fields', ['fields' => $field->get('fields')]) ?>
</div>

View File

@ -0,0 +1,3 @@
<div class="container-full">
<?php $this->insert('fields', ['fields' => $field->get('fields')]) ?>
</div>

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<select <?= $this->attr([
'id' => $field->name(),
'name' => $field->formName(),

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<input <?= $this->attr([
'type' => 'text',
'id' => $field->name(),

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<input <?= $this->attr([
'type' => 'text',
'id' => $field->name(),

View File

@ -1,4 +1,4 @@
<?= $this->insert('fields.label') ?>
<?= $this->insert('fields.label', ['field' => $field]) ?>
<textarea <?= $this->attr([
'id' => $field->name(),
'name' => $field->formName(),

View File

@ -1,3 +0,0 @@
<div class="row">
<?= $field->get('fields')->render() ?>
</div>

View File

@ -1,3 +0,0 @@
<div class="container-full">
<?= $field->get('fields')->render() ?>
</div>