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