Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed May 20, 2015
1 parent e693b42 commit b6982e0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion views/ticket/_advanced_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
else
$model->topics = implode(',', array_keys($model->topics));
print $form->field($model, 'topics')->widget(StaticCombo::className(), [
'hasId' => true,
'pluginOptions' => [
'select2Options' => [
'multiple' => true,
Expand All @@ -31,6 +32,7 @@
$model->state = 'opened';
print $form->field($model, 'state')->widget(StaticCombo::classname(), [
'data' => $state_data,
'hasId' => true
]); ?>
</div>
<div class="col-md-6">
Expand All @@ -40,13 +42,14 @@
$model->priority = 'medium';
print $form->field($model, 'priority')->widget(StaticCombo::classname(), [
'data' => $priority_data,
'hasId' => true
]); ?>
</div>
</div>

<!-- Responsible -->
<?= $form->field($model, 'responsible_id')->widget(ClientCombo::classname(), [
'clientType' => 'manager'
// 'clientType' => 'manager'
]); ?>

<?php if ($model->scenario == 'insert') : ?>
Expand All @@ -59,8 +62,10 @@
],
]); ?>
<?php else : ?>
<?php \yii\helpers\VarDumper::dump(implode(',', array_keys($model->watchers)), 10, true); ?>
<?= $form->field($model, 'watchers')->widget(ClientCombo::classname(), [
// 'clientType' => 'manager',
'hasId' => true,
'inputOptions' => [
'value' => implode(',', array_keys($model->watchers)),
],
Expand Down
2 changes: 1 addition & 1 deletion views/ticket/_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</div>
<?= $form->field($model, 'file[]')->widget(\kartik\widgets\FileInput::className(), [
'options' => [
'accept' => 'image/*',
// 'accept' => 'image/*',
'multiple' => true
],
'pluginOptions' => [
Expand Down
4 changes: 3 additions & 1 deletion views/ticket/_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@
</div>
<?= $form->field($model, 'state')->widget(StaticCombo::classname(), [
'data' => $state_data,
'hasId' => true,
]); ?>
</div>

<div class="col-md-4">
<?= $form->field($model, 'author_id')->widget(ClientCombo::classname()); ?>

<?= $form->field($model, 'responsible_id')->widget(ClientCombo::classname(), [
'clientType' => 'manager',
// 'clientType' => 'manager',
// 'pluginOptions' => [
// 'select2Options' => [
// 'multiple' => true,
Expand All @@ -74,6 +75,7 @@

<?= $form->field($model, 'topics')->widget(StaticCombo::classname(), [
'data' => $topic_data,
'hasId' => true,
'pluginOptions' => [
'select2Options' => [
'multiple' => true,
Expand Down

0 comments on commit b6982e0

Please sign in to comment.