Commit a5a4487e7a2d795f426516b97d2d1070af9d0b38

Authored by Yarik
2 parents 43cb22d0 be900c94

Merge remote-tracking branch 'origin/master'

console/migrations/m161227_163047_alter_columns.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\db\Migration;
  4 +
  5 +class m161227_163047_alter_columns extends Migration
  6 +{
  7 + public function up()
  8 + {
  9 + $this->alterColumn('intellectual_property', 'registration_date', $this->string(255));
  10 + $this->alterColumn('intellectual_property', 'creation_date', $this->string(255));
  11 + }
  12 +
  13 + public function down()
  14 + {
  15 + }
  16 +}
frontend/views/cabinet/sales.php
@@ -136,7 +136,19 @@ @@ -136,7 +136,19 @@
136 </div> 136 </div>
137 137
138 </div> 138 </div>
139 - 139 +
  140 + <div class="btn-submit-blue">
  141 + <?php echo Html::button(
  142 + 'Добавить',
  143 + [
  144 + 'type' => 'button',
  145 + 'class' => 'add-role-button',
  146 + 'data-toggle' => 'modal',
  147 + 'data-target' => '#add-composition-modal',
  148 + ]
  149 + ) ?>
  150 + </div>
  151 +
140 <div class="style wrapp-tabs-table"> 152 <div class="style wrapp-tabs-table">
141 <div class="style table-wrapp-2"> 153 <div class="style table-wrapp-2">
142 <div class="hidden-tables-oiv active-tab-oiv"> 154 <div class="hidden-tables-oiv active-tab-oiv">
@@ -326,3 +338,70 @@ @@ -326,3 +338,70 @@
326 ?> 338 ?>
327 </div> 339 </div>
328 </div> 340 </div>
  341 +
  342 +<!-- Modal -->
  343 +<div class="modal fade" id="add-composition-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  344 + <div class="modal-dialog" role="document">
  345 + <div class="modal-content">
  346 + <div class="modal-header">
  347 + <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  348 + <span aria-hidden="true">&times;</span></button>
  349 + <h4 class="modal-title" id="myModalLabel">Додати твір</h4>
  350 + </div>
  351 + <?php
  352 + $form = ActiveForm::begin(
  353 + [
  354 + 'action' => 'add-int-prop',
  355 + 'id' => 'add-int-prop-form',
  356 + ]
  357 + );
  358 + $addIntProp = new IntellectualProperty();
  359 + ?>
  360 + <div class="modal-body forms-cabinet forms-2">
  361 +
  362 +
  363 +
  364 + <?php
  365 + echo $form->field($addIntProp, 'title');
  366 + ?>
  367 +
  368 + <?php
  369 + echo $form->field($addIntProp, 'registration_date')->textInput([
  370 + 'class' => '_datepicker form-control',
  371 + ]);
  372 + ?>
  373 +
  374 + <?php
  375 + echo $form->field($addIntProp, 'genre');
  376 + ?>
  377 +
  378 + <?php
  379 + echo $form->field($addIntProp, 'author_role');
  380 + ?>
  381 +
  382 + <?php
  383 + echo $form->field($addIntProp, 'percent');
  384 + ?>
  385 +
  386 + <?php
  387 + echo $form->field($addIntProp, 'calculated');
  388 + ?>
  389 +
  390 + <?php
  391 + echo $form->field($addIntProp, 'play_count');
  392 + ?>
  393 +
  394 + </div>
  395 + <div class="modal-footer btn-submit-blue">
  396 + <?php
  397 + echo Html::submitButton(
  398 + 'OK'
  399 + );
  400 + ?>
  401 + </div>
  402 + <?php
  403 + $form::end();
  404 + ?>
  405 + </div>
  406 + </div>
  407 +</div>
329 \ No newline at end of file 408 \ No newline at end of file
frontend/web/css/cabinet-style.css
@@ -767,6 +767,11 @@ ul.list-cab li.active-li ul li.active-li-drop span.act_bg { @@ -767,6 +767,11 @@ ul.list-cab li.active-li ul li.active-li-drop span.act_bg {
767 float: left; 767 float: left;
768 margin-bottom: 20px; 768 margin-bottom: 20px;
769 } 769 }
  770 +.cab_content_list-dropdown .add-role-button {
  771 + float: left;
  772 + margin-left: 20px;
  773 + margin-top: 30px;
  774 +}
770 775
771 @media (max-width: 1566px) { 776 @media (max-width: 1566px) {
772 /*.content-forms {padding-right: 20px;}*/ 777 /*.content-forms {padding-right: 20px;}*/