You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

form_actions.php 593B

1234567891011121314
  1. <?php
  2. use yii\helpers\Html;
  3. ?>
  4. <div class="form-group form-actions">
  5. <?php if(isset($form)): ?>
  6. <?= $form->field($model, 'redirect_url', ['options' => ['class' => 'field-redirect-url']])->hiddenInput() ?>
  7. <?php endif; ?>
  8. <?= Html::a('Retour', ['index'], ['class' => 'btn btn-default']) ?>
  9. <?= Html::submitButton($model->isNewRecord ? 'Créer' : 'Modifier', ['class' => 'btn btn-primary', 'name' => 'save']) ?>
  10. <?= Html::submitButton($model->isNewRecord ? 'Créer et rester' : 'Modifier et rester', ['class' => 'btn btn-primary', 'name' => 'save-stay']) ?>
  11. </div>