From 471197f7abc27b0fdc65e453587a74906922f9d5 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Mon, 8 Jul 2024 11:55:04 +0200 Subject: wip --- app/controllers/oer/mymaterial.php | 11 ---- app/views/oer/mymaterial/edit.php | 1 - resources/assets/stylesheets/scss/oer.scss | 21 ------- resources/vue/components/OERMaterialEditor.vue | 49 ++++------------ resources/vue/components/OERSearch.vue | 55 ++++++------------ resources/vue/components/StudipLevelSlider.vue | 80 ++++++++++++++++++++++++++ 6 files changed, 109 insertions(+), 108 deletions(-) create mode 100644 resources/vue/components/StudipLevelSlider.vue diff --git a/app/controllers/oer/mymaterial.php b/app/controllers/oer/mymaterial.php index f29b236..ef45722 100644 --- a/app/controllers/oer/mymaterial.php +++ b/app/controllers/oer/mymaterial.php @@ -185,17 +185,6 @@ class Oer_MymaterialController extends AuthenticatedController $this->template = $_SESSION['NEW_OER']; } - $this->usersearch = new SQLSearch(" - SELECT DISTINCT CONCAT('0_', auth_user_md5.user_id), CONCAT(auth_user_md5.Nachname, ', ', auth_user_md5.Vorname, ' (', auth_user_md5.username, ')') - FROM auth_user_md5 LEFT JOIN user_info ON (user_info.user_id = auth_user_md5.user_id) - WHERE (CONCAT(auth_user_md5.Vorname, ' ', auth_user_md5.Nachname) LIKE REPLACE(:input, ' ', '% ') - OR CONCAT(auth_user_md5.Nachname, ' ', auth_user_md5.Vorname) LIKE REPLACE(:input, ' ', '% ') - OR CONCAT(auth_user_md5.Nachname, ', ', auth_user_md5.Vorname) LIKE :input - OR auth_user_md5.username LIKE :input) AND " . get_vis_query() . " - UNION SELECT CONCAT('1_', oer_user.user_id), oer_user.name - FROM oer_user - WHERE name LIKE :input - ", _('Person hinzufügen'), 'user_id'); $this->tagsearch = new SQLSearch(" SELECT oer_tags.name, oer_tags.name FROM oer_tags diff --git a/app/views/oer/mymaterial/edit.php b/app/views/oer/mymaterial/edit.php index a0ec187..1838b75 100644 --- a/app/views/oer/mymaterial/edit.php +++ b/app/views/oer/mymaterial/edit.php @@ -41,7 +41,6 @@ ], 'template' => $template ?? null, 'tag-search' => (string) $tagsearch, - 'user-search' => (string) $usersearch, 'licenses-enabled' => !Config::get()->getValue('OER_DISABLE_LICENSE'), 'licenses' => License::findAndMapBySQL( function (License $license) { diff --git a/resources/assets/stylesheets/scss/oer.scss b/resources/assets/stylesheets/scss/oer.scss index e25efa3..ffdef94 100644 --- a/resources/assets/stylesheets/scss/oer.scss +++ b/resources/assets/stylesheets/scss/oer.scss @@ -290,27 +290,6 @@ ul.reviews, ol.reviews { margin-top: 10px; font-weight: normal; } - - .level_filter { - width: 300px; - .level_labels { - display: flex; - justify-content: space-between; - font-size: 0.8em; - color: var(--black); - margin-top: 20px; - } - .level_numbers { - display: flex; - justify-content: space-between; - } - #difficulty_slider { - margin-top: 5px; - width: 93%; - margin-left: auto; - margin-right: auto; - } - } } .filterpanel_shadow { position: absolute; diff --git a/resources/vue/components/OERMaterialEditor.vue b/resources/vue/components/OERMaterialEditor.vue index 6e98ea9..88b9232 100644 --- a/resources/vue/components/OERMaterialEditor.vue +++ b/resources/vue/components/OERMaterialEditor.vue @@ -130,18 +130,11 @@ -
  • - -
  • -
    - {{ $gettext('Themen (am besten mindestens 5)') }} +

    {{ $gettext('Themen (am besten mindestens 5)') }}

    - {{ $gettext('Niveau') }} +

    {{ $gettext('Niveau') }}

    - - + + -
    -
    {{ $gettext('Leicht') }}
    -
    {{ $gettext('Schwer') }}
    -
    -
    -
    {{ i }}
    -
    -
    +