diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755
diff --git a/LICENSE b/LICENSE
old mode 100644
new mode 100755
diff --git a/README.md b/README.md
old mode 100644
new mode 100755
diff --git a/app/.htaccess b/app/.htaccess
old mode 100644
new mode 100755
diff --git a/app/AppCache.php b/app/AppCache.php
old mode 100644
new mode 100755
diff --git a/app/AppKernel.php b/app/AppKernel.php
old mode 100644
new mode 100755
diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/default/index.html.twig b/app/Resources/views/default/index.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/employee/edit.html.twig b/app/Resources/views/employee/edit.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/employee/index.html.twig b/app/Resources/views/employee/index.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/employee/new.html.twig b/app/Resources/views/employee/new.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/employee/show.html.twig b/app/Resources/views/employee/show.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/lecture/edit.html.twig b/app/Resources/views/lecture/edit.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/lecture/index.html.twig b/app/Resources/views/lecture/index.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/lecture/new.html.twig b/app/Resources/views/lecture/new.html.twig
old mode 100644
new mode 100755
index 2259504..9cf792b
--- a/app/Resources/views/lecture/new.html.twig
+++ b/app/Resources/views/lecture/new.html.twig
@@ -5,9 +5,10 @@
{{ form_start(form) }}
{{ form_widget(form) }}
+
{{ form_end(form) }}
-
+
-
Назад к списку
diff --git a/app/Resources/views/lecture/show.html.twig b/app/Resources/views/lecture/show.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/student/edit.html.twig b/app/Resources/views/student/edit.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/student/index.html.twig b/app/Resources/views/student/index.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/student/new.html.twig b/app/Resources/views/student/new.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/student/show.html.twig b/app/Resources/views/student/show.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/subject/edit.html.twig b/app/Resources/views/subject/edit.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/subject/index.html.twig b/app/Resources/views/subject/index.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/subject/new.html.twig b/app/Resources/views/subject/new.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/subject/show.html.twig b/app/Resources/views/subject/show.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/university/edit.html.twig b/app/Resources/views/university/edit.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/university/index.html.twig b/app/Resources/views/university/index.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/university/new.html.twig b/app/Resources/views/university/new.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/university/show.html.twig b/app/Resources/views/university/show.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/user/edit.html.twig b/app/Resources/views/user/edit.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/user/index.html.twig b/app/Resources/views/user/index.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/user/new.html.twig b/app/Resources/views/user/new.html.twig
old mode 100644
new mode 100755
diff --git a/app/Resources/views/user/show.html.twig b/app/Resources/views/user/show.html.twig
old mode 100644
new mode 100755
diff --git a/app/config/config.yml b/app/config/config.yml
old mode 100644
new mode 100755
diff --git a/app/config/config_dev.yml b/app/config/config_dev.yml
old mode 100644
new mode 100755
diff --git a/app/config/config_prod.yml b/app/config/config_prod.yml
old mode 100644
new mode 100755
diff --git a/app/config/config_test.yml b/app/config/config_test.yml
old mode 100644
new mode 100755
diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist
old mode 100644
new mode 100755
diff --git a/app/config/routing.yml b/app/config/routing.yml
old mode 100644
new mode 100755
diff --git a/app/config/routing_dev.yml b/app/config/routing_dev.yml
old mode 100644
new mode 100755
diff --git a/app/config/security.yml b/app/config/security.yml
old mode 100644
new mode 100755
diff --git a/app/config/services.yml b/app/config/services.yml
old mode 100644
new mode 100755
diff --git a/composer.json b/composer.json
old mode 100644
new mode 100755
diff --git a/composer.lock b/composer.lock
old mode 100644
new mode 100755
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
old mode 100644
new mode 100755
diff --git a/src/.htaccess b/src/.htaccess
old mode 100644
new mode 100755
diff --git a/src/AppBundle/AppBundle.php b/src/AppBundle/AppBundle.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Controller/DefaultController.php b/src/AppBundle/Controller/DefaultController.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Controller/EmployeeController.php b/src/AppBundle/Controller/EmployeeController.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Controller/LectureController.php b/src/AppBundle/Controller/LectureController.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Controller/StudentController.php b/src/AppBundle/Controller/StudentController.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Controller/SubjectController.php b/src/AppBundle/Controller/SubjectController.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Controller/UniversityController.php b/src/AppBundle/Controller/UniversityController.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Entity/Employee.php b/src/AppBundle/Entity/Employee.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Entity/Lecture.php b/src/AppBundle/Entity/Lecture.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Entity/Student.php b/src/AppBundle/Entity/Student.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Entity/Subject.php b/src/AppBundle/Entity/Subject.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Entity/University.php b/src/AppBundle/Entity/University.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Entity/User.php b/src/AppBundle/Entity/User.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Form/EmployeeType.php b/src/AppBundle/Form/EmployeeType.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Form/LectureType.php b/src/AppBundle/Form/LectureType.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Form/StudentType.php b/src/AppBundle/Form/StudentType.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Form/SubjectType.php b/src/AppBundle/Form/SubjectType.php
old mode 100644
new mode 100755
index e5f955d..0545c59
--- a/src/AppBundle/Form/SubjectType.php
+++ b/src/AppBundle/Form/SubjectType.php
@@ -8,6 +8,8 @@
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
+
+
class SubjectType extends AbstractType
{
/**
@@ -20,7 +22,10 @@ public function buildForm(FormBuilderInterface $builder, array $options)
->add('countHours', null, ['label' => 'Количество часов: '])
->add('students', null, ['label' => 'Студент: '])
->add('lecturers', null, ['label' => ' Лектор: '])
- ->add('lectures')
+ ->add('lectures', CollectionType::class, array(
+ 'entry_type' => LectureType::class,
+ 'entry_options' => array('label' => false),
+ ))
;
}
diff --git a/src/AppBundle/Form/UniversityType.php b/src/AppBundle/Form/UniversityType.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Form/UserType.php b/src/AppBundle/Form/UserType.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Tests/Controller/EmployeeControllerTest.php b/src/AppBundle/Tests/Controller/EmployeeControllerTest.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Tests/Controller/LectureControllerTest.php b/src/AppBundle/Tests/Controller/LectureControllerTest.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Tests/Controller/StudentControllerTest.php b/src/AppBundle/Tests/Controller/StudentControllerTest.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Tests/Controller/SubjectControllerTest.php b/src/AppBundle/Tests/Controller/SubjectControllerTest.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Tests/Controller/UniversityControllerTest.php b/src/AppBundle/Tests/Controller/UniversityControllerTest.php
old mode 100644
new mode 100755
diff --git a/src/AppBundle/Tests/Controller/UserControllerTest.php b/src/AppBundle/Tests/Controller/UserControllerTest.php
old mode 100644
new mode 100755
diff --git a/tests/AppBundle/Controller/DefaultControllerTest.php b/tests/AppBundle/Controller/DefaultControllerTest.php
old mode 100644
new mode 100755
diff --git a/var/SymfonyRequirements.php b/var/SymfonyRequirements.php
old mode 100644
new mode 100755
diff --git a/var/cache/.gitkeep b/var/cache/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/var/logs/.gitkeep b/var/logs/.gitkeep
old mode 100644
new mode 100755
diff --git a/var/sessions/.gitkeep b/var/sessions/.gitkeep
old mode 100644
new mode 100755
diff --git a/web/.htaccess b/web/.htaccess
old mode 100644
new mode 100755
diff --git a/web/app.php b/web/app.php
old mode 100644
new mode 100755
diff --git a/web/app_dev.php b/web/app_dev.php
old mode 100644
new mode 100755
diff --git a/web/apple-touch-icon.png b/web/apple-touch-icon.png
old mode 100644
new mode 100755
diff --git a/web/config.php b/web/config.php
old mode 100644
new mode 100755
diff --git a/web/favicon.ico b/web/favicon.ico
old mode 100644
new mode 100755
diff --git a/web/robots.txt b/web/robots.txt
old mode 100644
new mode 100755