MDL-68169 user: Limit the number of filter conditions
[moodle.git] / user / templates / participantsfilter.mustache
index 15a26ba..82500ad 100644 (file)
     }
 }}
 
-<div id="core_user-participantsfilter-{{uniqid}}" class="filter-group mt-5 p-3 rounded border border-secondary" data-table-region="{{tableregionid}}" data-table-course-id="{{courseid}}">
+<div id="core_user-participantsfilter-{{uniqid}}" class="filter-group mt-5 p-3 rounded border border-secondary" data-table-region="{{tableregionid}}" data-table-course-id="{{courseid}}" data-filterverb="1">
+    <div data-filterregion="filtermatch" class="hidden">
+        <label for="core_user-local-participantsfilter-jointype-{{uniqid}}" class="pt-2">{{#str}}match, core_user{{/str}}</label>
+        <select class="custom-select" data-filterfield="join" id="core_user-local-participantsfilter-jointype-{{uniqid}}">
+            <option value="0">{{#str}}none{{/str}}</option>
+            <option selected=selected value="1">{{#str}}any{{/str}}</option>
+            <option value="2">{{#str}}all{{/str}}</option>
+        </select>
+    </div>
+
     <div data-filterregion="filters">
         {{> core_user/local/participantsfilter/filterrow }}
     </div>