Skip to content
Snippets Groups Projects
Commit 5aeec366 authored by Ron Lucke's avatar Ron Lucke
Browse files

Polishing TIC: Courseware Import Wording und Position

Closes #2066

Merge request !1345
parent 02df4969
No related branches found
No related tags found
No related merge requests found
......@@ -2072,9 +2072,6 @@ v i e w w i d g e t
.cw-action-widget-oer{
@include background-icon(oer-campus, clickable);
}
.cw-action-widget-link {
@include background-icon(group, clickable);
}
.cw-action-widget-remove-lock{
@include background-icon(lock-unlocked, clickable);
}
......@@ -2100,6 +2097,9 @@ v i e w w i d g e t
.cw-import-widget-import{
@include background-icon(import, clickable);
}
.cw-action-widget-link {
@include background-icon(group, clickable);
}
}
/* * * * * * * * * * * * * *
......
......@@ -7,11 +7,6 @@
{{ $gettext('Seite hinzufügen') }}
</button>
</li>
<li v-if="inCourseContext && userIsTeacher" class="cw-action-widget-link">
<button @click="linkElement">
{{ $gettext('Seite verknüpfen') }}
</button>
</li>
</ul>
</template>
</sidebar-widget>
......@@ -19,7 +14,7 @@
<script>
import SidebarWidget from '../SidebarWidget.vue';
import { mapActions, mapGetters } from 'vuex';
import { mapActions } from 'vuex';
export default {
name: 'courseware-action-widget',
......@@ -28,34 +23,20 @@ export default {
SidebarWidget,
},
computed: {
...mapGetters({
context: 'context',
userIsTeacher: 'userIsTeacher',
}),
canEdit() {
if (!this.structuralElement) {
return false;
}
return this.structuralElement.attributes['can-edit'];
},
currentId() {
return this.structuralElement?.id;
},
inCourseContext() {
return this.context.type === 'courses';
}
},
methods: {
...mapActions({
showElementAddDialog: 'showElementAddDialog',
showElementLinkDialog: 'showElementLinkDialog',
}),
addElement() {
this.showElementAddDialog(true);
},
linkElement() {
this.showElementLinkDialog(true);
},
},
};
</script>
......@@ -4,7 +4,7 @@
<ul class="widget-list widget-links cw-export-widget" v-if="structuralElement">
<li v-if="showExportArchiv" class="cw-export-widget-export">
<button @click="exportElement">
{{ $gettext('Lerninhalte exportieren') }}
{{ $gettext('Seiten exportieren') }}
</button>
</li>
<li v-if="showExportPdf" class="cw-export-widget-export-pdf">
......
......@@ -4,12 +4,17 @@
<ul class="widget-list widget-links cw-import-widget">
<li class="cw-import-widget-archive">
<button @click="importElements">
{{ $gettext('Lerninhalte importieren') }}
{{ $gettext('Seiten importieren') }}
</button>
</li>
<li class="cw-import-widget-copy">
<button @click="copyElements">
{{ $gettext('Lerninhalte kopieren') }}
{{ $gettext('Seiten kopieren') }}
</button>
</li>
<li v-if="inCourseContext && userIsTeacher" class="cw-action-widget-link">
<button @click="linkElement">
{{ $gettext('Seiten verknüpfen') }}
</button>
</li>
</ul>
......@@ -19,17 +24,27 @@
<script>
import SidebarWidget from '../SidebarWidget.vue';
import { mapActions } from 'vuex';
import { mapActions, mapGetters } from 'vuex';
export default {
name: 'courseware-import-widget',
components: {
SidebarWidget,
},
computed: {
...mapGetters({
context: 'context',
userIsTeacher: 'userIsTeacher',
}),
inCourseContext() {
return this.context.type === 'courses';
}
},
methods: {
...mapActions({
showElementImportDialog: 'showElementImportDialog',
showElementCopyDialog: 'showElementCopyDialog'
showElementCopyDialog: 'showElementCopyDialog',
showElementLinkDialog: 'showElementLinkDialog',
}),
importElements() {
this.showElementImportDialog(true);
......@@ -37,6 +52,9 @@ export default {
copyElements() {
this.showElementCopyDialog(true);
},
linkElement() {
this.showElementLinkDialog(true);
},
},
}
</script>
\ No newline at end of file
......@@ -131,7 +131,7 @@
/>
<courseware-companion-box
v-if="editView"
:msgCompanion="$gettextInterpolate($gettext('Dieser Inhalt ist aus den persönlichen Lerninhalten von %{ ownerName } verlinkt und kann nur dort bearbeitet werden.'), { ownerName: ownerName })"
:msgCompanion="$gettextInterpolate($gettext('Dieser Inhalt ist aus den persönlichen Lernmaterialien von %{ ownerName } verlinkt und kann nur dort bearbeitet werden.'), { ownerName: ownerName })"
mood="pointing"
/>
<component
......
<template>
<studip-wizard-dialog
:title="$gettext('Lerninhalte kopieren')"
:title="$gettext('Seiten kopieren')"
:confirmText="$gettext('Kopieren')"
:closeText="$gettext('Abbrechen')"
:lastRequiredSlotId="3"
......
<template>
<studip-dialog
:title="$gettext('Lerninhalte importieren')"
:title="$gettext('Seiten importieren')"
:confirmText="$gettext('Importieren')"
:confirmDisabled="importRunning || importAborted"
:closeText="importRunning || importAborted ? $gettext('Schließen') : $gettext('Abbrechen')"
......
<template>
<studip-wizard-dialog
:title="$gettext('Seite verknüpfen')"
:title="$gettext('Seiten verknüpfen')"
:confirmText="$gettext('Verknüpfen')"
:closeText="$gettext('Abbrechen')"
:lastRequiredSlotId="2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment