Browse Source

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

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
58625c4bf6
4 changed files with 32 additions and 3 deletions
  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 View File

return $html ; return $html ;
} }
], ],
'name',
[
'attribute' => 'name',
'format' => 'raw',
'value' => function($model) {
$html = Html::encode($model->name);
return $html;
}
],
[ [
'attribute' => 'Contact', 'attribute' => 'Contact',
'format' => 'raw', 'format' => 'raw',
'label' => 'Commentaire', 'label' => 'Commentaire',
'format' => 'raw', 'format' => 'raw',
'value' => function($producer) { 'value' => function($producer) {
$html = '';

if($producer->admin_comment) { 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 View File

margin-right: 0px; 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) Copyright distrib (2018)



+ 8
- 0
backend/web/sass/producer-admin/_index.scss View File

.producer-admin-index {
.alert-latitude-longitude {
font-size: 13px;
color: gray;
margin-top: 5px;
}
}


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

@import "development/_index.scss" ; @import "development/_index.scss" ;
@import "support/_index.scss"; @import "support/_index.scss";
@import "support/_view.scss"; @import "support/_view.scss";
@import "producer-admin/_index.scss";
@import "_responsive.scss" ; @import "_responsive.scss" ;

Loading…
Cancel
Save