Commit 75543b25 authored by Mat's avatar Mat

les actualités sont glissables, leur position peut être sauvée

parent d4a753e6
......@@ -119,10 +119,11 @@ class LettreRepository extends \Doctrine\ORM\EntityRepository
{
$qb = $this->createQueryBuilder('l')
->where('l.id = :id')
->andWhere('l.status = :draft ')
->andWhere('l.status IN( :draft , :current )')
->setParameters(array(
':id'=> $id,
':draft' => 'draft'
':draft' => 'draft',
':current' => 'current'
));
return $qb->getQuery()->getOneOrNullResult();
}
......
......@@ -63,8 +63,10 @@
<dl>
<dt>Créée le:</dt>
<dd class="field-lettre field0">{{ lettre.createdAt.format('d/m/Y H:i') }}</dd>
{% if lettre.updatedAt %}
<dt>Dernière modification:</dt>
<dd class="field-lettre field1">{{ lettre.updatedAt.format('d/m/Y H:i') }}</dd>
{% endif %}
</dl>
</li>
<li class="list-group-item">
......
......@@ -32,7 +32,7 @@ function buildItemLettreInfos(jsonRow)
console.log(jsonRow);
let div = document.createElement('div');
div.classList.add('ui-state-default');
div.classList.add('ui-state-default', 'info');
div.dataset.infoId = jsonRow.id;
......
......@@ -31,7 +31,7 @@ function buildItemOffreLegumes(jsonRow)
//console.log(jsonRow);
let div = document.createElement('div');
div.classList.add('ui-state-default');
div.classList.add('ui-state-default', 'legume');
div.dataset.legumeId = jsonRow.id;
let logo = document.createElement('div');
......
......@@ -28,4 +28,6 @@
}
.ui-rangeSlider-label {
font-size: 8pt;
padding: 5px 1px;
margin: 1px;
}
......@@ -250,6 +250,12 @@ table span.details { /*
width: 220px;
height: 290px;
}
#sortable div.info {
width: 100%;
height: unset;
min-height: 50px;
background-color: #a7afb9;
}
#sortable div.ui-state-default {
margin: 1em 1em 0 0;
padding: 0;
......
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