Commit 8692e38a authored by Mat's avatar Mat

LettreInfos: met sortable dans un body, avec une intro

parent 840b8780
......@@ -97,8 +97,12 @@
<div id="maingrid" class="grid lettre-infos {{ lettre.status }}">
<div id="lettre-header" class="border-bottom mb-4"></div>
<div id="sortable"></div>
<div class="clearfix"></div>
<div id="lettre-body">
<div class="intro"></div>
<div id="sortable">
</div>
<div class="clearfix"></div>
</div>
</div>
</section>
......
......@@ -114,6 +114,7 @@ function reloadBlocLettre()
{
let fieldsLettre = document.querySelectorAll('.field-lettre');
let headerLettre = document.querySelector('#lettre-header');
let introLettre = document.querySelector('#lettre-body div.intro');
AJAX('GET',
Routing.generate('api_lettre_read_one', {'id': id_lettre}),
......@@ -128,6 +129,9 @@ function reloadBlocLettre()
fieldsLettre[3].innerHTML = buildColorSquare(json.status, colors) + listStatus[json.status];
headerLettre.innerHTML = displayHeaderLettre(json, true);
introLettre.innerHTML =
`Semaine du <strong>${formatStringDate(json.started_at, true, true, false, false)}</strong><br>
au <strong>${formatStringDate(json.ended_at, true, true, false, false)}</strong>`;
}
);
}
......
......@@ -317,3 +317,6 @@ span.posted:first-letter {
text-transform: uppercase;
}
.intro {
text-align: center;
}
\ 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