diff --git a/.gitignore b/.gitignore
index 8a0c8f1..89d1fe5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
/app/config/parameters.yml
-/build/
+/build/dist/
/phpunit.xml
/var/*
!/var/cache
@@ -16,6 +16,7 @@
/web/bundles/
/web/js/
/web/css/
+/web/images/
*~
/lib
.idea
diff --git a/Gruntfile.js b/Gruntfile.js
index d29e7cd..757cab6 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -17,7 +17,8 @@ module.exports = function (grunt) {
src: [
'./vendor/bower/jquery/dist/jquery.js',
'./vendor/bower/uikit/dist/js/uikit.js',
- './vendor/bower/uikit/dist/js/uikit-icons.js'
+ './vendor/bower/uikit/dist/js/uikit-icons.js',
+ './vendor/bower/select2/dist/js/select2.full.min.js'
],
dest: 'build/dist/js/vendor.min.js'
}
@@ -97,6 +98,18 @@ module.exports = function (grunt) {
cwd: './vendor/bower/uikit/dist/images',
src: ['**'],
dest: 'web/images'
+ },
+ {
+ expand:true,
+ cwd: './vendor/bower/select2/dist/css',
+ src: ['select2.min.css'],
+ dest: 'web/css'
+ },
+ {
+ expand: true,
+ cwd: 'build/images',
+ src: ['*'],
+ dest: 'web/images'
}
]
}
diff --git a/app/Resources/FOSUserBundle/views/Registration/register.html.twig b/app/Resources/FOSUserBundle/views/Registration/register.html.twig
index 92b6878..460926f 100644
--- a/app/Resources/FOSUserBundle/views/Registration/register.html.twig
+++ b/app/Resources/FOSUserBundle/views/Registration/register.html.twig
@@ -1,5 +1,5 @@
-{% extends "@FOSUser/layout.html.twig" %}
+{% extends "base.html.twig" %}
-{% block fos_user_content %}
+{% block body %}
{% include "@FOSUser/Registration/register_content.html.twig" %}
-{% endblock fos_user_content %}
+{% endblock body %}
diff --git a/app/Resources/FOSUserBundle/views/Registration/register_content.html.twig b/app/Resources/FOSUserBundle/views/Registration/register_content.html.twig
index ecedeb9..c28cb96 100644
--- a/app/Resources/FOSUserBundle/views/Registration/register_content.html.twig
+++ b/app/Resources/FOSUserBundle/views/Registration/register_content.html.twig
@@ -1,8 +1,83 @@
{% trans_default_domain 'FOSUserBundle' %}
-
-{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }}
- {{ form_widget(form) }}
-
-
+
+ {{ form_errors(form) }}
+
+{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register uk-form'}}) }}
+