<div class="form-buttons loading-indicator-container">
    <a
        href="javascript:;"
        class="btn btn-primary wn-icon-check save"
        data-request="onSave"
        data-load-indicator="<?= e(trans('backend::lang.form.saving')) ?>"
        data-hotkey="ctrl+s, cmd+s">
        <?= e(trans('backend::lang.form.save')) ?>
    </a>

    <?php
        $pageUrl = isset($pageUrl) ? $pageUrl : null;
    ?>
    <a
        href="<?= Url::to($pageUrl) ?>"
        target="_blank"
        class="
            btn btn-primary wn-icon-crosshairs
            <?php if (!$templatePath): ?>
                hide
            <?php endif ?>
        "
        data-control="preview-button">
        <?= e(trans('cms::lang.editor.preview')) ?>
    </a>

    <?= $this->makePartial('common_toolbar_actions', ['toolbarSource' => 'page']); ?>
</div>
