Skip to content
Snippets Groups Projects
Commit f26e4e47 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix(sonarQube): ajout de légende et description aux tables avec CSS

parent e792b9bc
No related branches found
No related tags found
1 merge request!538REDMINE_ISSUE-24432 | Corriger les erreurs SonarQube & réactiver dans CI
Pipeline #43542 failed
.add_button {
margin: 1rem;
display: inline-block;
}
.add_button:hover {
cursor: pointer;
}
legend.h1 {
margin: 0 0 20px;
font-weight: 300;
font-size: 1.25rem;
color: var(--body-quiet-color);
}
legend.h2 {
margin:0;
padding:8px;
font-weight: 400;
font-size: 0.8125rem;
text-align: left;
background: var(--primary);
color: var(--header-link-color);
width: 100%;
display: table;
float: none;
box-sizing: border-box
}
\ No newline at end of file
......@@ -11,7 +11,7 @@
<form action="" method="post">{% csrf_token %}
<fieldset class="module">
<legend style="margin: 0 0 20px;font-weight: 300;font-size: 1.25rem;">Création d'une vue PostgreSQL</legend>
<legend class="h1">Création d'une vue PostgreSQL</legend>
<div class="generic__inputs">
{%for field in pg_form %}
<label for="{{ field.id_for_label }}">{{ field.label }} : </label>
......
......@@ -4,10 +4,11 @@
<fieldset class="module aligned">
<h2>{{ formset_title }}</h2>
<legend class="h2">{{ formset_title }}</legend>
{{ formset.management_form }}
{{ formset.non_form_errors.as_ul }}
<table>
<caption class="visually-hidden">{{ formset_title }}</caption>
{% for form in formset %}
{% if forloop.first %}
<thead>
......@@ -49,7 +50,7 @@
<div class="{{ formset.prefix }}__hidden" style="display: none">
<table>
{# ajout d'un header seulement pour éviter erreurs sonarqube #}
<caption class="visually-hidden">Table masquée - pas destinée à l'utilisateur</caption>
<thead>
<th scope="col" style="display: none;"></th>
{% if formset.empty_form.hidden_fields|length > 0 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment