MDL-68353 message: enclose privacy settings within a fieldset

This commit is contained in:
Shamim Rezaie 2020-04-08 16:20:37 +10:00
parent 08be893a36
commit 65b73df1c9
2 changed files with 18 additions and 15 deletions

View File

@ -39,20 +39,23 @@
<h3 class="h6 font-weight-bold">{{#str}} privacy, message {{/str}}</h3>
<p>{{#str}} privacy_desc, message {{/str}}</p>
<div data-preference="blocknoncontacts" class="mb-3">
{{#privacy}}
<div class="custom-control custom-radio mb-2">
<input
type="radio"
name="message_blocknoncontacts"
class="custom-control-input"
id="block-noncontacts-{{uniqid}}-{{value}}"
value="{{value}}"
>
<label class="custom-control-label ml-2" for="block-noncontacts-{{uniqid}}-{{value}}">
{{text}}
</label>
</div>
{{/privacy}}
<fieldset>
<legend class="sr-only">{{#str}} contactableprivacy, message {{/str}}</legend>
{{#privacy}}
<div class="custom-control custom-radio mb-2">
<input
type="radio"
name="message_blocknoncontacts"
class="custom-control-input"
id="block-noncontacts-{{uniqid}}-{{value}}"
value="{{value}}"
>
<label class="custom-control-label ml-2" for="block-noncontacts-{{uniqid}}-{{value}}">
{{text}}
</label>
</div>
{{/privacy}}
</fieldset>
</div>
<div class="hidden" data-region="notification-preference-container">

View File

@ -15,7 +15,7 @@
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_message/message_drawer
@template core_message/message_index
This template will render the message drawer.