Skip to content

Commit ad9ecb0

Browse files
author
Laur0r
authored
Merge pull request #1 from learnweb/master
Rebase
2 parents 272e1e2 + 543c26f commit ad9ecb0

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

classes/admin_form.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ private function getunassignedcats() {
239239
FROM {course_categories}
240240
LEFT JOIN {block_evasys_sync_categories}
241241
ON {block_evasys_sync_categories}.course_category = {course_categories}.id
242-
WHERE {block_evasys_sync_categories}.course_category IS NULL');
242+
WHERE {block_evasys_sync_categories}.course_category IS NULL
243+
ORDER BY name ASC');
243244

244245
$cat = array();
245246
foreach ($categories as $category) {
@@ -299,4 +300,4 @@ public function validation($data, $files) {
299300

300301
return $errors;
301302
}
302-
}
303+
}

lang/de/block_evasys_sync.php

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
// Capabilities.
146146
$string['evasys_sync:mayevaluate'] = 'An Kursevaluation teilnehmen';
147147
$string['evasys_sync:synchronize'] = 'Teilnehmer zu EvaSys synchronisieren';
148+
$string['evasys_sync:modifymapping'] = 'Verknüpfung von EvaSys Veranstaltungen zu Moodle Kurs bearbeiten';
148149

149150
// Settings.
150151
$string['settings'] = 'EvaSys Sync Block Einstellungen';

lang/en/block_evasys_sync.php

+1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
// Capabilities.
153153
$string['evasys_sync:mayevaluate'] = 'Evaluate a course using EvaSys';
154154
$string['evasys_sync:synchronize'] = 'Export participants to EvaSys';
155+
$string['evasys_sync:modifymapping'] = 'Modify mapping of EvaSys courses to moodle course';
155156

156157
// Settings.
157158
$string['settings'] = 'EvaSys Sync Block Settings';

templates/block.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Example context (json):
4343
{{#courses}}
4444
{{#.}}
4545
<div title="{{# str}}evacourseid, block_evasys_sync{{/str}} {{evasyscourseid}}
46-
{{# str}}evainternalid, block_evasys_sync{{/str}} {{technicalid}}">
46+
{{# str}}evainternalid, block_evasys_sync{{/str}} {{technicalid}}">
4747
<span class="emphasize">{{# str}}evacoursename, block_evasys_sync{{/str}}</span> {{evasyscoursetitle}}</div>
4848
<div>
4949
<span class="emphasize">{{# str}}countparticipants, block_evasys_sync{{/str}}</span>
@@ -124,4 +124,4 @@ Example context (json):
124124
<input id='evasyssubmitbutton' class="in_box_button" type="submit" value="{{# str}}planorstartevaluation, block_evasys_sync{{/str}}" {{#disablesubmit}}disabled{{/disablesubmit}}/>
125125
{{/direct}}
126126
{{/showcontrols}}
127-
</form>
127+
</form>

0 commit comments

Comments
 (0)