$this->title = 'Создание задания для 1с';
?>
+<h1>Создание задания для 1с</h1>
-<h1 class="text-center mb-4">Создание задания для 1с</h1>
-
-<?php $form = ActiveForm::begin(['options' => ['class' => 'form-horizontal']]); ?>
+<?php $form = ActiveForm::begin(); ?>
<?= Html::hiddenInput('_csrf', Yii::$app->request->getCsrfToken()) ?>
-<div class="row">
- <?php foreach ($items as $name => $ar): ?>
- <div class="col-md-4 mb-3">
- <div class="card" style="padding: 10px;">
- <div class="card-body">
- <div class="form-check">
- <?= Html::checkbox("in[{$name}]", false, ['class' => 'form-check-input']) ?>
- <label class="form-check-label"><?= Html::encode($ar['name']) ?></label>
- </div>
-
- <table class="table table-sm mt-3" style="table-layout: fixed;">
- <tbody>
- <?php foreach ($ar['array'] ?? [] as $tip => $val): ?>
- <tr>
- <td style="width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
- <strong><?= Html::encode($tip) ?></strong>
- </td>
- <td>
- <?= Html::input('text', "in_in[{$name}][{$tip}]", $val, [
- 'class' => 'form-control',
- 'style' => 'width: 100%; max-width: 220px;',
- ]) ?>
- </td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <?php endforeach; ?>
-</div>
-
-<div class="form-group text-center mt-4">
- <?= Html::submitButton('Сохранить', ['class' => 'btn btn-success btn-lg']) ?>
-</div>
+<?php foreach ($items as $name => $ar): ?>
+ <br>
+ <?= Html::checkbox("in[{$name}]") ?> <?= Html::encode($ar['name']) ?>
+ <table>
+ <?php foreach ($ar['array'] ?? [] as $tip => $val): ?>
+ <tr>
+ <td><?= Html::encode($tip) ?></td>
+ <td>
+ <?= Html::input('text', "in_in[{$name}][{$tip}]", $val, ['class' => 'form-control', 'style' => 'width:220px;']) ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endforeach; ?>
+
+<br>
+<?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>
<?php ActiveForm::end(); ?>