Skip to content

Commit

Permalink
fix Mensajes Flash
Browse files Browse the repository at this point in the history
  • Loading branch information
quique committed May 24, 2018
1 parent eecaf42 commit 872799e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion controllers/PropuestaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,9 @@ public function actionPresentar($id)
'success',
Yii::t(
'jonathan',
'La propuesta ha sido presentada. Si lo desea puede imprimir está página a modo de resguardo.'
"La propuesta ha sido presentada correctamente.\n" .
"En breve debería recibir un correo electrónico de confirmación.\n" .
'No obstante, si lo desea puede imprimir está página a modo de resguardo.'
)
);

Expand Down
5 changes: 3 additions & 2 deletions views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
'class' => 'navbar-inverse navbar-fixed-top',
],
]);
echo Nav::widget([
echo "\n" . Nav::widget([
'items' => [
/* ['label' => Yii::t('app', 'Inicio'), 'url' => ['/site/index']], */
/* [
Expand Down Expand Up @@ -108,12 +108,13 @@
NavBar::end();
?>


<div class="container" id="contenedor-principal">
<?php
echo Breadcrumbs::widget([
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
]);
echo Alert::widget();
echo $this->render('//site/_flashes'); // Looked for under the view path of the application
echo $content;
echo '<hr class="hideinmainpage">';
echo Breadcrumbs::widget([
Expand Down
3 changes: 3 additions & 0 deletions views/propuesta/ver.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title"><?php echo Yii::t('jonathan', '¿Presentar la propuesta?'); ?></h4>
</div>

<div class="modal-body">
<p><?php printf(
Yii::t(
Expand All @@ -199,6 +200,7 @@
$model->denominacion
); ?></p>
</div>

<div class="modal-footer">
<?php
echo Html::a(
Expand All @@ -215,6 +217,7 @@
]
);
?>

<button type="button" class="btn btn-info" data-dismiss="modal">
<?php echo '<span class="glyphicon glyphicon-remove"></span> &nbsp;' . Yii::t('jonathan', 'Cancelar'); ?>
</button>
Expand Down

0 comments on commit 872799e

Please sign in to comment.