|
- <?php
-
-
-
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
-
- $this->setTitle('Modifier une fonctionnalité') ;
- $this->addBreadcrumb(['label' => 'Fonctionnalité', 'url' => ['index']]) ;
- $this->addBreadcrumb('Modifier') ;
-
- ?>
-
- <div class="feature-admin-update">
- <?php $form = ActiveForm::begin(); ?>
- <?= $form->field($model, 'status')->radioList([1 => 'Oui', 0 => 'Non']) ?>
- <?= $form->field($model, 'name') ?>
- <?= $form->field($model, 'description')->widget(letyii\tinymce\Tinymce::class, [
- 'options' => [
- 'id' => 'testid',
- ],
- 'configs' => [ // Read more: https://www.tiny.cloud/docs/tinymce/6/full-featured-open-source-demo/
- 'plugins' => 'preview importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media template codesample table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount help charmap quickbars emoticons accordion' ,
- ]
- ]) ; ?>
- <?= $form->field($model, 'only_for_selected_producers')->radioList([1 => 'Oui', 0 => 'Non']) ?>
- <?= $form->field($model, 'is_paid_feature')->radioList([1 => 'Oui', 0 => 'Non']) ?>
- <?= $form->field($model, 'price') ?>
- <div class="form-group">
- <?= Html::submitButton('Modifier', ['class' => 'btn btn-success']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
|