|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
-
-
-
- use domain\PointSale\PointSale\PointSaleRepository;
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
-
- $pointSaleModule = $this->getPointSaleModule();
- $producerModule = $this->getProducerModule();
-
- $this->setTitle('Partager un point de vente') ;
- $this->addBreadcrumb(['label' => 'Points de vente partagés', 'url' => ['index']]) ;
- $this->addBreadcrumb('Partager') ;
-
- ?>
-
- <div class="shared-point-sale-create">
- <?php $form = ActiveForm::begin([
- 'enableClientValidation' => false
- ]); ?>
- <div class="panel panel-default">
- <div class="panel-body">
- <?= $form->field($sharedPointSaleModel, 'id_point_sale')
- ->dropDownList($pointSaleModule->getRepository()->populatePointSaleDropdownList())
- ->label('Point de vente'); ?>
- <?php $producerPopulateDropdownArray = $producerModule->getRepository()->populateProducerDropdown(true); ?>
- <?= $form->field($sharedPointSaleModel, 'id_producer_with_sharing')
- ->dropDownList($producerPopulateDropdownArray['data'], ['prompt' => '--','encode' => false,'options' => $producerPopulateDropdownArray['options']])
- ->label('Producteur avec qui vous souhaitez le partager');?>
- </div>
- </div>
- <div class="form-group form-actions">
- <?= Html::a('Retour', ['index'], ['class' => 'btn btn-default']) ?>
- <?= Html::submitButton($sharedPointSaleModel->isNewRecord ? 'Créer' : 'Modifier', ['class' => 'btn btn-primary', 'name' => 'save']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
|