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> <h3 class="h6 font-weight-bold">{{#str}} privacy, message {{/str}}</h3>
<p>{{#str}} privacy_desc, message {{/str}}</p> <p>{{#str}} privacy_desc, message {{/str}}</p>
<div data-preference="blocknoncontacts" class="mb-3"> <div data-preference="blocknoncontacts" class="mb-3">
{{#privacy}} <fieldset>
<div class="custom-control custom-radio mb-2"> <legend class="sr-only">{{#str}} contactableprivacy, message {{/str}}</legend>
<input {{#privacy}}
type="radio" <div class="custom-control custom-radio mb-2">
name="message_blocknoncontacts" <input
class="custom-control-input" type="radio"
id="block-noncontacts-{{uniqid}}-{{value}}" name="message_blocknoncontacts"
value="{{value}}" class="custom-control-input"
> id="block-noncontacts-{{uniqid}}-{{value}}"
<label class="custom-control-label ml-2" for="block-noncontacts-{{uniqid}}-{{value}}"> value="{{value}}"
{{text}} >
</label> <label class="custom-control-label ml-2" for="block-noncontacts-{{uniqid}}-{{value}}">
</div> {{text}}
{{/privacy}} </label>
</div>
{{/privacy}}
</fieldset>
</div> </div>
<div class="hidden" data-region="notification-preference-container"> <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/>. 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. This template will render the message drawer.