From 86bda47156dc7832b499879a020baed55c1a0af8 Mon Sep 17 00:00:00 2001 From: vanzhiganov Date: Mon, 4 Apr 2016 03:08:11 +0300 Subject: [PATCH] update template for flash messaging --- .../templates/default/containers/create.html | 9 ---- .../templates/default/containers/delete.html | 24 +++------ .../default/containers/settings.html | 54 ++++++++----------- SWSCloudCore/templates/default/id/api.html | 10 ---- SWSCloudCore/templates/default/id/edit.html | 7 --- SWSCloudCore/templates/default/id/login.html | 7 --- .../default/id/password_reset_step1.html | 7 --- .../default/id/password_reset_step2.html | 7 --- .../templates/default/id/password_update.html | 7 --- .../templates/default/id/registration.html | 11 ---- 10 files changed, 30 insertions(+), 113 deletions(-) diff --git a/SWSCloudCore/templates/default/containers/create.html b/SWSCloudCore/templates/default/containers/create.html index 26ef8b8..ba85ebe 100644 --- a/SWSCloudCore/templates/default/containers/create.html +++ b/SWSCloudCore/templates/default/containers/create.html @@ -10,15 +10,6 @@
- {% if g.errors['total'] > 0 %} -
-
    - {% for error in g.errors['items'] %} -
  • {{ error }}
  • - {% endfor %} -
-
- {% endif %} {% if datacenters['total'] == 0 %}
diff --git a/SWSCloudCore/templates/default/containers/delete.html b/SWSCloudCore/templates/default/containers/delete.html index e0595fa..a6fd53e 100644 --- a/SWSCloudCore/templates/default/containers/delete.html +++ b/SWSCloudCore/templates/default/containers/delete.html @@ -10,22 +10,14 @@
- {% if g.errors['total'] > 0 %} -
-
    - {% for error in g.errors['items'] %}
  • {{ error }}
  • {% endfor %} -
-
- {% else %} -
- -

- Вы действительно хотите удалить контейнер?
-

- - Отмена -
- {% endif %} +
+ +

+ Вы действительно хотите удалить контейнер?
+

+ + Отмена +
{% endblock %} diff --git a/SWSCloudCore/templates/default/containers/settings.html b/SWSCloudCore/templates/default/containers/settings.html index 7f15cd4..0abbd7c 100644 --- a/SWSCloudCore/templates/default/containers/settings.html +++ b/SWSCloudCore/templates/default/containers/settings.html @@ -9,37 +9,27 @@
- {% if g.errors['total'] > 0 %} -
- {% for error in g.errors['items'] %} -
- {{ error }} -
- {% endfor %} -
- {% else %} -
-

Статус

- {% if container.status == 0 %} -

Неактивен

- {% else %} -

Активен

- {% endif %} -
- -
- -
- -
-

Удалить

- - - -
- {% endif %} +
+

Статус

+ {% if container.status == 0 %} +

Неактивен

+ {% else %} +

Активен

+ {% endif %} +
+ +
+ +
+ +
+

Удалить

+ + + +
{% endblock %} diff --git a/SWSCloudCore/templates/default/id/api.html b/SWSCloudCore/templates/default/id/api.html index 0767aa8..bab18c9 100644 --- a/SWSCloudCore/templates/default/id/api.html +++ b/SWSCloudCore/templates/default/id/api.html @@ -19,16 +19,6 @@
- {% if g.errors['total'] > 0 %} -
-
    - {% for error in g.errors['items'] %} -
  • {{ error }}
  • - {% endfor %} -
-
- {% endif %} -
- {% if g.errors['total'] > 0 %} -
-
    - {% for error in g.errors['items'] %}
  • {{ error }}
  • {% endfor %} -
-
- {% endif %} {% include "default/id/_account_information_edit.html" %}
diff --git a/SWSCloudCore/templates/default/id/login.html b/SWSCloudCore/templates/default/id/login.html index 26507d9..a23f806 100644 --- a/SWSCloudCore/templates/default/id/login.html +++ b/SWSCloudCore/templates/default/id/login.html @@ -10,13 +10,6 @@
- {% if g.errors['total'] > 0 %} -
- {% for error in g.errors['items'] %} - {{ error }} - {% endfor %} -
- {% endif %}