|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
-
-
-
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
- use common\logic\Producer\Producer\Model\Producer;
-
- ?>
-
- <?php $form = ActiveForm::begin(); ?>
-
- <h3>Général</h3>
- <?= $form->field($model, 'slug') ?>
- <?= $form->field($model, 'name') ?>
- <?= $form->field($model, 'type')->textInput(['placeholder' => 'Boulangerie, brasserie, ferme ...']); ?>
- <?= $form->field($model, 'postcode') ?>
- <?= $form->field($model, 'city') ?>
- <?= $form->field($model, 'contact_email') ?>
- <?= $form->field($model, 'latitude') ?>
- <?= $form->field($model, 'longitude') ?>
- <?= $form->field($model, 'code')->label('Code d\'accès') ?>
-
- <h3>Facturation</h3>
- <?= $form->field($model, 'option_billing_type')
- ->dropDownList(Producer::getBillingTypePopulateDropdown()); ?>
- <?= $form->field($model, 'option_billing_frequency')
- ->dropDownList(Producer::getBillingFrequencyPopulateDropdown()); ?>
- <?= $form->field($model, 'option_billing_reduction')
- ->dropDownList([
- 0 => 'Non',
- 1 => 'Oui'
- ]); ?>
- <?= $form->field($model, 'option_billing_reduction_percentage') ?>
- <?= $form->field($model, 'option_billing_permanent_transfer')
- ->dropDownList([
- 0 => 'Non',
- 1 => 'Oui'
- ]); ?>
- <?= $form->field($model, 'option_billing_permanent_transfer_amount') ?>
- <div class="form-group">
- <?= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => 'btn btn-success']) ?>
- </div>
- <?php ActiveForm::end(); ?>
|