Merge branch 'master' into dist/eole/2.7.2/master
This commit is contained in:
@@ -262,6 +262,10 @@ app_task_activeproject:
|
||||
path: /master/task/activeproject
|
||||
defaults: { _controller: App\Controller\TaskController:activeproject }
|
||||
|
||||
app_task_activetask:
|
||||
path: /master/task/activetask
|
||||
defaults: { _controller: App\Controller\TaskController:activetask }
|
||||
|
||||
#== Event ====================================================================================================
|
||||
app_event:
|
||||
path: /user/event
|
||||
|
@@ -168,6 +168,11 @@ class TaskController extends AbstractController
|
||||
return $this->redirectToRoute($this->route);
|
||||
}
|
||||
|
||||
public function activetask() {
|
||||
$this->get('session')->set('activetask',!$this->get('session')->get('activetask'));
|
||||
return $this->redirectToRoute($this->route);
|
||||
}
|
||||
|
||||
public function activeoffer() {
|
||||
$this->get('session')->set('activeoffer',!$this->get('session')->get('activeoffer'));
|
||||
return $this->redirectToRoute($this->route);
|
||||
|
@@ -67,6 +67,7 @@ class sessionListener {
|
||||
// Initialisation de la session
|
||||
if($regen) {
|
||||
$session->set('activeproject',true);
|
||||
$session->set('activetask',true);
|
||||
$session->set('activeoffer',true);
|
||||
$session->set('activeholiday',true);
|
||||
$session->set('activetimer',true);
|
||||
|
@@ -90,7 +90,6 @@
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block body %}
|
||||
{% if fgprint is defined and fgprint %}<h1>Planning</h1>{%endif%}
|
||||
{% if access=="customer" and not app.user %}
|
||||
@@ -127,8 +126,6 @@
|
||||
<h3>RAPPORT</h3>
|
||||
<div class="small">
|
||||
|
||||
<div class="new-page"> </div>
|
||||
|
||||
{% for month in project.months %}
|
||||
<h3 class="month">{{ month.monthlabel }}</h3>
|
||||
<table>
|
||||
@@ -179,7 +176,6 @@
|
||||
<td class="text-right">{{ month.totala|number_format(2, '.', ' ') }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td style="min-width:200px">TOTAL</td>
|
||||
@@ -188,12 +184,7 @@
|
||||
</tfoot>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
||||
<h4>CUMUL HEBDOMADAIRE</h4>
|
||||
<table>
|
||||
{% for year, weeks in project.weeks %}
|
||||
@@ -219,7 +210,6 @@
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<div class="new-page"> </div>
|
||||
{% if not project.offers is empty %}
|
||||
<h4>COMMANDES</h4>
|
||||
{% set count=(project.offers|length)-8 %}
|
||||
@@ -326,8 +316,6 @@
|
||||
<td class="text-right">{{ (project.proposed - project.validate)|number_format(2, '.', ' ') }}</td>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<div class="new-page"> </div>
|
||||
{% endif %}
|
||||
<h4>CONSOMMATION PASSEE</h4>
|
||||
{% if project.hors!=0 %}
|
||||
@@ -359,7 +347,6 @@
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
|
||||
{% if not project.beforeastreinte is empty %}
|
||||
<h4>ASTREINTES PASSEES</h4>
|
||||
<table>
|
||||
@@ -389,6 +376,8 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="new-page"> </div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<br>
|
||||
|
@@ -30,6 +30,11 @@
|
||||
<label class="custom-control-label" for="switchactive">Projet Actif</label>
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-switch float-right" style="margin-right:20px">
|
||||
<input type="checkbox" class="custom-control-input" id="switchactivetask" {% if app.session.get('activetask') %} checked {% endif %}>
|
||||
<label class="custom-control-label" for="switchactivetask">Tâche Active</label>
|
||||
</div>
|
||||
|
||||
<p></p>
|
||||
|
||||
{%for service in services %}
|
||||
@@ -75,6 +80,7 @@
|
||||
{% for project in service.projects %}
|
||||
{% if app.session.get('activeproject')==project.active and (app.session.get('idproject')=="all" or app.session.get('idproject')==project.id) %}
|
||||
{% for task in project.tasks %}
|
||||
{% if app.session.get('activetask')==task.active %}
|
||||
{% set totvalidate=task.validate %}
|
||||
{% set totplanified=task.validate %}
|
||||
{% for event in task.events %}
|
||||
@@ -107,6 +113,7 @@
|
||||
<td class="text-right">{{(task.quantity-totplanified)|number_format(2, '.', ' ')}}</td>
|
||||
<td class="text-center" style="background-color:{{task.color}}; color:#ffffff">{{task.color}}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
@@ -138,6 +145,9 @@
|
||||
$('#switchactive').change(function() {
|
||||
window.location="{{ path('app_task_activeproject' )}}";
|
||||
});
|
||||
$('#switchactivetask').change(function() {
|
||||
window.location="{{ path('app_task_activetask' )}}";
|
||||
});
|
||||
|
||||
|
||||
function myprint() {
|
||||
|
Reference in New Issue
Block a user