|
- <?php
-
-
-
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
- use yii\helpers\ArrayHelper ;
- use common\models\Producer ;
-
- $this->setTitle('Ajouter producteur') ;
- $this->addBreadcrumb(['label' => 'Producteurs', 'url' => ['index']]) ;
- $this->addBreadcrumb('Ajouter') ;
-
- ?>
-
- <div class="producer-create">
- <?php $form = ActiveForm::begin(); ?>
- <?= $form->field($model, 'name') ?>
- <?= $form->field($model, 'type')->textInput(['placeholder' => 'Boulangerie, brasserie, ferme ...']); ?>
- <?= $form->field($model, 'postcode') ?>
- <?= $form->field($model, 'city') ?>
- <?= $form->field($model, 'code')->label('Code d\'accès') ?>
- <div class="form-group">
- <?= Html::submitButton('Ajouter', ['class' => 'btn btn-success']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
|