<?php } ?> <?php foreach ($columns as $key => $value) { if (!empty($columns[$key]['dont_select'])) { ?> <div> <h4> <?php echo empty($columns[$key]['label']) ? $key : $columns[$key]['label']; ?> </h4> <p> <?php echo AdminHTML::renderField($key, $columns[$key], $columns[$key]['get_current_value'](), ['class' => 'form-control']); ?> </p> </div> <?php } } ?> <div class="edit-form-buttons"> <a href="<?php echo $query['ref']; ?> " class='btn btn-default'> <i class="fa fa-mail-reply"></i>
<?php } ?> <?php foreach ($columns as $columnName => $column) { ?> <div> <h4> <?php echo $column['label']; ?> </h4> <p> <?php echo AdminHTML::renderField($columnName, $column, isset($post[$columnName]) ? $post[$columnName] : null, ['class' => 'form-control']); ?> </p> </div> <?php } ?> <?php $href = AdminHREF::getDefaultAdminRouteUri('data', $model->getShortName()); if (method_exists($model, 'getInsertBackHref')) { $href = $model->getInsertBackHref(); } ?> <a href="<?php