Merge branch 'MDL-57831' of git://github.com/paulholden/moodle

This commit is contained in:
Sara Arjona 2021-04-22 18:13:04 +02:00
commit 80b1bb4751
6 changed files with 19 additions and 31 deletions

View file

@ -102,7 +102,7 @@ Feature: tool_monitor_subscriptions
Given I log in as "admin"
And I follow "Preferences" in the user menu
And I click on "Notification preferences" "link" in the "#page-content" "css_element"
And I click on "//td[@data-processor-name='popup']//label[@class='preference-state']" "xpath_element" in the "Notifications of rule subscriptions" "table_row"
And I click on "//td[@data-processor-name='popup']//label[@data-state='loggedin']" "xpath_element" in the "Notifications of rule subscriptions" "table_row"
And I wait until the page is ready
And I follow "Preferences" in the user menu
And I follow "Event monitoring"
@ -123,7 +123,7 @@ Feature: tool_monitor_subscriptions
Given I log in as "teacher1"
And I follow "Preferences" in the user menu
And I click on "Notification preferences" "link" in the "#page-content" "css_element"
And I click on "//td[@data-processor-name='popup']//label[@class='preference-state']" "xpath_element" in the "Notifications of rule subscriptions" "table_row"
And I click on "//td[@data-processor-name='popup']//label[@data-state='loggedin']" "xpath_element" in the "Notifications of rule subscriptions" "table_row"
And I wait until the page is ready
And I follow "Preferences" in the user menu
And I follow "Event monitoring"

View file

@ -84,7 +84,7 @@
{{> core/loading }}
</div>
<div class="preferences-container {{#disableall}}disabled{{/disableall}}" data-user-id="{{userid}}">
<table class="table table-hover preference-table">
<table class="table preference-table">
<thead>
<tr>
<th>{{displayname}}</th>

View file

@ -71,21 +71,15 @@
{{#loggedin}}
{{< core/hover_tooltip }}
{{$anchor}}
<label class="preference-state"
<label class="custom-control custom-switch"
title="{{displayname}}"
data-state="{{name}}">
<span class="accesshide">{{displayname}}</span>
<input type="checkbox"
tabindex="-1"
class="accesshide"
class="custom-control-input"
{{#checked}}checked{{/checked}}
{{#disableall}}disabled{{/disableall}} />
<div class="preference-state-status-container" tabindex="0">
<span class="on-text">{{#str}} on, message {{/str}}</span>
<span class="off-text">{{#str}} off, message {{/str}}</span>
{{> core/loading }}
</div>
<span class="custom-control-label d-block"></span>
</label>
{{/anchor}}
{{$tooltip}}{{displayname}}{{/tooltip}}
@ -96,21 +90,15 @@
{{#loggedoff}}
{{< core/hover_tooltip }}
{{$anchor}}
<label class="preference-state"
<label class="custom-control custom-switch"
title="{{displayname}}"
data-state="{{name}}">
<span class="accesshide">{{displayname}}</span>
<input type="checkbox"
tabindex="-1"
class="accesshide"
class="custom-control-input"
{{#checked}}checked{{/checked}}
{{#disableall}}disabled{{/disableall}} />
<div class="preference-state-status-container" tabindex="0">
<span class="on-text">{{#str}} on, message {{/str}}</span>
<span class="off-text">{{#str}} off, message {{/str}}</span>
{{> core/loading }}
</div>
<span class="custom-control-label d-block"></span>
</label>
{{/anchor}}
{{$tooltip}}{{displayname}}{{/tooltip}}

View file

@ -48,18 +48,18 @@
}
}
tr {
th {
border-left: 1px solid $border-color;
}
td {
&:not(:first-child) {
width: 150px;
text-align: center;
}
&:nth-child(even) {
background-color: #f7f7f7;
border: 1px solid $border-color;
}
}
th:nth-child(even) {
background-color: #f7f7f7;
}
}
.preference-row {
.hover-tooltip-container {

View file

@ -15095,13 +15095,13 @@ a.ygtvspacer:hover {
display: none; }
.preferences-container .preference-table thead th.unconfigured .config-warning {
display: inline-block; }
.preferences-container .preference-table tr th {
border-left: 1px solid #dee2e6; }
.preferences-container .preference-table tr td:not(:first-child) {
width: 150px;
text-align: center; }
.preferences-container .preference-table tr td:nth-child(even) {
background-color: #f7f7f7; }
.preferences-container .preference-table tr th:nth-child(even) {
background-color: #f7f7f7; }
border: 1px solid #dee2e6; }
.preferences-container .preference-table .preference-row .hover-tooltip-container {
display: inline-block; }
.preferences-container .preference-table .preference-row .preference-name {

View file

@ -15319,13 +15319,13 @@ a.ygtvspacer:hover {
display: none; }
.preferences-container .preference-table thead th.unconfigured .config-warning {
display: inline-block; }
.preferences-container .preference-table tr th {
border-left: 1px solid #dee2e6; }
.preferences-container .preference-table tr td:not(:first-child) {
width: 150px;
text-align: center; }
.preferences-container .preference-table tr td:nth-child(even) {
background-color: #f7f7f7; }
.preferences-container .preference-table tr th:nth-child(even) {
background-color: #f7f7f7; }
border: 1px solid #dee2e6; }
.preferences-container .preference-table .preference-row .hover-tooltip-container {
display: inline-block; }
.preferences-container .preference-table .preference-row .preference-name {