|
|
@@ -44,12 +44,13 @@ use common\models\Distribution ; |
|
|
|
|
|
|
|
$this->setTitle('Commander') ; |
|
|
|
|
|
|
|
$producer = GlobalParam::getCurrentProducer() ; |
|
|
|
$producer = $this->context->getProducer(); |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
<script> |
|
|
|
var appInitValues = { |
|
|
|
urlLogin: '<?= Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/producer', 'id' => $this->context->getProducer()->id, 'return_url' => Yii::$app->urlManagerProducer->createAbsoluteUrl(['order/order', 'slug_producer' => $this->context->getProducer()->slug])]) ?>' |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
@@ -242,10 +243,19 @@ $producer = GlobalParam::getCurrentProducer() ; |
|
|
|
<input v-model="pointsSaleCodes[pointSale.id]" type="password" placeholder="Code" class="form-control input-code" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<button class="btn btn-primary" @click="pointSaleClick" :data-code="pointSale.code.length > 0" :data-id-point-sale="pointSale.id"> |
|
|
|
<span class="glyphicon glyphicon-map-marker"></span> |
|
|
|
Choisir |
|
|
|
</button> |
|
|
|
|
|
|
|
<div v-if="!user && producer.credit == 1 && pointSale.credit == 1 && pointSale.credit_functioning == 'mandatory'"> |
|
|
|
<a :href="urlLogin" class="btn btn-default"> |
|
|
|
<span class="glyphicon glyphicon-log-in"></span> |
|
|
|
Connexion obligatoire |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<button class="btn btn-primary" @click="pointSaleClick" :data-code="pointSale.code.length > 0" :data-id-point-sale="pointSale.id"> |
|
|
|
<span class="glyphicon glyphicon-map-marker"></span> |
|
|
|
Choisir |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</td> |
|
|
|
</tr> |