|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->setTitle('Commander') ; |
|
|
$this->setTitle('Commander') ; |
|
|
|
|
|
|
|
|
$producer = GlobalParam::getCurrentProducer() ; |
|
|
|
|
|
|
|
|
$producer = $this->context->getProducer(); |
|
|
|
|
|
|
|
|
?> |
|
|
?> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
var appInitValues = { |
|
|
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> |
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input v-model="pointsSaleCodes[pointSale.id]" type="password" placeholder="Code" class="form-control input-code" /> |
|
|
<input v-model="pointsSaleCodes[pointSale.id]" type="password" placeholder="Code" class="form-control input-code" /> |
|
|
</div> |
|
|
</div> |
|
|
</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> |
|
|
</template> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |