<?php

use yii\helpers\Html;

?>

<div class="form-group form-actions">
    <?php if(isset($form)): ?>
        <?= $form->field($model, 'redirect_url', ['options' => ['class' => 'field-redirect-url']])->hiddenInput() ?>
    <?php endif; ?>
    <?= Html::a('Retour', ['index'], ['class' => 'btn btn-default']) ?>
    <?= Html::submitButton($model->isNewRecord ? 'Créer' : 'Modifier', ['class' => 'btn btn-primary', 'name' => 'save']) ?>
    <?= Html::submitButton($model->isNewRecord ? 'Créer et rester' : 'Modifier et rester', ['class' => 'btn btn-primary', 'name' => 'save-stay']) ?>
</div>