91 lines
3.6 KiB
Twig
91 lines
3.6 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %} = {{title}}{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1>{{title}}</h1>
|
|
|
|
|
|
{{ form_start(form) }}
|
|
{{ form_widget(form.submit) }}
|
|
<a href="{{ path(routecancel) }}" class="btn btn-secondary me-5">Annuler</a>
|
|
{% if mode=="update" and 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 %}
|
|
|
|
{% include('include/error.html.twig') %}
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 mx-auto">
|
|
<div class="card mt-3">
|
|
<div class="card-header">Information</div>
|
|
<div class="card-body">
|
|
{{ form_row(form.title) }}
|
|
{{ form_row(form.nature) }}
|
|
{{ form_row(form.users) }}
|
|
{{ form_row(form.summary) }}
|
|
</div>
|
|
</div>
|
|
|
|
{% if mode=="update" %}
|
|
{{ render(path("bninefiles_files",{domain:'project',id:project.id, editable:1})) }}
|
|
|
|
<div class="card mt-3">
|
|
<div class="card-header">Timeline</div>
|
|
<div class="card-body">
|
|
{% include('project/timeline.html.twig') %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% if mode=="update" %}
|
|
<div class="col-md-8 mx-auto">
|
|
<div class="card mt-3">
|
|
<div class="card-header">Options de Vote</div>
|
|
<div class="card-body">
|
|
<a href="{{ path(routesubmitoption,{idproject:project.id}) }}" class="btn btn-success btn-sm mb-3">Ajouter</a>
|
|
|
|
<div class="dataTable_wrapper">
|
|
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%">
|
|
<thead>
|
|
<tr>
|
|
<th width="100px" class="no-sort">Action</th>
|
|
<th>Title</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for option in project.options %}
|
|
<tr>
|
|
<td>
|
|
<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>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mt-3">
|
|
<div class="card-header">Description du Projet</div>
|
|
<div class="card-body">
|
|
{{ form_widget(form.description) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{{ form_end(form) }}
|
|
{% endblock %}
|
|
|
|
{% block localscript %}
|
|
<script>
|
|
$(document).ready(function() {
|
|
$("#project_title").focus();
|
|
});
|
|
</script>
|
|
{% endblock %}
|