|
- <?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') ?>
- <?= $form->field($model, 'admin_comment')->textarea(['rows' => 7]) ?>
-
- <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') ?>
- <?= $form->field($model, 'dolibarr_socid') ?>
- <?= $form->field($model, 'dolibarr_product_id') ?>
-
- <div class="form-group">
- <?= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => 'btn btn-success']) ?>
- </div>
- <?php ActiveForm::end(); ?>
|