Merge branch 'MDL-59696-33' of git://github.com/junpataleta/moodle into MOODLE_33_STABLE
This commit is contained in:
@@ -8,6 +8,19 @@
|
||||
"formid": "url_select_form",
|
||||
"sesskey": "sesskey",
|
||||
"label": "core/url_select",
|
||||
"helpicon": {
|
||||
"title": "Help with something",
|
||||
"text": "Help with something",
|
||||
"url": "http://example.org/help",
|
||||
"linktext": "",
|
||||
"icon":{
|
||||
"extraclasses": "iconhelp",
|
||||
"attributes": [
|
||||
{"name": "src", "value": "../../../pix/help.svg"},
|
||||
{"name": "alt", "value": "Help icon"}
|
||||
]
|
||||
}
|
||||
},
|
||||
"showbutton": "Go",
|
||||
"options": [{
|
||||
"name": "Group 1", "isgroup": true, "options":
|
||||
@@ -25,30 +38,28 @@
|
||||
<div class="{{classes}}">
|
||||
<form method="post" action="{{action}}" class="form-inline" id="{{formid}}">
|
||||
<input type="hidden" name="sesskey" value="{{sesskey}}">
|
||||
<div class="form-group">
|
||||
{{#label}}
|
||||
<label for="{{id}}"{{#labelattributes}} {{name}}="{{value}}"{{/labelattributes}}>
|
||||
{{label}}
|
||||
</label>
|
||||
{{/label}}
|
||||
{{#helpicon}}
|
||||
{{>core/help_icon}}
|
||||
{{/helpicon}}
|
||||
<select {{#attributes}}{{name}}="{{value}}" {{/attributes}} id="{{id}}" class="custom-select {{classes}}" name="jump">
|
||||
{{#options}}
|
||||
{{#isgroup}}
|
||||
<optgroup label="{{name}}">
|
||||
{{#options}}
|
||||
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
|
||||
{{/options}}
|
||||
</optgroup>
|
||||
{{/isgroup}}
|
||||
{{^isgroup}}
|
||||
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
|
||||
{{/isgroup}}
|
||||
{{/options}}
|
||||
</select>
|
||||
</div>
|
||||
{{#label}}
|
||||
<label for="{{id}}"{{#labelattributes}} {{name}}="{{value}}"{{/labelattributes}}>
|
||||
{{label}}
|
||||
</label>
|
||||
{{/label}}
|
||||
{{#helpicon}}
|
||||
{{>core/help_icon}}
|
||||
{{/helpicon}}
|
||||
<select {{#attributes}}{{name}}="{{value}}" {{/attributes}} id="{{id}}" class="custom-select {{classes}}" name="jump">
|
||||
{{#options}}
|
||||
{{#isgroup}}
|
||||
<optgroup label="{{name}}">
|
||||
{{#options}}
|
||||
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
|
||||
{{/options}}
|
||||
</optgroup>
|
||||
{{/isgroup}}
|
||||
{{^isgroup}}
|
||||
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
|
||||
{{/isgroup}}
|
||||
{{/options}}
|
||||
</select>
|
||||
{{#showbutton}}
|
||||
<input type="submit" class="btn btn-secondary" value="{{showbutton}}">
|
||||
{{/showbutton}}
|
||||
|
||||
@@ -122,6 +122,15 @@ form {
|
||||
margin-right: .3em;
|
||||
}
|
||||
|
||||
.custom-select {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
// Make the submit button align with the .custom-select element.
|
||||
.custom-select + input[type="submit"] {
|
||||
margin: 0 0 0 5px;
|
||||
}
|
||||
|
||||
#portfolio-add-button {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
@@ -16539,6 +16539,12 @@ form {
|
||||
.singleselect label {
|
||||
margin-right: .3em;
|
||||
}
|
||||
.custom-select {
|
||||
max-width: 100%;
|
||||
}
|
||||
.custom-select + input[type="submit"] {
|
||||
margin: 0 0 0 5px;
|
||||
}
|
||||
#portfolio-add-button {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user