diff --git a/app/Resources/views/pagelayout.html.twig b/app/Resources/views/pagelayout.html.twig
index 74744508..27b78f68 100644
--- a/app/Resources/views/pagelayout.html.twig
+++ b/app/Resources/views/pagelayout.html.twig
@@ -4,7 +4,10 @@
{% if content is defined and title is not defined %}
{% set title = ez_content_name(content) %}
{% endif %}
-
{{ title|default('Home')|trans }} - {{ 'eZ Platform Demo' }}
+
+ {% block page_head %}
+ {{ title|default('Home')|trans }} - eZ Platform Demo
+ {% endblock %}
diff --git a/app/Resources/views/pagelayout_header.html.twig b/app/Resources/views/pagelayout_header.html.twig
index 1e21778d..2b60a643 100644
--- a/app/Resources/views/pagelayout_header.html.twig
+++ b/app/Resources/views/pagelayout_header.html.twig
@@ -11,6 +11,10 @@
+ {% block user_menu %}
+ {% include 'pagelayout_user_menu.html.twig' %}
+ {% endblock %}
+
diff --git a/app/Resources/views/pagelayout_styles.html.twig b/app/Resources/views/pagelayout_styles.html.twig
index 2ef32535..7431dd48 100644
--- a/app/Resources/views/pagelayout_styles.html.twig
+++ b/app/Resources/views/pagelayout_styles.html.twig
@@ -12,3 +12,4 @@
+
diff --git a/app/Resources/views/pagelayout_user_menu.html.twig b/app/Resources/views/pagelayout_user_menu.html.twig
new file mode 100644
index 00000000..87bea12e
--- /dev/null
+++ b/app/Resources/views/pagelayout_user_menu.html.twig
@@ -0,0 +1,33 @@
+
diff --git a/app/Resources/views/user/registration_confirmation.html.twig b/app/Resources/views/user/registration_confirmation.html.twig
new file mode 100644
index 00000000..3c9fa760
--- /dev/null
+++ b/app/Resources/views/user/registration_confirmation.html.twig
@@ -0,0 +1,25 @@
+{% extends pagelayout %}
+
+{% block page_head %}
+ {% set title = 'Registerstration complete'|trans %}
+
+ {{ parent() }}
+{% endblock %}
+
+{% block content %}
+
+{% endblock %}
diff --git a/app/Resources/views/user/registration_content_form.html.twig b/app/Resources/views/user/registration_content_form.html.twig
new file mode 100644
index 00000000..5ad278e7
--- /dev/null
+++ b/app/Resources/views/user/registration_content_form.html.twig
@@ -0,0 +1,47 @@
+{% macro display_form(form) %}
+ {{ form_start(form) }}
+
+ {% for fieldForm in form.fieldsData %}
+ {% set fieldIdentifier = fieldForm.vars.data.fieldDefinition.identifier %}
+
+ {% if fieldIdentifier == 'first_name' or fieldIdentifier == 'last_name' %}
+ {% if fieldIdentifier == 'first_name' %}
+
+ {% endif %}
+
+
+ {{ fieldForm.children.value.vars.label }}:
+
+ {{ form_errors(fieldForm.value) }}
+ {{ form_widget(fieldForm.value, {
+ 'contentData': form.vars.data
+ }) }}
+
+ {% if fieldIdentifier == 'last_name' %}
+
+ {% endif %}
+ {% endif %}
+
+ {% if fieldIdentifier == 'user_account' %}
+
+
+ {{ form_widget(fieldForm.value, {
+ 'contentData': form.vars.data
+ }) }}
+
+
+ {% endif %}
+
+ {%- do fieldForm.setRendered() -%}
+ {% endfor %}
+
+
+
+ {{ form_widget(form.publish, {'attr': {
+ 'class': 'btn btn-block btn-primary'
+ }}) }}
+
+
+
+ {{ form_end(form) }}
+{% endmacro %}
diff --git a/app/Resources/views/user/registration_form.html.twig b/app/Resources/views/user/registration_form.html.twig
new file mode 100644
index 00000000..db4611b3
--- /dev/null
+++ b/app/Resources/views/user/registration_form.html.twig
@@ -0,0 +1,20 @@
+{% extends pagelayout %}
+
+{% block page_head %}
+ {% set title = 'Register user'|trans %}
+
+ {{ parent() }}
+{% endblock %}
+
+{% block content %}
+ {% import 'user/registration_content_form.html.twig' as registrationForm %}
+
+
+{% endblock %}
diff --git a/app/config/views.yml b/app/config/views.yml
index 48665d4f..36332cd4 100644
--- a/app/config/views.yml
+++ b/app/config/views.yml
@@ -5,6 +5,11 @@ ezpublish:
user:
layout: pagelayout.html.twig
+ user_registration:
+ templates:
+ form: user\registration_form.html.twig
+ confirmation: user\registration_confirmation.html.twig
+
content_view:
full:
home_page:
diff --git a/src/AppBundle/Resources/installer/sql/app_data.sql b/src/AppBundle/Resources/installer/sql/app_data.sql
index 73a546ad..54286908 100644
--- a/src/AppBundle/Resources/installer/sql/app_data.sql
+++ b/src/AppBundle/Resources/installer/sql/app_data.sql
@@ -2517,6 +2517,7 @@ INSERT INTO `ezpolicy` VALUES ('pdf',329,'content',0,1);
INSERT INTO `ezpolicy` VALUES ('*',330,'ezoe',0,3);
INSERT INTO `ezpolicy` VALUES ('login',331,'user',0,1);
INSERT INTO `ezpolicy` VALUES ('read',332,'content',0,4);
+INSERT INTO `ezpolicy` VALUES ('register',333,'user',0,1);
/*!40000 ALTER TABLE `ezpolicy` ENABLE KEYS */;
UNLOCK TABLES;
diff --git a/web/assets/css/style.css b/web/assets/css/style.css
index 5da5dfac..e27b1f67 100644
--- a/web/assets/css/style.css
+++ b/web/assets/css/style.css
@@ -74,6 +74,10 @@ nav:hover {
margin-top: -15px;
}
+.navbar-nav {
+ margin-right: 50px;
+}
+
.navbar-brand {
margin-top: 8px;
}
@@ -537,3 +541,115 @@ ul {
.blog-post-body p {
margin-bottom: 20px;
}
+
+/* user menu */
+
+*:focus {
+ outline: none;
+}
+
+.user-menu {
+ float: right;
+}
+
+.user-menu .avatar,
+.user-menu .caret {
+ color: #777;
+}
+
+.user-menu button {
+ border: none;
+ background: #f8f8f8;
+ padding: 0;
+}
+
+.user-menu .dropdown-menu {
+ margin: 0;
+ border-radius: 0;
+}
+
+.navbar-brand-scroll .user-menu {
+ margin-top: 7px;
+ height: 50px;
+}
+
+.navbar-brand-scroll .user-menu button {
+ height: 50px;
+}
+
+/* registration and login forms */
+
+.user-form {
+ background: #dedede;
+ border-radius: 4px;
+ margin-top: 120px;
+ margin-bottom: 50px;
+ padding: 10px 30px;
+}
+
+.user-form input {
+ width: 100%;
+ border: 1px solid #ccc;
+ margin-bottom: 10px;
+ padding: 4px 8px;
+ font-family: "Maven Pro", sans-serif;
+ font-size: 17px;
+}
+
+.user-form h2 {
+ margin-bottom: 5px;
+ font-size: 22px;
+}
+
+.legend {
+ color: #a3a3a3;
+ margin-bottom: 25px;
+ font-size: 14px;
+}
+
+.user-form label {
+ color: #000;
+ font-weight: normal;
+ font-family: "Maven Pro", sans-serif;
+ font-size: 17px;
+ margin-bottom: 0;
+}
+
+.user-form label:after {
+ content: '*';
+}
+
+.user-form button {
+ margin-top: 30px;
+ margin-bottom: 30px;
+}
+
+.user-form-confirmation {
+ background: #dedede;
+ border-radius: 4px;
+ margin-top: 120px;
+ margin-bottom: 50px;
+ padding: 0;
+}
+
+.user-form-confirmation h2 {
+ font-family: "Maven Pro", sans-serif;
+ border-radius: 5px 5px 0 0;
+ padding: 20px 0;
+ text-align: center;
+ margin-top: 0;
+ background: #f05a22;
+ color: #fff;
+ font-size: 20px;
+}
+
+.user-form-confirmation .confirmation-label {
+ text-align: center;
+ margin: 30px 0;
+ font-family: "Maven Pro", sans-serif;
+ font-size: 17px;
+}
+
+.user-form-confirmation button {
+ margin-bottom: 30px;
+}