From 10a9fedd275785708f684a18d79bcfb50061abab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michaela=20Br=C3=BCckner?= Date: Wed, 27 Sep 2023 11:12:02 +0000 Subject: adjust dialog size and table line height, fixes #1364 Closes #1364 Merge request studip/studip!2202 --- app/views/file/choose_destination.php | 10 +++++----- app/views/file/choose_folder.php | 4 ++-- app/views/file/choose_folder_from_course.php | 22 ++++++++++++++-------- app/views/file/choose_folder_from_institute.php | 13 ++++++++----- app/views/files/_flat_tfoot.php | 2 +- 5 files changed, 30 insertions(+), 21 deletions(-) diff --git a/app/views/file/choose_destination.php b/app/views/file/choose_destination.php index 7247439..49afe87 100644 --- a/app/views/file/choose_destination.php +++ b/app/views/file/choose_destination.php @@ -33,7 +33,8 @@ $options = array_filter([ asInput(50, ['formaction' => $controller->action_url('choose_folder/' . $parent_folder->getId()), 'to_plugin' => $options['from_plugin'] ?? null]) ?> @@ -42,8 +43,7 @@ $options = array_filter([ asInput(50, ['formaction' => $controller->action_url('choose_folder/' . Folder::findTopFolder($GLOBALS['user']->id)->getId())]) ?> @@ -51,7 +51,7 @@ $options = array_filter([
asinput(50, ['formaction' => $controller->action_url('choose_folder_from_course')]) ?>
@@ -59,7 +59,7 @@ $options = array_filter([
asInput(50, ['formaction' => $controller->action_url('choose_folder_from_institute')]) ?>
diff --git a/app/views/file/choose_folder.php b/app/views/file/choose_folder.php index d2d81f5..a50af25 100644 --- a/app/views/file/choose_folder.php +++ b/app/views/file/choose_folder.php @@ -203,13 +203,13 @@ switch ($top_folder->range_type) { $controller->action_url('choose_folder_from_course'), - 'data-dialog' => '', + 'data-dialog' => 'size=medium', ]) ?> range_type === 'institute'): ?> $controller->action_url('choose_folder_from_institute'), - 'data-dialog' => '', + 'data-dialog' => 'size=medium', ]) ?> diff --git a/app/views/file/choose_folder_from_course.php b/app/views/file/choose_folder_from_course.php index 3496e5b..27bcb09 100644 --- a/app/views/file/choose_folder_from_course.php +++ b/app/views/file/choose_folder_from_course.php @@ -29,12 +29,12 @@ jQuery(function ($) { ->render() ?>
- +
- - + + @@ -42,17 +42,23 @@ jQuery(function ($) { - - diff --git a/app/views/file/choose_folder_from_institute.php b/app/views/file/choose_folder_from_institute.php index 02ae675..9a9298d 100644 --- a/app/views/file/choose_folder_from_institute.php +++ b/app/views/file/choose_folder_from_institute.php @@ -22,19 +22,19 @@ $options = array_filter([ ?> -
- + - + getTextualSemester()) ?>
+
- + id) as $institut) : ?> - diff --git a/app/views/files/_flat_tfoot.php b/app/views/files/_flat_tfoot.php index b18eda9..3a767bd 100644 --- a/app/views/files/_flat_tfoot.php +++ b/app/views/files/_flat_tfoot.php @@ -33,7 +33,7 @@ if ($table_id) { $controller->url_for('file/choose_destination/copy/bulk'), - 'data-dialog' => '' + 'data-dialog' => 'size=auto' ]) ?>
+ "> -