diff --git a/builder.php b/builder.php index 59ba897505..2b2ebb74a7 100755 --- a/builder.php +++ b/builder.php @@ -96,8 +96,6 @@ $finder ->name('.svn') ->name('.git') ->name('flash') - ->name('angular-mocks') - ->name('angular-scenario') ->name('qunit') ->name('features') ->name('chai') diff --git a/component.json b/component.json index 01f43b5742..00b2f94088 100644 --- a/component.json +++ b/component.json @@ -5,10 +5,6 @@ "bootstrap": "~2.2.2", "jquery": "~1.8.3", "font-awesome": "~3.0.2", - "angular": "~1.0.5", - "angular-mocks": "~1.0.5", - "angular-scenario": "~1.0.5", - "angular-ui": "~0.4.0", "underscore": "~1.4.4", "modernizr": "~2.6.2", "normalize-css" : "~2.1.0", diff --git a/lib/conf.d/minifyGroupsConfig.php b/lib/conf.d/minifyGroupsConfig.php index a7dd2972f2..bcf94085af 100644 --- a/lib/conf.d/minifyGroupsConfig.php +++ b/lib/conf.d/minifyGroupsConfig.php @@ -21,9 +21,7 @@ $groups = array( '//assets/angular/angular.js', '//assets/angular-ui/build/angular-ui.js', '//assets/bootstrap-switch/static/js/bootstrapSwitch.js', - '//assets/underscore/underscore.js', - '//skins/login/js/main.js', - '//skins/login/js/app.js', + '//assets/underscore/underscore.js' ), 'client' => array( '//include/jslibs/swfobject/swfobject.js' diff --git a/templates/web/login/common/form_div_layout.html.twig b/templates/web/login/common/form_div_layout.html.twig index 15b63ee171..ddbbbe5eef 100644 --- a/templates/web/login/common/form_div_layout.html.twig +++ b/templates/web/login/common/form_div_layout.html.twig @@ -13,7 +13,7 @@ {% block form_widget_simple %} {% spaceless %} {% set type = type|default('text') %} - + {% endspaceless %} {% endblock form_widget_simple %} diff --git a/templates/web/login/common/macros.html.twig b/templates/web/login/common/macros.html.twig index 32f9f9ca65..340c111328 100644 --- a/templates/web/login/common/macros.html.twig +++ b/templates/web/login/common/macros.html.twig @@ -1,23 +1,14 @@ {% macro fieldInput(field, form_name, icon_name, custom_attributes, validation_messages) %} {% set input_name = field.vars.name %} - {% set validation_messages = { - "required_message" : "This field is required" |trans, - "is_valid_message" : "This field is not valid"|trans, - "validate_message" : "This field is not valid"|trans - }|merge(validation_messages|default({})) - %} - {% set attributes = custom_attributes|default({})|merge({ 'class': app['browser'].getBrowser() == constant('Browser::BROWSER_IE') and app['browser'].getVersion() <= 8 ? '' : 'input-block-level', - 'ng-model' : input_name|camelize, - 'force-model-update' : '' }) %} {{ form_label(field) }} - +
@@ -27,23 +18,7 @@
- - {% if field.vars.required %} -
- {{ _self.fieldError(validation_messages.required_message) }} -
- {% endif %} - -
- {{ _self.fieldError(validation_messages.is_valid_message) }} -
- - {% if attributes['ui-validate'] is defined %} -
- {{ _self.fieldError(validation_messages.validate_message) }} -
- {% endif %} - +
{{ form_errors(field) }} {% endmacro %} diff --git a/templates/web/login/index.html.twig b/templates/web/login/index.html.twig index 87db17a819..74f245db6a 100644 --- a/templates/web/login/index.html.twig +++ b/templates/web/login/index.html.twig @@ -1,9 +1,3 @@ -{# - variable "feed" to get public feeds - variable "recaptcha_display" should be setted Tell whether the recaptch should be displayed - variable "guest_allowed" phrasea::guest_allowed($app) - #} - {% extends "login/layout/sidebar-layout.html.twig" %} {% import "common/macros.html.twig" as macro %} @@ -22,6 +16,11 @@ {% endfor %} {% endblock %} +{% block header_javascript %} + {{ parent() }} + {% include "login/common/templates.html.twig" %} +{% endblock header_javascript %} + {% block sidebar %}