|
- <?php
-
-
-
- use domain\Config\TaxRate\TaxRate;
- use yii\bootstrap\ActiveForm;
- use yii\helpers\ArrayHelper;
- use yii\helpers\Html;
-
- $this->setTitle('Créer un espace producteur') ;
- $this->setIcon('grain');
- $this->setMeta('description', 'Créer un espace producteur sur Opendistrib.');
-
- $this->params['breadcrumbs'][] = $this->title;
-
- ?>
- <div class="site-signup">
-
- <div class="row">
- <div class="col-lg-5">
- <?php $form = ActiveForm::begin(['id' => 'form-signup','enableClientValidation'=> false]); ?>
- <?= $form->field($model, 'name_producer') ?>
- <?= $form->field($model, 'type')->textInput(['placeholder' => 'Boulangerie, brasserie, ferme ...']); ?>
- <?= $form->field($model, 'postcode') ?>
- <?= $form->field($model, 'city') ?>
- <?= $form->field($model, 'id_tax_rate_default')
- ->dropDownList(ArrayHelper::map(TaxRate::find()->all(), 'id', function($model) { return $model->name; }), [
- 'prompt' => '--',
- ])
- ->label('TVA à appliquer par défaut'); ?>
- <?= $form->field($model, 'cgv')->checkbox()->label('J\'accepte les <button type="button" class="btn btn-xs btn-default btn-modal-cgv" data-toggle="modal" data-target="#modal-cgv">conditions générales de service</button> et les <button type="button" class="btn btn-xs btn-default btn-modal-prices" data-toggle="modal" data-target="#modal-prices">conditions tarifaires</button>.') ?>
-
- <?= $form->field($model, 'verifyCode')->widget(\yii\captcha\Captcha::className(), [
- 'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
- ]) ?>
- <?= $form->field($model, 'is_test')->hiddenInput() ?>
-
- <div class="form-group" id="buttons-signup">
- <?= Html::submitButton("S'inscrire", ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
- </div>
- </div>
-
- <!-- CGV -->
- <div class="modal fade" id="modal-cgv" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
- <div class="modal-dialog modal-lg" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title" id="myModalLabel">Conditions générales de service</h4>
- </div>
- <div class="modal-body">
- <?= $this->render('_cgv_content.php'); ?>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
- </div>
- </div>
- </div>
- </div>
-
- <!-- Tarifs -->
- <div class="modal fade" id="modal-prices" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
- <div class="modal-dialog modal-lg" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title" id="myModalLabel">Tarifs</h4>
- </div>
- <div class="modal-body">
- <?= $this->render('../site/_prices_producer', ['dataProviderPrices' => $dataProviderPrices, 'paidFeaturesArray' => $paidFeaturesArray]); ?>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
- </div>
- </div>
- </div>
- </div>
|