Línea 37... |
Línea 37... |
37 |
"title": "Help with something",
|
37 |
"title": "Help with something",
|
38 |
"text": "Help with something",
|
38 |
"text": "Help with something",
|
39 |
"url": "http://example.org/help",
|
39 |
"url": "http://example.org/help",
|
40 |
"linktext": "",
|
40 |
"linktext": "",
|
41 |
"icon": {
|
41 |
"icon": {
|
42 |
"extraclasses": "iconhelp",
|
42 |
"extraclasses": "",
|
43 |
"attributes": [
|
43 |
"attributes": [
|
44 |
{"name": "src", "value": "../../../pix/help.svg"},
|
44 |
{"name": "src", "value": "../../../pix/help.svg"},
|
45 |
{"name": "alt", "value": "Help icon"}
|
45 |
{"name": "alt", "value": "Help icon"}
|
46 |
]
|
46 |
]
|
47 |
}
|
47 |
}
|
Línea 50... |
Línea 50... |
50 |
}
|
50 |
}
|
51 |
}}
|
51 |
}}
|
52 |
<div class="mt-2 position-relative" data-region="add_random_question_form-container">
|
52 |
<div class="mt-2 position-relative" data-region="add_random_question_form-container">
|
53 |
<form action="{{returnurl}}" method="POST" id="add_random_question_form" class="mform">
|
53 |
<form action="{{returnurl}}" method="POST" id="add_random_question_form" class="mform">
|
54 |
<fieldset id="id_existingcategoryheader">
|
54 |
<fieldset id="id_existingcategoryheader">
|
- |
|
55 |
{{^slotid}}
|
55 |
<legend>{{#str}} randomfromexistingcategory, mod_quiz {{/str}}</legend>
|
56 |
<legend>{{#str}} randomfromexistingcategory, mod_quiz {{/str}}</legend>
|
- |
|
57 |
{{/slotid}}
|
56 |
<!-- Question bank -->
|
58 |
<!-- Question bank -->
|
57 |
{{{questionbank}}}
|
59 |
{{{questionbank}}}
|
Línea 58... |
Línea 60... |
58 |
|
60 |
|
- |
|
61 |
<!-- Select number of random question -->
|
59 |
<!-- Select number of random question -->
|
62 |
{{^slotid}}
|
60 |
<label>
|
63 |
<label>
|
61 |
{{#str}}randomnumber, mod_quiz{{/str}}
|
64 |
{{#str}}randomnumber, mod_quiz{{/str}}
|
62 |
<select id="menurandomcount" name="randomcount" class="form-control custom-select">
|
65 |
<select id="menurandomcount" name="randomcount" class="form-control form-select">
|
63 |
{{#randomoptions}}
|
66 |
{{#randomoptions}}
|
64 |
<option value="{{value}}">{{name}}</option>
|
67 |
<option value="{{value}}">{{name}}</option>
|
65 |
{{/randomoptions}}
|
68 |
{{/randomoptions}}
|
66 |
</select>
|
69 |
</select>
|
- |
|
70 |
</label>
|
Línea 67... |
Línea 71... |
67 |
</label>
|
71 |
{{/slotid}}
|
68 |
|
72 |
|
69 |
<!-- Buttons -->
|
73 |
<!-- Buttons -->
|
- |
|
74 |
<div class="modal-footer mt-1" data-region="footer">
|
- |
|
75 |
<input type="hidden" name="message" value="">
|
- |
|
76 |
{{#slotid}}
|
- |
|
77 |
<input name="slotid" type="hidden" value="{{slotid}}"/>
|
- |
|
78 |
<input type="submit" class="btn btn-primary" name="update" value="{{#str}} updatefilterconditon, mod_quiz {{/str}}">
|
70 |
<div class="modal-footer mt-1" data-region="footer">
|
79 |
{{/slotid}}
|
- |
|
80 |
{{^slotid}}
|
71 |
<input type="hidden" name="message" value="">
|
81 |
<input type="submit" class="btn btn-primary" name="addrandom" value="{{#str}} addrandomquestion, mod_quiz {{/str}}">
|
72 |
<input type="submit" class="btn btn-primary" name="addrandom" value="{{#str}} addrandomquestion, mod_quiz {{/str}}">
|
82 |
{{/slotid}}
|
Línea 73... |
Línea 83... |
73 |
<input type="submit" class="btn btn-secondary" name="cancel" value="{{#str}} cancel {{/str}}">
|
83 |
<input type="submit" class="btn btn-secondary" name="cancel" value="{{#str}} cancel {{/str}}">
|
Línea -... |
Línea 84... |
- |
|
84 |
</div>
|
74 |
</div>
|
85 |
|
75 |
|
86 |
</fieldset>
|
76 |
</fieldset>
|
87 |
|
77 |
|
88 |
{{^slotid}}
|
78 |
<fieldset id="id_newcategoryheader">
|
89 |
<fieldset id="id_newcategoryheader">
|
79 |
<legend>{{#str}} randomquestionusinganewcategory, mod_quiz {{/str}}</legend>
|
90 |
<legend>{{#str}} randomquestionusinganewcategory, mod_quiz {{/str}}</legend>
|
80 |
<!-- New categoryname -->
|
91 |
<!-- New categoryname -->
|
81 |
<div class="mb-3 row fitem">
|
92 |
<div class="mb-3 row fitem">
|
82 |
<div class="col-md-3 col-form-label d-flex pb-0 pr-md-0">
|
93 |
<div class="col-md-3 col-form-label d-flex pb-0 pe-md-0">
|
83 |
<label class="mr-md-2 mb-md-0" for="categoryname">{{#str}} name {{/str}} </label>
|
94 |
<label class="me-md-2 mb-md-0" for="categoryname">{{#str}} name {{/str}} </label>
|
84 |
</div>
|
95 |
</div>
|
Línea 85... |
Línea 96... |
85 |
<div class="col-md-9 d-flex flex-wrap align-items-start felement" data-fieldtype="text">
|
96 |
<div class="col-md-9 d-flex flex-wrap align-items-start felement" data-fieldtype="text">
|
86 |
<input type="text" class="form-control" id="categoryname" name="categoryname" maxlength="254" size="50">
|
97 |
<input type="text" class="form-control" id="categoryname" name="categoryname" maxlength="254" size="50">
|
87 |
</div>
|
98 |
</div>
|
88 |
</div>
|
99 |
</div>
|
89 |
|
100 |
|
90 |
<!-- Select parent of new category -->
|
101 |
<!-- Select parent of new category -->
|
91 |
<div class="mb-3 row fitem">
|
102 |
<div class="mb-3 row fitem">
|
92 |
<div class="col-md-3 col-form-label d-flex pb-0 pr-md-0">
|
103 |
<div class="col-md-3 col-form-label d-flex pb-0 pe-md-0">
|
93 |
<label class="mr-md-2 mb-md-0" for="parentcategory">{{#str}} parentcategory, question {{/str}} </label>
|
104 |
<label class="me-md-2 mb-md-0" for="parentcategory">{{#str}} parentcategory, question {{/str}} </label>
|
Línea 112... |
Línea 123... |
112 |
<div class="modal-footer mt-1" data-region="footer">
|
123 |
<div class="modal-footer mt-1" data-region="footer">
|
113 |
<input type="submit" class="btn btn-primary" name="newcategory" value="{{#str}} createcategoryandaddrandomquestion, mod_quiz {{/str}}">
|
124 |
<input type="submit" class="btn btn-primary" name="newcategory" value="{{#str}} createcategoryandaddrandomquestion, mod_quiz {{/str}}">
|
114 |
<input type="submit" class="btn btn-secondary" name="cancel" value="{{#str}} cancel {{/str}}">
|
125 |
<input type="submit" class="btn btn-secondary" name="cancel" value="{{#str}} cancel {{/str}}">
|
115 |
</div>
|
126 |
</div>
|
116 |
</fieldset>
|
127 |
</fieldset>
|
- |
|
128 |
{{/slotid}}
|
117 |
</form>
|
129 |
</form>
|
118 |
</div>
|
130 |
</div>
|