migration symfo
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
<div class="card-body">
|
||||
{{ form_row(form.title) }}
|
||||
{{ form_row(form.nature) }}
|
||||
{{ form_row(form.dueDate) }}
|
||||
{{ form_row(form.users) }}
|
||||
{{ form_row(form.summary) }}
|
||||
</div>
|
||||
@@ -51,7 +52,9 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="100px" class="no-sort">Action</th>
|
||||
<th>Title</th>
|
||||
<th>Titre</th>
|
||||
<th width="35%" class="no-sort">Pour</th>
|
||||
<th width="35%" class="no-sort">Contre</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -61,6 +64,8 @@
|
||||
<a href="{{ path(routeupdateoption,{idproject:project.id,id:option.id}) }}" class="me-2"><i class="fas fa-file fa-2x"></i></a>
|
||||
</td>
|
||||
<td>{{option.title}}</td>
|
||||
<td>{{option.whyYes?option.whyYes|markdown_to_html:""}}</td>
|
||||
<td>{{option.whyNot?option.whyNot|markdown_to_html:""}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
@@ -85,6 +90,13 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#project_title").focus();
|
||||
|
||||
$('#dataTables').DataTable({
|
||||
columnDefs: [ { "targets": "no-sort", "orderable": false }, { "targets": "no-string", "type" : "num" } ],
|
||||
responsive: true,
|
||||
iDisplayLength: 100,
|
||||
order: [[ 1, "asc" ]]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
@@ -1,12 +1 @@
|
||||
{% if is_granted('MOVEDRAFT', project) %}
|
||||
<a href="{{ path(routemove,{id:project.id, status:"DRAFT"}) }}" class="btn btn-primary me-1" onclick="return confirm('Confirmez-vous le passage au vote ?')">Mettre en Brouillon</a>
|
||||
{% endif %}
|
||||
{% if is_granted('MOVETOVOTE', project) %}
|
||||
<a href="{{ path(routemove,{id:project.id, status:"TOVOTE"}) }}" class="btn btn-primary me-1" onclick="return confirm('Confirmez-vous le passage au vote ?')">Mettre au Vote</a>
|
||||
{% endif %}
|
||||
{% if is_granted('MOVEVOTED', project) %}
|
||||
<a href="{{ path(routemove,{id:project.id, status:"VOTED"}) }}" class="btn btn-primary me-1" onclick="return confirm('Confirmez-vous le vote ?')">Voter</a>
|
||||
{% endif %}
|
||||
{% if is_granted('DELETE', project) %}
|
||||
<a href="{{ path(routedelete,{id:project.id}) }}" class="btn btn-danger float-end" onclick="return confirm('Confirmez-vous la suppression de cet enregistrement ?')">Supprimer</a>
|
||||
{% endif %}
|
||||
|
||||
|
@@ -8,32 +8,59 @@
|
||||
<div class="">{{project.status}}</div>
|
||||
</h1>
|
||||
|
||||
{% if is_granted('UPDATE', project) %}
|
||||
<a href="{{ path(routeupdate,{id:project.id}) }}" class="btn btn-success me-1">Modifier</a>
|
||||
{% endif %}
|
||||
<div class="mb-3">
|
||||
{% if is_granted('UPDATE', project) %}
|
||||
<a href="{{ path(routeupdate,{id:project.id}) }}" class="btn btn-success me-1">Modifier</a>
|
||||
{% endif %}
|
||||
|
||||
<a href="{{ path(routecancel) }}" class="btn btn-secondary me-5">Retour</a>
|
||||
<a href="{{ path(routecancel) }}" class="btn btn-secondary me-5">Retour</a>
|
||||
|
||||
{% if is_granted('MOVETOVOTE', project) and project.status=="Brouillon"%}
|
||||
<a href="{{ path(routemove,{id:project.id, status:"TOVOTE"}) }}" class="btn btn-primary me-1" onclick="return confirm('Statut = à Voter ?')">
|
||||
<i class="fas fa-angle-double-right"></i> Statut = à Voter
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if is_granted('MOVEVOTED', project) and project.status=="A Voter" %}
|
||||
<a href="{{ path(routemove,{id:project.id, status:"VOTED"}) }}" class="btn btn-primary me-1" onclick="return confirm('Statut = Voté ?')">
|
||||
<i class="fas fa-angle-double-right"></i> Statut = Voté
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if is_granted('MOVEARCHIVED', project) and project.status=="Voté" %}
|
||||
<a href="{{ path(routemove,{id:project.id, status:"ARCHIVED"}) }}" class="btn btn-primary me-1" onclick="return confirm('Statut = Archivé ?')">
|
||||
<i class="fas fa-angle-double-right"></i> Statut = Archivé
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if is_granted('DELETE', project) %}
|
||||
<a href="{{ path(routedelete,{id:project.id}) }}" class="btn btn-danger float-end" onclick="return confirm('Confirmez-vous la suppression de cet enregistrement ?')">
|
||||
Supprimer
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if is_granted('MOVEDRAFT', project) and project.status=="A Voter"%}
|
||||
<a href="{{ path(routemove,{id:project.id, status:"DRAFT"}) }}" class="btn btn-warning me-1 float-end" onclick="return confirm('Statut = Brouillon ?')">
|
||||
<i class="fas fa-angle-double-left"></i> Statut = Brouillon
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if is_granted('MOVETOVOTE', project) and project.status=="Voté"%}
|
||||
<a href="{{ path(routemove,{id:project.id, status:"TOVOTE"}) }}" class="btn btn-warning me-1 float-end" onclick="return confirm('Statut = à Voter ?')">
|
||||
<i class="fas fa-angle-double-left"></i> Statut = à Voter
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if is_granted('MOVEVOTED', project) and project.status=="Archivé"%}
|
||||
<a href="{{ path(routemove,{id:project.id, status:"VOTED"}) }}" class="btn btn-warning me-1 float-end" onclick="return confirm('Statut = Voté ?')">
|
||||
<i class="fas fa-angle-double-left"></i> Statut = Voté
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if is_granted('MOVEDRAFT', project) %}
|
||||
<a href="{{ path(routemove,{id:project.id, status:"DRAFT"}) }}" class="btn btn-primary me-1" onclick="return confirm('Confirmez-vous le passage au vote ?')">Mettre en Brouillon</a>
|
||||
{% endif %}
|
||||
{% if is_granted('MOVETOVOTE', project) %}
|
||||
<a href="{{ path(routemove,{id:project.id, status:"TOVOTE"}) }}" class="btn btn-primary me-1" onclick="return confirm('Confirmez-vous le passage au vote ?')">Mettre au Vote</a>
|
||||
{% endif %}
|
||||
{% if is_granted('MOVEVOTED', project) %}
|
||||
<a href="{{ path(routemove,{id:project.id, status:"VOTED"}) }}" class="btn btn-primary me-1" onclick="return confirm('Confirmez-vous le vote ?')">Voter</a>
|
||||
{% endif %}
|
||||
{% if is_granted('DELETE', project) %}
|
||||
<a href="{{ path(routedelete,{id:project.id}) }}" class="btn btn-danger float-end" onclick="return confirm('Confirmez-vous la suppression de cet enregistrement ?')">Supprimer</a>
|
||||
{% endif %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 mx-auto">
|
||||
<div class="card mt-3">
|
||||
<div class="card mt-3">
|
||||
<div class="card-header">Information</div>
|
||||
<div class="card-body">
|
||||
<b>Titre</b> = {{ project.title }}<br>
|
||||
<b>Nature</b> = {{ project.nature }}<br><br>
|
||||
<b>Nature</b> = {{ project.nature }}<br>
|
||||
<b>A Voter pour le</b> = {{ project.dueDate ? project.dueDate|date("d/m/Y"):"" }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -55,6 +82,23 @@
|
||||
</div>
|
||||
|
||||
<div class="col-md-8 mx-auto">
|
||||
<div style="display:flex;" class="mt-3">
|
||||
{% for option in project.options %}
|
||||
<div class="card" style="flex:1 1 0">
|
||||
<center><h2>{{ option.title }}</h2></center>
|
||||
<div style="display:flex;">
|
||||
<div style="flex:auto; padding:10px;">
|
||||
<center><i class="fas fa-plus"></i></center>
|
||||
{{option.whyYes?option.whyYes|markdown_to_html:""}}
|
||||
</div>
|
||||
<div style="flex:auto; padding:10px;">
|
||||
<center><i class="fas fa-minus"></i></center>
|
||||
{{option.whyNot?option.whyNot|markdown_to_html:""}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="card mt-3">
|
||||
<div class="card-header">Description du Projet</div>
|
||||
<div class="card-body">
|
||||
|
Reference in New Issue
Block a user