mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-67968-master' of git://github.com/rezaies/moodle
This commit is contained in:
commit
cd717e8ba8
10 changed files with 72 additions and 52 deletions
|
@ -46,7 +46,7 @@
|
|||
<thead>
|
||||
<tr>
|
||||
{{# daynames }}
|
||||
<th class="header text-xs-center">
|
||||
<th class="header text-xs-center" aria-label="{{fullname}}">
|
||||
{{shortname}}
|
||||
</th>
|
||||
{{/ daynames }}
|
||||
|
|
|
@ -78,8 +78,8 @@
|
|||
<thead>
|
||||
<tr>
|
||||
{{# daynames }}
|
||||
<th class="header text-xs-center" scope="col">
|
||||
<abbr title="{{fullname}}">{{shortname}}</abbr>
|
||||
<th class="header text-xs-center" scope="col" aria-label="{{fullname}}">
|
||||
{{shortname}}
|
||||
</th>
|
||||
{{/ daynames }}
|
||||
</tr>
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
{{< core_form/element-template }}
|
||||
{{< core_form/element-group }}
|
||||
{{$element}}
|
||||
<span class="fdate_selector d-flex">
|
||||
{{#element.elements}}
|
||||
{{{separator}}}
|
||||
{{{html}}}
|
||||
{{/element.elements}}
|
||||
</span>
|
||||
<fieldset class="m-0 p-0 border-0" id="{{element.id}}">
|
||||
<legend class="sr-only">{{label}}</legend>
|
||||
<span class="fdate_selector d-flex">
|
||||
{{#element.elements}}
|
||||
{{{separator}}}
|
||||
{{{html}}}
|
||||
{{/element.elements}}
|
||||
</span>
|
||||
</fieldset>
|
||||
{{/element}}
|
||||
{{/ core_form/element-template }}
|
||||
{{/ core_form/element-group }}
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
{{< core_form/element-template }}
|
||||
{{< core_form/element-group }}
|
||||
{{$element}}
|
||||
<div class="fdate_time_selector d-flex flex-wrap align-items-center">
|
||||
{{#element.elements}}
|
||||
{{{separator}}}
|
||||
{{{html}}}
|
||||
{{/element.elements}}
|
||||
</div>
|
||||
<fieldset class="m-0 p-0 border-0" id="{{element.id}}">
|
||||
<legend class="sr-only">{{label}}</legend>
|
||||
<div class="fdate_time_selector d-flex flex-wrap align-items-center">
|
||||
{{#element.elements}}
|
||||
{{{separator}}}
|
||||
{{{html}}}
|
||||
{{/element.elements}}
|
||||
</div>
|
||||
</fieldset>
|
||||
{{/element}}
|
||||
{{/ core_form/element-template }}
|
||||
{{/ core_form/element-group }}
|
||||
|
|
|
@ -1,8 +1,28 @@
|
|||
{{< core_form/element-template }}
|
||||
{{$label}}
|
||||
{{^element.hiddenlabel}}
|
||||
<p id="{{element.id}}_label" class="col-form-label d-inline" aria-hidden="true">
|
||||
{{{label}}}
|
||||
</p>
|
||||
{{/element.hiddenlabel}}
|
||||
{{/label}}
|
||||
{{$element}}
|
||||
{{#element.elements}}
|
||||
{{{separator}}}
|
||||
{{{html}}}
|
||||
{{/element.elements}}
|
||||
<fieldset class="m-0 p-0 border-0">
|
||||
<legend class="sr-only">{{label}}</legend>
|
||||
<div class="d-flex flex-wrap">
|
||||
{{#element.elements}}
|
||||
{{{separator}}}
|
||||
{{{html}}}
|
||||
{{/element.elements}}
|
||||
</div>
|
||||
</fieldset>
|
||||
{{/element}}
|
||||
{{/ core_form/element-template }}
|
||||
{{#js}}
|
||||
require(['jquery'], function($) {
|
||||
$('#{{element.id}}_label').css('cursor', 'default');
|
||||
$('#{{element.id}}_label').click(function() {
|
||||
$('#{{element.id}}').find('button, a, input, select, textarea, [tabindex]:not([tabindex="-1"])').filter(':enabled').first().focus();
|
||||
});
|
||||
});
|
||||
{{/js}}
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
<div class="form-group {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}" {{#element.groupname}}data-groupname="{{.}}"{{/element.groupname}}>
|
||||
<label class="col-form-label {{#element.hiddenlabel}}sr-only{{/element.hiddenlabel}}" for="{{element.id}}">
|
||||
{{{label}}} {{{helpbutton}}}
|
||||
{{#label}}
|
||||
<label class="col-form-label {{#element.hiddenlabel}}sr-only{{/element.hiddenlabel}}" for="{{element.id}}">
|
||||
{{{label}}}
|
||||
</label>
|
||||
{{/label}}
|
||||
<span>
|
||||
{{{helpbutton}}}
|
||||
{{#required}}<abbr class="initialism text-danger" title="{{#str}}required{{/str}}">{{#pix}}req, core, {{#str}}required{{/str}}{{/pix}}</abbr>{{/required}}
|
||||
{{#advanced}}<abbr class="initialism text-info" title="{{#str}}advanced{{/str}}">!</abbr>{{/advanced}}
|
||||
</label>
|
||||
</span>
|
||||
<span data-fieldtype="{{element.type}}">
|
||||
{{$ element }}
|
||||
<!-- Element goes here -->
|
||||
|
|
|
@ -49,16 +49,18 @@
|
|||
{{#advanced}}<abbr class="initialism text-info" title="{{#str}}advanced{{/str}}">!</abbr>{{/advanced}}
|
||||
{{{helpbutton}}}
|
||||
</span>
|
||||
{{^element.staticlabel}}
|
||||
<label class="col-form-label d-inline {{#element.hiddenlabel}}sr-only{{/element.hiddenlabel}}" for="{{element.id}}">
|
||||
{{{label}}}
|
||||
</label>
|
||||
{{/element.staticlabel}}
|
||||
{{#element.staticlabel}}
|
||||
<span class="col-form-label d-inline-block {{#element.hiddenlabel}}sr-only{{/element.hiddenlabel}}">
|
||||
{{{label}}}
|
||||
</span>
|
||||
{{/element.staticlabel}}
|
||||
{{$ label }}
|
||||
{{^element.staticlabel}}
|
||||
<label class="col-form-label d-inline {{#element.hiddenlabel}}sr-only{{/element.hiddenlabel}}" for="{{element.id}}">
|
||||
{{{label}}}
|
||||
</label>
|
||||
{{/element.staticlabel}}
|
||||
{{#element.staticlabel}}
|
||||
<span class="col-form-label d-inline-block {{#element.hiddenlabel}}sr-only{{/element.hiddenlabel}}">
|
||||
{{{label}}}
|
||||
</span>
|
||||
{{/element.staticlabel}}
|
||||
{{/ label }}
|
||||
</div>
|
||||
<div class="col-md-9 form-inline felement" data-fieldtype="{{element.type}}">
|
||||
{{$ element }}
|
||||
|
|
|
@ -221,12 +221,7 @@
|
|||
|
||||
body.path-question-type {
|
||||
/* Hacks to display the labels within a form group. */
|
||||
.fitem_fgroup .accesshide {
|
||||
font: inherit;
|
||||
position: static;
|
||||
padding-right: .3em;
|
||||
}
|
||||
.form-group .sr-only {
|
||||
.form-group .sr-only:not(legend) {
|
||||
position: static;
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
|
|
@ -14917,11 +14917,7 @@ a.ygtvspacer:hover {
|
|||
|
||||
body.path-question-type {
|
||||
/* Hacks to display the labels within a form group. */ }
|
||||
body.path-question-type .fitem_fgroup .accesshide {
|
||||
font: inherit;
|
||||
position: static;
|
||||
padding-right: .3em; }
|
||||
body.path-question-type .form-group .sr-only {
|
||||
body.path-question-type .form-group .sr-only:not(legend) {
|
||||
position: static;
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
|
|
@ -15135,11 +15135,7 @@ a.ygtvspacer:hover {
|
|||
|
||||
body.path-question-type {
|
||||
/* Hacks to display the labels within a form group. */ }
|
||||
body.path-question-type .fitem_fgroup .accesshide {
|
||||
font: inherit;
|
||||
position: static;
|
||||
padding-right: .3em; }
|
||||
body.path-question-type .form-group .sr-only {
|
||||
body.path-question-type .form-group .sr-only:not(legend) {
|
||||
position: static;
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue