Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 45... Línea 45...
45
 
45
 
46
        $availableoption = count($options['options']);
46
        $availableoption = count($options['options']);
47
        $choicecount = 0;
47
        $choicecount = 0;
48
        foreach ($options['options'] as $option) {
48
        foreach ($options['options'] as $option) {
49
            $choicecount++;
49
            $choicecount++;
50
            $html .= html_writer::start_tag('li', array('class' => 'option mr-3'));
50
            $html .= html_writer::start_tag('li', array('class' => 'option me-3'));
51
            if ($multiple) {
51
            if ($multiple) {
52
                $option->attributes->name = 'answer[]';
52
                $option->attributes->name = 'answer[]';
53
                $option->attributes->type = 'checkbox';
53
                $option->attributes->type = 'checkbox';
54
            } else {
54
            } else {
Línea 95... Línea 95...
95
                }
95
                }
Línea 96... Línea 96...
96
 
96
 
97
                if (!empty($options['allowupdate']) && ($options['allowupdate'])) {
97
                if (!empty($options['allowupdate']) && ($options['allowupdate'])) {
98
                    $url = new moodle_url('view.php',
98
                    $url = new moodle_url('view.php',
99
                            array('id' => $coursemoduleid, 'action' => 'delchoice', 'sesskey' => sesskey()));
99
                            array('id' => $coursemoduleid, 'action' => 'delchoice', 'sesskey' => sesskey()));
100
                    $html .= html_writer::link($url, get_string('removemychoice', 'choice'), array('class' => 'ml-1'));
100
                    $html .= html_writer::link($url, get_string('removemychoice', 'choice'), array('class' => 'ms-1'));
101
                }
101
                }
102
            } else {
102
            } else {
103
                $html .= html_writer::tag('label', get_string('havetologin', 'choice'));
103
                $html .= html_writer::tag('label', get_string('havetologin', 'choice'));
104
            }
104
            }
Línea 105... Línea -...
105
        }
-
 
106
 
105
        }
Línea 107... Línea 106...
107
        $html .= html_writer::end_tag('ul');
106
 
108
        $html .= html_writer::end_tag('form');
107
        $html .= html_writer::end_tag('form');
Línea 272... Línea 271...
272
 
271
 
273
                            $togglegroup = 'responses response-option-' . $optionid;
272
                            $togglegroup = 'responses response-option-' . $optionid;
274
                            $slavecheckbox = new \core\output\checkbox_toggleall($togglegroup, false, [
273
                            $slavecheckbox = new \core\output\checkbox_toggleall($togglegroup, false, [
275
                                'id' => $checkboxid,
274
                                'id' => $checkboxid,
276
                                'name' => $checkboxname,
275
                                'name' => $checkboxname,
277
                                'classes' => 'mr-1',
276
                                'classes' => 'me-1',
278
                                'value' => $checkboxvalue,
277
                                'value' => $checkboxvalue,
279
                                'label' => $userfullname . ' ' . $options->text,
278
                                'label' => $userfullname . ' ' . $options->text,
280
                                'labelclasses' => 'accesshide',
279
                                'labelclasses' => 'accesshide',
281
                            ]);
280
                            ]);
Línea 307... Línea 306...
307
            $selectallcheckbox = new \core\output\checkbox_toggleall($togglegroup, true, [
306
            $selectallcheckbox = new \core\output\checkbox_toggleall($togglegroup, true, [
308
                'id' => $selectallid,
307
                'id' => $selectallid,
309
                'name' => $selectallid,
308
                'name' => $selectallid,
310
                'value' => 1,
309
                'value' => 1,
311
                'label' => get_string('selectall'),
310
                'label' => get_string('selectall'),
312
                'classes' => 'btn-secondary mr-1'
311
                'classes' => 'btn-secondary me-1'
313
            ], true);
312
            ], true);
314
            $actiondata .= $this->output->render($selectallcheckbox);
313
            $actiondata .= $this->output->render($selectallcheckbox);
Línea 315... Línea 314...
315
 
314
 
316
            $actionurl = new moodle_url($this->page->url,
315
            $actionurl = new moodle_url($this->page->url,