Browse Source

[Backend] Section développement : tri par statut

Navigation dans les développements par statut (un onglet par statut).
Développements ordonnés par date.
prodstable
keun 6 years ago
parent
commit
2c61078dfd
5 changed files with 49 additions and 7 deletions
  1. +5
    -4
      backend/controllers/DeveloppementController.php
  2. +5
    -0
      backend/views/developpement/index.php
  3. BIN
      backend/web/.sass-cache/c8fef7d48da4dc7f024edc2b0fada9d8d6de5dac/screen.scssc
  4. +22
    -3
      backend/web/css/screen.css
  5. +17
    -0
      backend/web/sass/screen.scss

+ 5
- 4
backend/controllers/DeveloppementController.php View File

* Lists all Developpement models. * Lists all Developpement models.
* @return mixed * @return mixed
*/ */
public function actionIndex() {
public function actionIndex($statut = Developpement::STATUT_OPEN) {
$dataProvider = new ActiveDataProvider([ $dataProvider = new ActiveDataProvider([
'query' => Developpement::find()->with(['developpementPriorite', 'developpementPrioriteCurrentEtablissement']),
'query' => Developpement::find()->with(['developpementPriorite', 'developpementPrioriteCurrentEtablissement'])->where(['statut' => $statut])->orderBy('date DESC'),
]); ]);


return $this->render('index', [ return $this->render('index', [
'dataProvider' => $dataProvider,
]);
'dataProvider' => $dataProvider,
'statut' => $statut
]);
} }


/** /**

+ 5
- 0
backend/views/developpement/index.php View File

} }
?> ?>
<ul id="tabs-statuts-developpements" class="nav nav-tabs" role="tablist">
<li role="presentation" class="<?php if($statut == Developpement::STATUT_OPEN): ?>active<?php endif; ?>"><a href="<?= Yii::$app->urlManager->createUrl(['developpement/index','statut' => Developpement::STATUT_OPEN]); ?>" id="" aria-controls="" role="tab">Ouvert</a></li>
<li role="presentation" class="<?php if($statut == Developpement::STATUT_CLOSED): ?>active<?php endif; ?>"><a href="<?= Yii::$app->urlManager->createUrl(['developpement/index','statut' => Developpement::STATUT_CLOSED]); ?>" id="" aria-controls="" role="tab">Fermé</a></li>
</ul>
<?php <?php
$columns = [ $columns = [

BIN
backend/web/.sass-cache/c8fef7d48da4dc7f024edc2b0fada9d8d6de5dac/screen.scssc View File


+ 22
- 3
backend/web/css/screen.css View File

text-align: center; text-align: center;
} }


/* line 1241, ../sass/screen.scss */
/* line 1240, ../sass/screen.scss */
.developpement-index ul#tabs-statuts-developpements {
margin-bottom: 30px;
border-bottom: solid 3px #BB8757;
}
/* line 1244, ../sass/screen.scss */
.developpement-index ul#tabs-statuts-developpements a {
text-transform: uppercase;
}
/* line 1247, ../sass/screen.scss */
.developpement-index ul#tabs-statuts-developpements .active {
border: 0px none;
background: none;
}
/* line 1250, ../sass/screen.scss */
.developpement-index ul#tabs-statuts-developpements .active a {
background-color: #BB8757;
color: white;
}
/* line 1258, ../sass/screen.scss */
.developpement-index #tab-developpements .btn-group-priorite { .developpement-index #tab-developpements .btn-group-priorite {
width: 100%; width: 100%;
margin-bottom: 5px; margin-bottom: 5px;
} }
/* line 1245, ../sass/screen.scss */
/* line 1262, ../sass/screen.scss */
.developpement-index #tab-developpements .btn-group-priorite .btn-priorite { .developpement-index #tab-developpements .btn-group-priorite .btn-priorite {
display: block; display: block;
float: none; float: none;
width: 100%; width: 100%;
} }
/* line 1252, ../sass/screen.scss */
/* line 1269, ../sass/screen.scss */
.developpement-index #tab-developpements .label-priorite { .developpement-index #tab-developpements .label-priorite {
display: block; display: block;
width: 100%; width: 100%;

+ 17
- 0
backend/web/sass/screen.scss View File

} }


.developpement-index { .developpement-index {
ul#tabs-statuts-developpements {
margin-bottom: 30px ;
border-bottom: solid 3px $color1 ;
a {
text-transform: uppercase ;
}
.active {
border: 0px none ;
background: none ;
a {
background-color: $color1 ;
color: white ;
}
}
}
#tab-developpements { #tab-developpements {
.btn-group-priorite { .btn-group-priorite {
width: 100% ; width: 100% ;

Loading…
Cancel
Save