Skip to content

Commit

Permalink
Add is-light with is-danger classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Sep 25, 2024
1 parent 2e013f2 commit 02b4153
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion qgis-app/plugins/templates/plugins/plugin_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ <h2>
{% endif %}

{% if object.deprecated %}
<div class="notification is-danger ">
<div class="notification is-danger is-light ">
{% trans "This plugin is deprecated!" %}
</div>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions qgis-app/plugins/templates/plugins/plugin_feedback.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{% extends 'plugins/plugin_base.html' %}{% load i18n %}
{% block content %}
{% if form.errors %}
<div class="notification is-danger">
<div class="notification is-danger is-light">
<button class="delete" data-dismiss="alert">&times;</button>
{% trans "The form contains errors and cannot be submitted, please check the fields highlighted in red." %}
</div>
{% endif %}
{% if form.non_field_errors %}
<div class="notification is-danger">
<div class="notification is-danger is-light">
<button class="delete" data-dismiss="alert">&times;</button>
{% for error in form.non_field_errors %}
{{ error }} <br/>
Expand Down
4 changes: 2 additions & 2 deletions qgis-app/plugins/templates/plugins/plugin_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
{% block content %}
<h2>{{ form_title }} {{ plugin }}</h2>
{% if form.errors %}
<div class="notification is-danger">
<div class="notification is-danger is-light">
<button class="delete" data-dismiss="alert">&times;</button>
{% trans "The form contains errors and cannot be submitted, please check the fields highlighted in red." %}
</div>
{% endif %}
{% if form.non_field_errors %}
<div class="notification is-danger">
<div class="notification is-danger is-light">
<button class="delete" data-dismiss="alert">&times;</button>
{% for error in form.non_field_errors %}
{{ error }}<br />
Expand Down
4 changes: 2 additions & 2 deletions qgis-app/plugins/templates/plugins/plugin_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h2>{% if title %}{{title}}{% else %}{% trans "All plugins" %}{% endif %}</h2>
<tbody>
{% for object in object_list %}
<tr
class="pmain {% if object.deprecated %} error deprecated{% endif %} pointer"
class="pmain {% if object.deprecated %} has-background-danger-light{% endif %} pointer"
id="pmain{{object.pk}}"
onclick="window.location.href='{% url "plugin_detail" object.package_name %}';"
>
Expand Down Expand Up @@ -149,7 +149,7 @@ <h2>{% if title %}{{title}}{% else %}{% trans "All plugins" %}{% endif %}</h2>
<div class="is-flex is-justify-content-space-between is-align-items-center mt-3 mb-3">
{% include 'plugins/list_pagination.html' %}
</div>
<div class="notification">
<div class="notification is-danger is-light is-light">
<i class="fas fa-info mr-3"></i>
{% trans "Deprecated plugins are printed in red." %}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% block content %}
<h3>Delete token of "{{ username }}"</h3>
<form action="" method="post">{% csrf_token %}
<div class="notification is-danger">{% trans "You asked to delete a token.<br />The token will be permanently deleted and this action cannot be undone.<br />Please confirm." %}</div>
<div class="notification is-danger is-light">{% trans "You asked to delete a token.<br />The token will be permanently deleted and this action cannot be undone.<br />Please confirm." %}</div>
<p><input type="submit" class="button is-danger" name="delete_confirm" value="{% trans "Ok" %}" /> <a class="button btn-default" href="javascript:history.back()">{% trans "Cancel" %}</a></p>
</form>

Expand Down
4 changes: 2 additions & 2 deletions qgis-app/plugins/templates/plugins/plugin_token_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<h2>{% trans "Edit token description " %} {{ token.jti }}</h2>

{% if form.errors %}
<div class="notification is-danger">
<div class="notification is-danger is-light">
<button class="delete" data-dismiss="alert">&times;</button>
{% trans "The form contains errors and cannot be submitted, please check the fields highlighted in red." %}
</div>
{% endif %}
{% if form.non_field_errors %}
<div class="notification is-danger">
<div class="notification is-danger is-light">
<button class="delete" data-dismiss="alert">&times;</button>
{% for error in form.non_field_errors %}
{{ error }} <br/>
Expand Down
2 changes: 1 addition & 1 deletion qgis-app/plugins/templates/plugins/plugin_upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2>{% trans "Upload a plugin" %}</h2>
</div>
</div>
{% if form.non_field_errors %}
<div class="notification is-danger">
<div class="notification is-danger is-light">
<button class="delete" data-dismiss="alert">&times;</button>
{% for error in form.non_field_errors %}
{{ error }}<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% block content %}
<h3>{% blocktrans with version.version as version and plugin.name as plugin_name %}Delete version "{{ version }}" of "{{ plugin_name }}"{% endblocktrans %}</h3>
<form action="" method="post">{% csrf_token %}
<div class="notification is-danger">{% trans "You asked to delete one version.<br />The version will be permanently deleted and this action cannot be undone.<br />Please confirm." %}</div>
<div class="notification is-danger is-light">{% trans "You asked to delete one version.<br />The version will be permanently deleted and this action cannot be undone.<br />Please confirm." %}</div>
<p><input type="submit" class="button is-danger" name="delete_confirm" value="{% trans "Ok" %}" /> <a class="button btn-default" href="javascript:history.back()">{% trans "Cancel" %}</a></p>
</form>

Expand Down
2 changes: 1 addition & 1 deletion qgis-app/plugins/templates/plugins/version_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h2>{% trans "Version" %}: {{ version }}</h2>
<div class="pull-right"><a href="{% url "version_download" version.plugin.package_name version.version %}" class="button is-success"><i class="icon-download-alt icon-white"></i> {% trans "Download" %}</a></div>

{% if not version.created_by.is_active and not version.is_from_token %}
<div class="notification is-danger">
<div class="notification is-danger is-light">
{% trans "The plugin author has been blocked." %}
</div>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion qgis-app/plugins/templates/plugins/version_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% block content %}
<h2>{{ form_title }} {{ version }}</h2>
{% if form.non_field_errors %}
<div class="notification is-danger">
<div class="notification is-danger is-light">
<button class="delete" data-dismiss="alert">&times;</button>
{% for error in form.non_field_errors %}
{{ error }} <br/>
Expand Down
2 changes: 1 addition & 1 deletion qgis-app/templates/registration/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% trans 'You can create a new OSGEO id on <a href="http://www.osgeo.org/osgeo_userid">OSGEO web portal.</a>' %}
</p>
{% if form.errors or form.non_field_errors %}
<div class="notification is-danger">
<div class="notification is-danger is-light">
<button class="delete" data-dismiss="alert">&times;</button>
{% for error in form.non_field_errors %}
{{ error }} <br/>
Expand Down

0 comments on commit 02b4153

Please sign in to comment.