Commit 9afc46d5 authored by Mat's avatar Mat

logique: on garde "En préparation" => couleur 'warning'

parent 365482be
......@@ -106,7 +106,7 @@
<tbody>
</tbody>
</table>
<table id="maintab-current" class="table lettres table-striped border-warning">
<table id="maintab-current" class="table lettres table-striped border-info">
<thead style="display: none;">
<tr>
<th scope="col">#</th>
......
......@@ -136,7 +136,7 @@ function buildEditStatusForm(status)
selectForm.classList.add('form-control', 'form-control-sm', 'lettre_status');
let optionValue = {'draft': 'En préparation', 'current': 'Pour Relecture', 'sent': 'Envoyer'};
let colorValue = {'draft': 'light', 'current': 'warning', 'sent': 'success'};
let colorValue = {'draft': 'warning', 'current': 'info', 'sent': 'success'};
for (let value in optionValue)
{
let optionForm = document.createElement('option');
......
......@@ -74,7 +74,7 @@ if (sortForm)
{
list[i] = items[i].dataset.infoId;
}
console.log(list);
//console.log(list);
let input = sortForm.querySelector('input#lettre_sorted_sorted');
input.value = list;
......@@ -119,7 +119,7 @@ function reloadBlocLettre()
let json = JSON.parse(request.responseText);
let listStatus = { 'draft': 'En préparation', 'current': 'Pour relecture', 'sent': 'Envoyée', 'closed': 'Archivée', 'trash': 'Poubelle' };
let colors = {'draft': 'secondary', 'current': 'warning', 'sent': 'success', 'closed': 'secondary', 'trash': 'danger'};
let colors = {'draft': 'warning', 'current': 'info', 'sent': 'success', 'closed': 'secondary', 'trash': 'danger'};
fieldsLettre[0].textContent = formatStringDateTime(json.created_at, true, true, false, false);
fieldsLettre[1].textContent = json.updated_at ? formatStringDateTime(json.updated_at, true, true, false, false) : null;
fieldsLettre[2].textContent = 'Groupe ' + json.groupe.nom;
......
......@@ -254,6 +254,11 @@ table span.details { /*
width: 100%;
height: unset;
min-height: 50px;
padding: 0 1em; /*
margin-top: -1em; */
background-color: white;
}
#sortable div.info:hover {
background-color: #e8e8e8;
}
#sortable div.ui-state-default {
......
......@@ -45,7 +45,7 @@ table.groupes tr th:nth-child(3) { /* width variable */ }
table.groupes tr th:nth-child(4) { /* width variable */ }
table.groupes tr th:nth-child(5) { /* width variable */ }
table#maintab-current.lettres.border-warning {
table#maintab-current.lettres.border-info {
border-width: 5px !important;
border-style: solid;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment