diff options
author | Stefan Giehl <stefan@piwik.org> | 2016-09-26 22:58:17 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-09-26 22:58:17 +0300 |
commit | 3b09e9abc1f255a3d14c7db98b49894bbab02096 (patch) | |
tree | 0c32321cd5140509c4671dbde8170d091beeec3d /plugins/Login/templates | |
parent | 5248f6015199a3ddf50a356019589deeeed1a94b (diff) |
Materialize login form errors (#10565)
* fixes #10563 - materialize login form errors
* updates expected screenshots
* cleanup css
Diffstat (limited to 'plugins/Login/templates')
-rw-r--r-- | plugins/Login/templates/_formErrors.twig | 4 | ||||
-rw-r--r-- | plugins/Login/templates/login.twig | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/Login/templates/_formErrors.twig b/plugins/Login/templates/_formErrors.twig index 2eaf82c2ab..acfdf1e583 100644 --- a/plugins/Login/templates/_formErrors.twig +++ b/plugins/Login/templates/_formErrors.twig @@ -1,6 +1,8 @@ {% if formErrors is defined and formErrors is not empty %} - <div class="message_error"> + <div piwik-notification + noclear="true" + context="error"> {% for data in formErrors %} <strong>{{ 'General_Error'|translate }}</strong>: {{ data|raw }} <br/> diff --git a/plugins/Login/templates/login.twig b/plugins/Login/templates/login.twig index 27f14d420e..6a124465a1 100644 --- a/plugins/Login/templates/login.twig +++ b/plugins/Login/templates/login.twig @@ -72,7 +72,9 @@ {{ include('@Login/_formErrors.twig', {formErrors: form_data.errors } ) }} {% if AccessErrorString %} - <div class="message_error"> + <div piwik-notification + noclear="true" + context="error"> <strong>{{ 'General_Error'|translate }}</strong>: {{ AccessErrorString|raw }}<br/> </div> {% endif %} |