condensed view
This commit is contained in:
parent
1714bd9a70
commit
1666811787
|
@ -370,6 +370,7 @@ class ScrumController extends AbstractController
|
||||||
}
|
}
|
||||||
|
|
||||||
// Préférences utilisateur
|
// Préférences utilisateur
|
||||||
|
$viewcondensed = $em->getRepository("App:User")->getUserpreference($this->getUser(),"viewcondensed",$id);
|
||||||
$filtermilestones = $em->getRepository("App:User")->getUserpreference($this->getUser(),"filtermilestones",$id);
|
$filtermilestones = $em->getRepository("App:User")->getUserpreference($this->getUser(),"filtermilestones",$id);
|
||||||
$filtersprints = $em->getRepository("App:User")->getUserpreference($this->getUser(),"filtersprints",$id);
|
$filtersprints = $em->getRepository("App:User")->getUserpreference($this->getUser(),"filtersprints",$id);
|
||||||
$filterteams = $em->getRepository("App:User")->getUserpreference($this->getUser(),"filterteams",$id);
|
$filterteams = $em->getRepository("App:User")->getUserpreference($this->getUser(),"filterteams",$id);
|
||||||
|
@ -392,6 +393,7 @@ class ScrumController extends AbstractController
|
||||||
'giteaprioritys' => $giteaprioritys,
|
'giteaprioritys' => $giteaprioritys,
|
||||||
'giteatypes' => $giteatypes,
|
'giteatypes' => $giteatypes,
|
||||||
'gitealabels' => $gitealabels,
|
'gitealabels' => $gitealabels,
|
||||||
|
'viewcondensed' => $viewcondensed,
|
||||||
'filtermilestones' => $filtermilestones,
|
'filtermilestones' => $filtermilestones,
|
||||||
'filtersprints' => $filtersprints,
|
'filtersprints' => $filtersprints,
|
||||||
'filterteams' => $filterteams,
|
'filterteams' => $filterteams,
|
||||||
|
|
|
@ -35,7 +35,7 @@ class ScrumcolumnController extends AbstractController
|
||||||
|
|
||||||
// Récupérer les repos de gitea
|
// Récupérer les repos de gitea
|
||||||
$gitealabels=$this->giteaservice->getLabels($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
$gitealabels=$this->giteaservice->getLabels($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
||||||
if(!is_array($gitealabels)) die("Probleme de connexion avec gitea veuillez vous <a href='/ninegitea/logout'>reconnecter</a>");
|
if(!is_array($gitealabels)) die("Probleme de connexion avec gitea veuillez vous <a href='/logout'>reconnecter</a>");
|
||||||
|
|
||||||
// Création du formulaire
|
// Création du formulaire
|
||||||
$form = $this->createForm(Form::class,$data,array("mode"=>"submit","gitealabels"=>$gitealabels));
|
$form = $this->createForm(Form::class,$data,array("mode"=>"submit","gitealabels"=>$gitealabels));
|
||||||
|
|
|
@ -182,7 +182,7 @@ class ScrumissueController extends AbstractController
|
||||||
$lastupdate=$scrum->getUpdatedate();
|
$lastupdate=$scrum->getUpdatedate();
|
||||||
|
|
||||||
$giteaissues=$this->giteaservice->getIssues($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
$giteaissues=$this->giteaservice->getIssues($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
||||||
if(!is_array($giteaissues)) die("Probleme de connexion avec gitea veuillez vous <a href='/ninegitea/logout'>reconnecter</a>");
|
if(!is_array($giteaissues)) die("Probleme de connexion avec gitea veuillez vous <a href='/logout'>reconnecter</a>");
|
||||||
|
|
||||||
foreach($giteaissues as $giteaissue) {
|
foreach($giteaissues as $giteaissue) {
|
||||||
// On ne prend pas les pull request
|
// On ne prend pas les pull request
|
||||||
|
|
|
@ -35,7 +35,7 @@ class ScrumpriorityController extends AbstractController
|
||||||
|
|
||||||
// Récupérer les repos de gitea
|
// Récupérer les repos de gitea
|
||||||
$gitealabels=$this->giteaservice->getLabels($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
$gitealabels=$this->giteaservice->getLabels($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
||||||
if(!is_array($gitealabels)) die("Probleme de connexion avec gitea veuillez vous <a href='/ninegitea/logout'>reconnecter</a>");
|
if(!is_array($gitealabels)) die("Probleme de connexion avec gitea veuillez vous <a href='/logout'>reconnecter</a>");
|
||||||
|
|
||||||
// Création du formulaire
|
// Création du formulaire
|
||||||
$form = $this->createForm(Form::class,$data,array("mode"=>"submit","gitealabels"=>$gitealabels));
|
$form = $this->createForm(Form::class,$data,array("mode"=>"submit","gitealabels"=>$gitealabels));
|
||||||
|
|
|
@ -35,7 +35,7 @@ class ScrumsprintController extends AbstractController
|
||||||
|
|
||||||
// Récupérer les repos de gitea
|
// Récupérer les repos de gitea
|
||||||
$giteamilestones=$this->giteaservice->getmilestones($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
$giteamilestones=$this->giteaservice->getmilestones($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
||||||
if(!is_array($giteamilestones)) die("Probleme de connexion avec gitea veuillez vous <a href='".$this->getParameters("appAlias")."/logout'>reconnecter</a>");
|
if(!is_array($giteamilestones)) die("Probleme de connexion avec gitea veuillez vous <a href='/logout'>reconnecter</a>");
|
||||||
|
|
||||||
// Création du formulaire
|
// Création du formulaire
|
||||||
$form = $this->createForm(Form::class,$data,array("mode"=>"submit","giteamilestones"=>$giteamilestones));
|
$form = $this->createForm(Form::class,$data,array("mode"=>"submit","giteamilestones"=>$giteamilestones));
|
||||||
|
|
|
@ -35,7 +35,7 @@ class ScrumteamController extends AbstractController
|
||||||
|
|
||||||
// Récupérer les repos de gitea
|
// Récupérer les repos de gitea
|
||||||
$gitealabels=$this->giteaservice->getLabels($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
$gitealabels=$this->giteaservice->getLabels($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
||||||
if(!is_array($gitealabels)) die("Probleme de connexion avec gitea veuillez vous <a href='/ninegitea/logout'>reconnecter</a>");
|
if(!is_array($gitealabels)) die("Probleme de connexion avec gitea veuillez vous <a href='/logout'>reconnecter</a>");
|
||||||
|
|
||||||
// Création du formulaire
|
// Création du formulaire
|
||||||
$form = $this->createForm(Form::class,$data,array("mode"=>"submit","gitealabels"=>$gitealabels));
|
$form = $this->createForm(Form::class,$data,array("mode"=>"submit","gitealabels"=>$gitealabels));
|
||||||
|
|
|
@ -35,7 +35,7 @@ class ScrumtypeController extends AbstractController
|
||||||
|
|
||||||
// Récupérer les repos de gitea
|
// Récupérer les repos de gitea
|
||||||
$gitealabels=$this->giteaservice->getLabels($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
$gitealabels=$this->giteaservice->getLabels($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
||||||
if(!is_array($gitealabels)) die("Probleme de connexion avec gitea veuillez vous <a href='/ninegitea/logout'>reconnecter</a>");
|
if(!is_array($gitealabels)) die("Probleme de connexion avec gitea veuillez vous <a href='/logout'>reconnecter</a>");
|
||||||
|
|
||||||
// Création du formulaire
|
// Création du formulaire
|
||||||
$form = $this->createForm(Form::class,$data,array("mode"=>"submit","gitealabels"=>$gitealabels));
|
$form = $this->createForm(Form::class,$data,array("mode"=>"submit","gitealabels"=>$gitealabels));
|
||||||
|
|
|
@ -41,7 +41,7 @@ class ScrumRepository extends ServiceEntityRepository
|
||||||
|
|
||||||
// Récupérer les labels de gitea
|
// Récupérer les labels de gitea
|
||||||
$gitealabels=$this->giteaservice->getLabels($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
$gitealabels=$this->giteaservice->getLabels($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
||||||
if(!is_array($gitealabels)) die("Probleme de connexion avec gitea veuillez vous <a href='/ninegitea/logout'>reconnecter</a>");
|
if(!is_array($gitealabels)) die("Probleme de connexion avec gitea veuillez vous <a href='/logout'>reconnecter</a>");
|
||||||
|
|
||||||
// S'assurer que nos colonnes existes toujours
|
// S'assurer que nos colonnes existes toujours
|
||||||
$scrumcolumns=$scrum->getScrumcolumns();
|
$scrumcolumns=$scrum->getScrumcolumns();
|
||||||
|
@ -149,7 +149,7 @@ class ScrumRepository extends ServiceEntityRepository
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$giteacollaborators=$this->giteaservice->getCollaborators($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
$giteacollaborators=$this->giteaservice->getCollaborators($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"]);
|
||||||
if(!is_array($giteacollaborators)) die("Probleme de connexion avec gitea veuillez vous <a href='/ninegitea/logout'>reconnecter</a>");
|
if(!is_array($giteacollaborators)) die("Probleme de connexion avec gitea veuillez vous <a href='/logout'>reconnecter</a>");
|
||||||
foreach($giteacollaborators as $giteacollaborator) {
|
foreach($giteacollaborators as $giteacollaborator) {
|
||||||
if(!in_array($giteacollaborator,$giteaassignees))
|
if(!in_array($giteacollaborator,$giteaassignees))
|
||||||
array_push($giteaassignees,$giteacollaborator);
|
array_push($giteaassignees,$giteacollaborator);
|
||||||
|
@ -157,7 +157,7 @@ class ScrumRepository extends ServiceEntityRepository
|
||||||
|
|
||||||
// Récupérer les milestones de gitea
|
// Récupérer les milestones de gitea
|
||||||
$giteamilestones=$this->giteaservice->getMilestones($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"],"?state=".($viewclosed=="true"?"all":"open"));
|
$giteamilestones=$this->giteaservice->getMilestones($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"],"?state=".($viewclosed=="true"?"all":"open"));
|
||||||
if(!is_array($giteamilestones)) die("Probleme de connexion avec gitea veuillez vous <a href='/ninegitea/logout'>reconnecter</a>");
|
if(!is_array($giteamilestones)) die("Probleme de connexion avec gitea veuillez vous <a href='/logout'>reconnecter</a>");
|
||||||
$keysort = array_column($giteamilestones, 'title');
|
$keysort = array_column($giteamilestones, 'title');
|
||||||
array_multisort($keysort, SORT_DESC, $giteamilestones);
|
array_multisort($keysort, SORT_DESC, $giteamilestones);
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ class ScrumRepository extends ServiceEntityRepository
|
||||||
|
|
||||||
// Récupérer les issues de gitea
|
// Récupérer les issues de gitea
|
||||||
$giteaissues=$this->giteaservice->getIssues($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"],"?state=".($viewclosed=="true"?"all":"open"));
|
$giteaissues=$this->giteaservice->getIssues($scrum->getGiteajson()["owner"]["login"],$scrum->getGiteajson()["name"],"?state=".($viewclosed=="true"?"all":"open"));
|
||||||
if(!is_array($giteaissues)) die("Probleme de connexion avec gitea veuillez vous <a href='/ninegitea/logout'>reconnecter</a>");
|
if(!is_array($giteaissues)) die("Probleme de connexion avec gitea veuillez vous <a href='/logout'>reconnecter</a>");
|
||||||
|
|
||||||
// Génération des issues
|
// Génération des issues
|
||||||
$tbgiteaissues=[];
|
$tbgiteaissues=[];
|
||||||
|
|
|
@ -43,6 +43,8 @@
|
||||||
.state-closed {
|
.state-closed {
|
||||||
background-color: #cdcdcd !important;
|
background-color: #cdcdcd !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-small { font-size:80%}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
@ -125,9 +127,15 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div style="width:100%" class="mt-3">
|
||||||
|
<div class="custom-control custom-switch">
|
||||||
|
<input type="checkbox" class="custom-control-input" id="viewcondensed">
|
||||||
|
<label class="custom-control-label" for="viewcondensed" style="color:var(--colorfttitledark);">Vue condensée</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div style="color:var(--colorftbodydark);zoom:75%;" class="mt-5">
|
<div style="color:var(--colorftbodydark);zoom:75%;" class="mt-5">
|
||||||
<table>
|
<table style="width:100%">
|
||||||
{% for jalon in tbestim %}
|
{% for jalon in tbestim %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{jalon.nmjal}}</td>
|
<td>{{jalon.nmjal}}</td>
|
||||||
|
@ -159,8 +167,11 @@
|
||||||
{% for sprint in jalon.sprints %}
|
{% for sprint in jalon.sprints %}
|
||||||
<div class="card mb-3" data-column="{{column.gicol}}" data-milestone="{{jalon.gijal}}" data-sprint="{{sprint.idspr}}" data-millestonesprint="{{jalon.gijal~"-"~sprint.idspr}}">
|
<div class="card mb-3" data-column="{{column.gicol}}" data-milestone="{{jalon.gijal}}" data-sprint="{{sprint.idspr}}" data-millestonesprint="{{jalon.gijal~"-"~sprint.idspr}}">
|
||||||
<div class="card-header p-1" style="font-size:16px">
|
<div class="card-header p-1" style="font-size:16px">
|
||||||
JALON = {{jalon.nmjal}}<br>
|
JALON = {{jalon.nmjal}}
|
||||||
|
{% if sprint.idspr!=-100 %}
|
||||||
|
<br>
|
||||||
SPRINT = {{sprint.nmspr}}
|
SPRINT = {{sprint.nmspr}}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body p-1">
|
<div class="card-body p-1">
|
||||||
|
@ -203,23 +214,17 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<div id="issu{{ issue.id }}" data-id="{{ issue.id }}" data-issue="{{ issue.id }}" data-column="{{column.gicol}}" data-milestone="{{jalon.gijal}}" data-sprint="{{sprint.idspr}}" class="card mb-1 issue issue-{{issue.id}} {{datateams}} {{datatypes}} {{dataprioritys}} {{datalabels}} {{dataassignees}} state-{{issue.giteastate}}">
|
<div id="issu{{ issue.id }}" data-id="{{ issue.id }}" data-issue="{{ issue.id }}" data-column="{{column.gicol}}" data-milestone="{{jalon.gijal}}" data-sprint="{{sprint.idspr}}" class="card mb-1 issue issue-{{issue.id}} {{datateams}} {{datatypes}} {{dataprioritys}} {{datalabels}} {{dataassignees}} state-{{issue.giteastate}}">
|
||||||
<div class="card-footer p-1" style="line-height:10px; border-top:none;">
|
<div class="card-footer p-1 d-flex align-items-center" style="line-height:16px; border-top:none;">
|
||||||
<div class="float-left btn btn-link p-0 m-0 fas fa-arrows-alt" style="cursor:move"></div>
|
<div class="flex-grow-1 d-flex align-items-center">
|
||||||
<a target="_blank" class="modcolumn btn btn-link float-right fa fa-file p-0 m-0" href="{{issue.giteajson.html_url}}"></a>
|
<div class="pr-2 issu-id" style="cursor:move">#{{issue.giteanumber}} </div>
|
||||||
|
<div class="text-small" style="word-break: break-word;">{{ issue.giteatitle }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body p-1" style="line-height:10px;">
|
<a target="_blank" class="modcolumn btn btn-link float-right fa fa-file p-0 m-0 pl-1" href="{{issue.giteajson.html_url}}"></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-body p-1 issu-detail">
|
||||||
<div>
|
<div>
|
||||||
<small>
|
|
||||||
{{issue.giteanumber}} - {{ issue.giteatitle }}<br><br>
|
|
||||||
<small>Crée le {{issue.giteajson.created_at|date("d/m/y")}}</small><small style ="float:right">Modifié le {{issue.giteajson.updated_at|date("d/m/y")}}</small>
|
|
||||||
{% if issue.giteastate=="closed" %}
|
|
||||||
<br><small>Clos le {{issue.giteajson.closed_at|date("d/m/y")}}</small>
|
|
||||||
{% endif %}
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% for label in issue.giteajson.labels %}
|
{% for label in issue.giteajson.labels %}
|
||||||
{% if label.id not in giteacolumns and label.id in giteaprioritys %}
|
{% if label.id not in giteacolumns and label.id in giteaprioritys %}
|
||||||
<span class="btn-link tag" style="background-color:#{{label.color}}">
|
<span class="btn-link tag" style="background-color:#{{label.color}}">
|
||||||
|
@ -228,7 +233,9 @@
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<br>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
{% for label in issue.giteajson.labels %}
|
{% for label in issue.giteajson.labels %}
|
||||||
{% if label.id not in giteacolumns and label.id in giteatypes %}
|
{% if label.id not in giteacolumns and label.id in giteatypes %}
|
||||||
<span class="btn-link tag" style="background-color:#{{label.color}}">
|
<span class="btn-link tag" style="background-color:#{{label.color}}">
|
||||||
|
@ -237,7 +244,9 @@
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<br>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
{% for label in issue.giteajson.labels %}
|
{% for label in issue.giteajson.labels %}
|
||||||
{% if label.id not in giteacolumns and label.id in giteateams %}
|
{% if label.id not in giteacolumns and label.id in giteateams %}
|
||||||
<span class="btn-link tag" style="background-color:#{{label.color}}">
|
<span class="btn-link tag" style="background-color:#{{label.color}}">
|
||||||
|
@ -246,7 +255,9 @@
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<br>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
{% for label in issue.giteajson.labels %}
|
{% for label in issue.giteajson.labels %}
|
||||||
{% if label.id not in giteacolumns and label.id not in giteateams and label.id not in giteaprioritys and label.id not in giteatypes %}
|
{% if label.id not in giteacolumns and label.id not in giteateams and label.id not in giteaprioritys and label.id not in giteatypes %}
|
||||||
<span class="btn-link tag" style="background-color:#{{label.color}}">
|
<span class="btn-link tag" style="background-color:#{{label.color}}">
|
||||||
|
@ -255,6 +266,7 @@
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
{% for assignee in issue.giteajson.assignees %}
|
{% for assignee in issue.giteajson.assignees %}
|
||||||
|
@ -262,11 +274,19 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="modissu{{ issue.id }}" data-issue="{{ issue.id }}" data-giteaid="{{issue.giteanumber}}" data-giteatitle="{{ issue.giteatitle }}" type="button" class="modissu btn btn-link float-right">
|
<div id="modissu{{ issue.id }}" class="modissu btn btn-link d-flex justify-content-end align-items-center" data-issue="{{ issue.id }}" data-giteaid="{{issue.giteanumber}}" data-giteatitle="{{ issue.giteatitle }}" type="button">
|
||||||
<i class="fas fa-weight-hanging"></i> = <span id="issue{{issue.id}}-weight">{{ issue.weight }}</span>
|
<i class="fas fa-weight-hanging"></i> = <span id="issue{{issue.id}}-weight">{{ issue.weight }}</span>
|
||||||
</div>
|
</div>
|
||||||
</small>
|
|
||||||
|
<div class="d-flex">
|
||||||
|
<div class="text-small">Crée le {{issue.giteajson.created_at|date("d/m/y")}}</div>
|
||||||
|
<div class="text-small text-right ml-auto">Modifié le {{issue.giteajson.updated_at|date("d/m/y")}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if issue.giteastate=="closed" %}
|
||||||
|
<div class="text-small">Clos le {{issue.giteajson.closed_at|date("d/m/y")}}</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -334,6 +354,13 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
// Apply Filter
|
// Apply Filter
|
||||||
function showhide() {
|
function showhide() {
|
||||||
|
// Vue condensée
|
||||||
|
if($("#viewcondensed").is(':checked')) {
|
||||||
|
$(".issu-detail").hide();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$(".issu-detail").show();
|
||||||
|
}
|
||||||
|
|
||||||
// Afficher masquer les jalons
|
// Afficher masquer les jalons
|
||||||
if($("#filtermilestones").val().length !== 0 && $("#filtersprints").val().length === 0) {
|
if($("#filtermilestones").val().length !== 0 && $("#filtersprints").val().length === 0) {
|
||||||
|
@ -482,6 +509,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$("#textfilters").html(textfilters);
|
$("#textfilters").html(textfilters);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -766,6 +794,26 @@
|
||||||
filterexcludes();
|
filterexcludes();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// View condensed
|
||||||
|
{% if viewcondensed %}
|
||||||
|
$("#viewcondensed").prop( "checked", {{ viewcondensed }} )
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
$('#viewcondensed').change(function() {
|
||||||
|
$.ajax({
|
||||||
|
method: "POST",
|
||||||
|
url: "{{ path('app_user_preference') }}",
|
||||||
|
data: {
|
||||||
|
key:'viewcondensed',
|
||||||
|
id:{{scrum.id}},
|
||||||
|
value: this.checked
|
||||||
|
}
|
||||||
|
}).done(function( data ) {
|
||||||
|
showhide();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// Resume filtre
|
// Resume filtre
|
||||||
{% if not showfilters %}
|
{% if not showfilters %}
|
||||||
$("#filters").addClass("d-none");
|
$("#filters").addClass("d-none");
|
||||||
|
@ -781,7 +829,7 @@
|
||||||
|
|
||||||
// Sort columns
|
// Sort columns
|
||||||
$( ".scrumcolumn" ).sortable({
|
$( ".scrumcolumn" ).sortable({
|
||||||
handle: ".fa-arrows-alt",
|
handle: ".issu-id",
|
||||||
connectWith: ".scrumcolumn",
|
connectWith: ".scrumcolumn",
|
||||||
cursor: "move",
|
cursor: "move",
|
||||||
update: function( event, ui ) {
|
update: function( event, ui ) {
|
||||||
|
|
Loading…
Reference in New Issue