Przeglądaj źródła

[Administration] Producteurs : alerte au niveau des producteurs qui n'ont pas de coordonnées GPS #1312

feature/souke
Guillaume Bourgeois 1 rok temu
rodzic
commit
58625c4bf6
4 zmienionych plików z 32 dodań i 3 usunięć
  1. +16
    -3
      backend/views/producer-admin/index.php
  2. +7
    -0
      backend/web/css/screen.css
  3. +8
    -0
      backend/web/sass/producer-admin/_index.scss
  4. +1
    -0
      backend/web/sass/screen.scss

+ 16
- 3
backend/views/producer-admin/index.php Wyświetl plik

@@ -78,7 +78,14 @@ $this->addButton(['label' => 'Nouveau producteur <span class="glyphicon glyphico
return $html ;
}
],
'name',
[
'attribute' => 'name',
'format' => 'raw',
'value' => function($model) {
$html = Html::encode($model->name);
return $html;
}
],
[
'attribute' => 'Contact',
'format' => 'raw',
@@ -154,11 +161,17 @@ $this->addButton(['label' => 'Nouveau producteur <span class="glyphicon glyphico
'label' => 'Commentaire',
'format' => 'raw',
'value' => function($producer) {
$html = '';

if($producer->admin_comment) {
return $producer->admin_comment;
$html .= $producer->admin_comment;
}

if($producer->active && (!$producer->latitude || !$producer->longitude)) {
$html .= '<div class="alert-latitude-longitude"><span class="glyphicon glyphicon-map-marker"></span> Latitude/longitude à saisir</div>';
}

return '';
return $html;
}
],
[

+ 7
- 0
backend/web/css/screen.css Wyświetl plik

@@ -2788,6 +2788,13 @@ termes.
margin-right: 0px;
}

/* line 2, ../sass/producer-admin/_index.scss */
.producer-admin-index .alert-latitude-longitude {
font-size: 13px;
color: gray;
margin-top: 5px;
}

/**
Copyright distrib (2018)


+ 8
- 0
backend/web/sass/producer-admin/_index.scss Wyświetl plik

@@ -0,0 +1,8 @@
.producer-admin-index {
.alert-latitude-longitude {
font-size: 13px;
color: gray;
margin-top: 5px;
}
}


+ 1
- 0
backend/web/sass/screen.scss Wyświetl plik

@@ -1532,4 +1532,5 @@ a.btn, button.btn {
@import "development/_index.scss" ;
@import "support/_index.scss";
@import "support/_view.scss";
@import "producer-admin/_index.scss";
@import "_responsive.scss" ;

Ładowanie…
Anuluj
Zapisz