Gitlab CSE Unil

Commit 30cde180 authored by M. Chardon's avatar M. Chardon
Browse files

filtre auteurs annotations

parent b86b247f
......@@ -518,6 +518,8 @@ class audioannotation_assignement {
$widget->context = $this->context->id;
$widget->course = $this->course;
$widget->audioannotation = $audioannotation->id;
$widget->haspairing = $audioannotation->pairing;
$widget->usercanedit = $audioannotation->access > 0;
$widget->assignparts = json_encode($widget->assignpart, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE);
return $widget;
}
......
......@@ -178,9 +178,11 @@
</select>
<select class="form-control custom-select m-1 select_tqs" id="select_author{{id}}" data-assignpart="{{id}}">
<option value="-1" selected>{{# str }} proofreader, audioannotation {{/ str }}</option>
<option value="0">{{# str }} my_annotations, audioannotation {{/ str }}</option>
{{#usercanedit}}<option value="0">{{# str }} my_annotations, audioannotation {{/ str }}</option>{{/usercanedit}}
{{^eval}}{{#usercanedit}}<option value="0">{{# str }} my_annotations, audioannotation {{/ str }}</option>{{/usercanedit}}{{/eval}}
{{#eval}}<option value="0">{{# str }} my_annotations, audioannotation {{/ str }}</option>{{/eval}}
<option value="1">{{# str }} teacher_annotations, audioannotation {{/ str }}</option>
<option value="2">{{# str }} pair_annotations, audioannotation {{/ str }}</option>
{{#haspairing}}<option value="2">{{# str }} pair_annotations, audioannotation {{/ str }}</option>{{/haspairing}}
</select>
</div>
</div>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment