add frontend ticket translations
This commit is contained in:
@@ -31,11 +31,13 @@ use kartik\widgets\DatePicker;
|
||||
|
||||
<?php $form = ActiveForm::begin(); ?>
|
||||
|
||||
<?= Html::activeHiddenInput($model, 'cart')?>
|
||||
|
||||
<?= $form->field($model, 'id_ticket_type')->dropDownList($ticketTypeOptions) ?>
|
||||
|
||||
<?= $form->field($model, 'id_account')->dropDownList($accountOptions) ?>
|
||||
|
||||
<?= $form->field($model, 'id_discount')->dropDownList($discountOptions) ?>
|
||||
<?php //echo $form->field($model, 'id_discount')->dropDownList($discountOptions) ?>
|
||||
|
||||
<?= $form->field($model, 'start')->widget(DatePicker::classname(), [
|
||||
'pluginOptions' => [
|
||||
@@ -59,7 +61,8 @@ use kartik\widgets\DatePicker;
|
||||
<?= $form->field($model, 'comment')->textarea(['maxlength' => true]) ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton($model->isNewRecord ? Yii::t('common/ticket', 'Create') : Yii::t('common/ticket', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
|
||||
<?= Html::submitButton( Yii::t('common/ticket', 'Create') , [ 'onclick' => ' $(\'#ticketcreate-cart\').val(\'\');','class' => 'btn btn-success' ]) ?>
|
||||
<?= Html::submitButton( Yii::t('common/ticket', 'Create and add to cart') , [ 'onclick' => ' $(\'#ticketcreate-cart\').val(\'add\');', 'class' => 'btn btn-success' ]) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
|
||||
@@ -5,25 +5,27 @@ use frontend\components\ReceptionMenuWidget;
|
||||
use frontend\components\ReceptionCardNumberWidget;
|
||||
use frontend\assets\TicketSellAsset;
|
||||
use common\models\TicketType;
|
||||
use yii\helpers\Url;
|
||||
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model common\models\Ticket */
|
||||
/* @var $receptionForm frotned\models\ReceptionForm */
|
||||
|
||||
$card = $receptionForm->card;
|
||||
$customer = $receptionForm->customer;
|
||||
|
||||
TicketSellAsset::register($this);
|
||||
|
||||
$this->title = Yii::t('common/ticket', 'Create Ticket');
|
||||
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/ticket', 'Tickets'), 'url' => ['index']];
|
||||
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/ticket', 'Tickets'), 'url' => ['index' , 'number' => $card->number ]];
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
|
||||
$card = $receptionForm->card;
|
||||
$customer = $receptionForm->customer;
|
||||
|
||||
$options = [];
|
||||
|
||||
// $options['lookup_product_url'] = Url::toRoute(['product/lookup']);
|
||||
// $options['clear_list_url'] = Url::toRoute(['product/clear-list']);
|
||||
$options['clear_cart_url'] = Url::toRoute(['product/clear-list']);
|
||||
$options['types'] = TicketType::modelsToArray($ticketTypes);
|
||||
$options['transfer_list'] = $userTransfers;
|
||||
|
||||
@@ -55,8 +57,9 @@ $this->registerJs ( 'new TicketSell( '. json_encode($options).');' );
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h1><?php echo Yii::t('frontend/tciket', 'Cart')?></h1>
|
||||
<h1><?php echo Yii::t('frontend/ticket', 'Cart')?></h1>
|
||||
<?php echo $this->render( "//common/_transfer_list" ) ?>
|
||||
<?php echo Html::a(Yii::t('frontend/product', "Paid"),null,[ 'id' => 'btn_paid', 'class' => 'btn btn-primary' ]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user