Iata modelul de apel si cateva tipuri de alerte:
$alert_type = "warning";
$alert_icon = "fa-info-circle";
$alert_prefix = Yii::t('app', 'Attention!');
$alert_message = Yii::t('app', 'In order to access your full functionality of your account you must initialize your Chart of Accounts.');
Yii::$app->session->setFlash($alert_type, '<i class="fa '.$alert_icon.' fa-li fa-2x"></i> <strong>'.$alert_prefix.'</strong> - '.$alert_message);
$alert_type = "success";
$alert_icon = "fa-check-circle";
$alert_prefix = Yii::t('app', 'Done!');
$alert_message = Yii::t('app', 'Data was successfully saved.');
Yii::$app->session->setFlash($alert_type, '<i class="fa '.$alert_icon.' fa-li fa-2x"></i> <strong>'.$alert_prefix.'</strong> - '.$alert_message);
$alert_type = "error";
$alert_icon = "fa-times-circle";
$alert_prefix = Yii::t('app', 'Error!');
$alert_message = Yii::t('app', 'Data was not saved. At this moment the balance has functional data so you cannot edit and save the initialisation data anymore.');
Yii::$app->session->setFlash($alert_type, '<i class="fa '.$alert_icon.' fa-li fa-2x"></i> <strong>'.$alert_prefix.'</strong> - '.$alert_message);
$alert_type = "info";
$alert_icon = "fa-info-circle";
$alert_prefix = Yii::t('app', 'Attention!');
$alert_message = Yii::t('app', 'At this moment the balance has functional data so you cannot deselect accounts.');
Yii::$app->session->setFlash($alert_type, '<i class="fa '.$alert_icon.' fa-li fa-2x"></i> <strong>'.$alert_prefix.'</strong> - '.$alert_message);
Categories: UI/UX |
Leave a Reply
[TOP]