?> <h3><?php echo __('Add answer'); ?> </h3> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']); ?> <?php echo $form->start(); ?> <?php echo $form->field('name', 'text', ['class' => 'form-control']); ?> <?php echo $form->field('email', 'email', ['class' => 'form-control']); ?> <?php echo $form->field('message', 'textarea', ['class' => 'form-control', 'rows' => 7]); ?> <div class="col-md-offset-3 col-md-9"> <?php echo $form->submitButton(__('Add answer'), ['class' => 'btn btn-primary']); ?> </div> <?php echo $form->finish(); }
/** @var $this object */ /** @var $model Apps\Model\Admin\Application\FormUpdate */ use Ffcms\Core\Helper\HTML\Form; use Ffcms\Core\Helper\Url; $this->title = __('Update app'); $this->breadcrumbs = [Url::to('main/index') => __('Main'), Url::to('application/index') => __('Applications'), __('Update')]; ?> <h1><?php echo __('Update app'); ?> </h1> <hr /> <?php echo \Ffcms\Core\Helper\HTML\Table::display(['table' => ['class' => 'table table-bordered'], 'thead' => ['titles' => [['text' => __('App name')], ['text' => __('Script version')], ['text' => __('DB version')], ['text' => __('Last changes')]]], 'tbody' => ['items' => [[['text' => $model->name], ['text' => $model->scriptVersion], ['text' => $model->dbVersion], ['text' => $model->date]]]]]); ?> <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']); ?> <?php echo $form->start(); ?> <?php echo $form->submitButton(__('Try update'), ['class' => 'btn btn-primary']); ?> <?php echo $form->finish(false);