Browse Source

[backend] Documents : pouvoir envoyer des documents brouillon par email

refactoring
Guillaume 4 years ago
parent
commit
a3c39e4afe
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      backend/views/delivery-note/index.php
  2. +1
    -1
      backend/views/invoice/index.php
  3. +1
    -1
      backend/views/quotation/index.php

+ 1
- 1
backend/views/delivery-note/index.php View File

'contentOptions' => ['class' => 'column-actions'], 'contentOptions' => ['class' => 'column-actions'],
'buttons' => [ 'buttons' => [
'send' => function($url, $model) { 'send' => function($url, $model) {
return ((!$model->isStatusDraft() && isset($model->user) && strlen($model->user->email) > 0) ? Html::a('<span class="glyphicon glyphicon-send"></span>', $url, [
return ((isset($model->user) && strlen($model->user->email) > 0) ? Html::a('<span class="glyphicon glyphicon-send"></span>', $url, [
'title' => 'Envoyer', 'class' => 'btn btn-default' 'title' => 'Envoyer', 'class' => 'btn btn-default'
]) : ''); ]) : '');
}, },

+ 1
- 1
backend/views/invoice/index.php View File

]) : ''); ]) : '');
}, },
'send' => function($url, $model) { 'send' => function($url, $model) {
return ((!$model->isStatusDraft() && isset($model->user) && strlen($model->user->email) > 0) ? Html::a('<span class="glyphicon glyphicon-send"></span>', $url, [
return ((isset($model->user) && strlen($model->user->email) > 0) ? Html::a('<span class="glyphicon glyphicon-send"></span>', $url, [
'title' => 'Envoyer', 'class' => 'btn btn-default' 'title' => 'Envoyer', 'class' => 'btn btn-default'
]) : ''); ]) : '');
}, },

+ 1
- 1
backend/views/quotation/index.php View File

]) : ''); ]) : '');
}, },
'send' => function($url, $model) { 'send' => function($url, $model) {
return ((!$model->isStatusDraft() && isset($model->user) && strlen($model->user->email) > 0) ? Html::a('<span class="glyphicon glyphicon-send"></span>', $url, [
return ((isset($model->user) && strlen($model->user->email) > 0) ? Html::a('<span class="glyphicon glyphicon-send"></span>', $url, [
'title' => 'Envoyer', 'class' => 'btn btn-default' 'title' => 'Envoyer', 'class' => 'btn btn-default'
]) : ''); ]) : '');
}, },

Loading…
Cancel
Save