71 lines
2.7 KiB
Twig
71 lines
2.7 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 ms-1">Annuler</a>
|
|
{%if mode=="update" %}
|
|
{% if is_granted('MOVEDRAFT', project) %}
|
|
<a href="{{ path("app_user_project_move",{id:form.vars.value.id, status:"DRAFT"}) }}" class="btn btn-primary" onclick="return confirm('Confirmez-vous le passage au vote ?')">Mettre en Brouillon</a>
|
|
{% endif %}
|
|
{% if is_granted('MOVETOVOTE', project) %}
|
|
<a href="{{ path("app_user_project_move",{id:form.vars.value.id, status:"TOVOTE"}) }}" class="btn btn-primary" onclick="return confirm('Confirmez-vous le passage au vote ?')">Mettre au Vote</a>
|
|
{% endif %}
|
|
{% if is_granted('DELETE', project) %}
|
|
<a href="{{ path(routedelete,{id:form.vars.value.id}) }}" class="btn btn-danger float-end" onclick="return confirm('Confirmez-vous la suppression de cet enregistrement ?')">Supprimer</a>
|
|
{% endif %}
|
|
{%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">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 %}
|