From ac8d04a87773701ad6836c3437aebed58dae0066 Mon Sep 17 00:00:00 2001 From: Julian Leucker <leuckerj@gmail.com> Date: Sun, 13 Jun 2021 16:12:31 +0200 Subject: [PATCH] Use new alert syntax (cherry picked from commit 7e2a56dadeaf68d3c4f467e9d7e27d48f4933043) --- .../alsijil/absences/register_confirm.html | 16 +++++++--------- .../templates/alsijil/excuse_type/warning.html | 16 +++++++--------- .../group_role/partials/assigned_roles.html | 16 +++++++--------- .../templates/alsijil/group_role/warning.html | 16 +++++++--------- .../alsijil/partials/persons_with_stats.html | 10 ++++------ 5 files changed, 32 insertions(+), 42 deletions(-) diff --git a/aleksis/apps/alsijil/templates/alsijil/absences/register_confirm.html b/aleksis/apps/alsijil/templates/alsijil/absences/register_confirm.html index 449276cdc..dc0693570 100644 --- a/aleksis/apps/alsijil/templates/alsijil/absences/register_confirm.html +++ b/aleksis/apps/alsijil/templates/alsijil/absences/register_confirm.html @@ -21,15 +21,13 @@ <i class="material-icons left">date_range</i> {{ form_data.date_start }}, {{ form_data.from_period }}. – {{ form_data.date_end }}, {{ form_data.to_period }}. {% if form_data.date_start != form_data.date_end %} - <div class="alert warning"> - <div> - <i class="material-icons left">warning</i> - {% blocktrans %} - As the length of this absence is longer than one day, - please double check the correctness of your entry. - {% endblocktrans %} - </div> - </div> + <figure class="alert warning"> + <i class="material-icons left">warning</i> + {% blocktrans %} + As the length of this absence is longer than one day, + please double check the correctness of your entry. + {% endblocktrans %} + </figure> {% endif %} </div> <div class="collection-item"> diff --git a/aleksis/apps/alsijil/templates/alsijil/excuse_type/warning.html b/aleksis/apps/alsijil/templates/alsijil/excuse_type/warning.html index d90d2e820..9ff8af6e9 100644 --- a/aleksis/apps/alsijil/templates/alsijil/excuse_type/warning.html +++ b/aleksis/apps/alsijil/templates/alsijil/excuse_type/warning.html @@ -1,10 +1,8 @@ {% load i18n %} -<div class="alert warning"> - <p> - <i class="material-icons left">warning</i> - {% blocktrans %} - This function should only be used to define alternatives to the default excuse which also will be counted extra. - Don't use this to create a default excuse or if you don't divide between different types of excuse. - {% endblocktrans %} - </p> -</div> +<figure class="alert warning"> + <i class="material-icons left">warning</i> + {% blocktrans %} + This function should only be used to define alternatives to the default excuse which also will be counted extra. + Don't use this to create a default excuse or if you don't divide between different types of excuse. + {% endblocktrans %} +</figure> diff --git a/aleksis/apps/alsijil/templates/alsijil/group_role/partials/assigned_roles.html b/aleksis/apps/alsijil/templates/alsijil/group_role/partials/assigned_roles.html index 349cd940c..fddec1113 100644 --- a/aleksis/apps/alsijil/templates/alsijil/group_role/partials/assigned_roles.html +++ b/aleksis/apps/alsijil/templates/alsijil/group_role/partials/assigned_roles.html @@ -36,12 +36,10 @@ {% endfor %} </div> -<div class="alert primary"> - <div> - <i class="material-icons left">info</i> - {% blocktrans %} - You can get some additional actions for each group role assignment if you click on the name of the - corresponding person. - {% endblocktrans %} - </div> -</div> \ No newline at end of file +<figure class="alert primary"> + <i class="material-icons left">info</i> + {% blocktrans %} + You can get some additional actions for each group role assignment if you click on the name of the + corresponding person. + {% endblocktrans %} +</figure> \ No newline at end of file diff --git a/aleksis/apps/alsijil/templates/alsijil/group_role/warning.html b/aleksis/apps/alsijil/templates/alsijil/group_role/warning.html index d90d2e820..9ff8af6e9 100644 --- a/aleksis/apps/alsijil/templates/alsijil/group_role/warning.html +++ b/aleksis/apps/alsijil/templates/alsijil/group_role/warning.html @@ -1,10 +1,8 @@ {% load i18n %} -<div class="alert warning"> - <p> - <i class="material-icons left">warning</i> - {% blocktrans %} - This function should only be used to define alternatives to the default excuse which also will be counted extra. - Don't use this to create a default excuse or if you don't divide between different types of excuse. - {% endblocktrans %} - </p> -</div> +<figure class="alert warning"> + <i class="material-icons left">warning</i> + {% blocktrans %} + This function should only be used to define alternatives to the default excuse which also will be counted extra. + Don't use this to create a default excuse or if you don't divide between different types of excuse. + {% endblocktrans %} +</figure> diff --git a/aleksis/apps/alsijil/templates/alsijil/partials/persons_with_stats.html b/aleksis/apps/alsijil/templates/alsijil/partials/persons_with_stats.html index ea78cc7eb..404705dfb 100644 --- a/aleksis/apps/alsijil/templates/alsijil/partials/persons_with_stats.html +++ b/aleksis/apps/alsijil/templates/alsijil/partials/persons_with_stats.html @@ -1,12 +1,10 @@ {% load data_helpers time_helpers i18n rules %} {% if not persons %} - <div class="alert primary"> - <div> - <i class="material-icons left">warning</i> - {% blocktrans %}No students available.{% endblocktrans %} - </div> - </div> + <figure class="alert primary"> + <i class="material-icons left">warning</i> + {% blocktrans %}No students available.{% endblocktrans %} + </figure> {% else %} <table class="highlight responsive-table"> <thead> -- GitLab