3bc9af21
Yarik
Layout
|
1
2
|
<?php
|
30e3d244
Yarik
Forms
|
3
4
5
6
|
/**
* @var UserData $userData
* @var UserPassport $userPassport
* @var yii\web\View $this
|
fb0f9630
Alexey Boroda
-Greed ready
|
7
|
* @var IntellectualProperty[] $table
|
30e3d244
Yarik
Forms
|
8
|
*/
|
3bc9af21
Yarik
Layout
|
9
|
|
30e3d244
Yarik
Forms
|
10
11
|
use frontend\models\UserData;
use frontend\models\UserPassport;
|
fb900d40
Alexey Boroda
-First commit
|
12
|
use frontend\models\IntellectualProperty;
|
3bc9af21
Yarik
Layout
|
13
|
use yii\helpers\Html;
|
fb900d40
Alexey Boroda
-First commit
|
14
|
use yii\widgets\ActiveForm;
|
fb0f9630
Alexey Boroda
-Greed ready
|
15
|
use yii\widgets\Pjax;
|
3bc9af21
Yarik
Layout
|
16
|
|
3bc9af21
Yarik
Layout
|
17
18
|
$this->title = 'My Yii Application';
?>
|
7f0970a7
Yarik
Layout
|
19
|
<div class="style cab_content_list active-cab">
|
3bc9af21
Yarik
Layout
|
20
|
<?php
|
7f0970a7
Yarik
Layout
|
21
22
23
24
25
26
27
28
|
echo $this->render(
'_personal_form',
[
'userData' => $userData,
]
);
echo $this->render(
'_passport_form',
|
3bc9af21
Yarik
Layout
|
29
|
[
|
7f0970a7
Yarik
Layout
|
30
|
'userPassport' => $userPassport,
|
3bc9af21
Yarik
Layout
|
31
|
]
|
7f0970a7
Yarik
Layout
|
32
|
);
|
3bc9af21
Yarik
Layout
|
33
|
?>
|
7f0970a7
Yarik
Layout
|
34
35
|
<div class="style table-forms tables-1">
|
fb900d40
Alexey Boroda
-First commit
|
36
37
38
39
40
41
42
43
44
45
46
|
<div class="title_forms">Список творів</div>
<div class="btn-submit-blue">
<?php echo Html::button(
'Добавить',
[
'type' => 'button',
'class' => 'add-button',
'data-toggle' => 'modal',
'data-target' => '#add-composition-modal',
]
) ?>
|
3bc9af21
Yarik
Layout
|
47
|
</div>
|
fb900d40
Alexey Boroda
-First commit
|
48
|
<div class="style table-forms-wrapp">
|
fb0f9630
Alexey Boroda
-Greed ready
|
49
50
51
52
53
|
<?php
Pjax::begin([
'id' => 'int-prop-greed',
]);
?>
|
7f0970a7
Yarik
Layout
|
54
55
56
57
58
59
|
<table class="table-1" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>№<br/>п/п</td>
<td>Назва</td>
<td>Дата реєстрації</td>
<td>Жанр</td>
|
3fd7d43c
Yarik
Creative roles
|
60
61
|
<td>Роль</td>
<td>Процент долі</td>
|
7f0970a7
Yarik
Layout
|
62
63
64
|
<td>Нараховано</td>
<td>К-ть відтворень</td>
</tr>
|
fb0f9630
Alexey Boroda
-Greed ready
|
65
66
67
68
|
<?php
$i = 1;
foreach ($table as $row) {
?>
|
7f0970a7
Yarik
Layout
|
69
|
<tr>
|
fb0f9630
Alexey Boroda
-Greed ready
|
70
|
<td><?= $i; ?></td>
|
9e523ea9
Alexey Boroda
-Update ready
|
71
|
<td><?php echo Html::a($row->title, ['sales', 'id' => $row->id])?></td>
|
fb0f9630
Alexey Boroda
-Greed ready
|
72
73
74
|
<td><?= $row->registration_date ?></td>
<td><?= $row->genre ?></td>
<td><?= $row->author_role ?></td>
|
51ca23d7
Yarik
Migration
|
75
76
77
|
<td></td>
<td></td>
<td></td>
|
7f0970a7
Yarik
Layout
|
78
|
</tr>
|
fb0f9630
Alexey Boroda
-Greed ready
|
79
80
81
82
|
<?php
$i++;
}
?>
|
7f0970a7
Yarik
Layout
|
83
|
</table>
|
fb0f9630
Alexey Boroda
-Greed ready
|
84
85
86
|
<?php
Pjax::end();
?>
|
3bc9af21
Yarik
Layout
|
87
|
</div>
|
fb900d40
Alexey Boroda
-First commit
|
88
|
</div>
|
7f0970a7
Yarik
Layout
|
89
|
</div>
|
fb900d40
Alexey Boroda
-First commit
|
90
91
|
<!-- Modal -->
<div class="modal fade" id="add-composition-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
fb900d40
Alexey Boroda
-First commit
|
92
93
94
95
96
97
98
99
100
101
|
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Додати твір</h4>
</div>
<?php
$form = ActiveForm::begin(
[
|
dcfb3d5c
Alexey Boroda
-Form ajax ready
|
102
|
'action' => 'add-int-prop',
|
fb900d40
Alexey Boroda
-First commit
|
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
'id' => 'add-int-prop-form',
]
);
$addIntProp = new IntellectualProperty();
?>
<div class="modal-body forms-cabinet forms-2">
<?php
echo $form->field($addIntProp, 'title');
?>
<?php
|
dcfb3d5c
Alexey Boroda
-Form ajax ready
|
117
118
119
|
echo $form->field($addIntProp, 'registration_date')->textInput([
'class' => '_datepicker form-control',
]);
|
fb900d40
Alexey Boroda
-First commit
|
120
121
122
123
124
125
126
127
128
|
?>
<?php
echo $form->field($addIntProp, 'genre');
?>
<?php
echo $form->field($addIntProp, 'author_role');
?>
|
fb900d40
Alexey Boroda
-First commit
|
129
130
131
132
133
134
135
136
137
138
139
140
|
</div>
<div class="modal-footer btn-submit-blue">
<?php
echo Html::submitButton(
'OK'
);
?>
</div>
<?php
$form::end();
?>
|
fb900d40
Alexey Boroda
-First commit
|
141
|
</div>
|
fb900d40
Alexey Boroda
-First commit
|
142
|
</div>
|
fb900d40
Alexey Boroda
-First commit
|
143
|
</div>
|