Skip to content

Commit

Permalink
Modals Unification cFiles - P1 Buttons
Browse files Browse the repository at this point in the history
This is a part of a larger task aimed at unifying Modals. The first step, which involves unifying button positions, has been completed to enhance the user experience.

Issue tracker
humhub/team_tasks#336

Project
https://github.com/orgs/humhub/projects/31
  • Loading branch information
mbumpalumpa committed Jun 7, 2024
1 parent 117e8f3 commit 5e13f8b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion views/edit/modal_edit_file.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
</div>

<div class="modal-footer">
<?= ModalButton::submitModal($submitUrl) ?>
<?= ModalButton::cancel() ?>
<?= ModalButton::submitModal($submitUrl) ?>
</div>
<?php ActiveForm::end() ?>

Expand Down
2 changes: 1 addition & 1 deletion views/edit/modal_edit_folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
</div>

<div class="modal-footer">
<?= ModalButton::submitModal($submitUrl)?>
<?= ModalButton::cancel() ?>
<?= ModalButton::submitModal($submitUrl)?>
</div>
<?php ActiveForm::end() ?>

Expand Down
4 changes: 2 additions & 2 deletions views/move/modal_move.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
</div>

<div class="modal-footer">
<?= ModalButton::submitModal($model->getMoveUrl())?>
<?= ModalButton::cancel() ?>
<?php if ($moveToContainerUrl = $model->getMoveToContainerUrl()) : ?>
<?= ModalButton::info(Yii::t('CfilesModule.base', 'Move to another Space'))->action('ui.modal.load', $moveToContainerUrl) ?>
<?php endif; ?>
<?= ModalButton::cancel() ?>
<?= ModalButton::submitModal($model->getMoveUrl())?>
</div>
<?php ActiveForm::end() ?>

Expand Down

0 comments on commit 5e13f8b

Please sign in to comment.