Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 779... Línea 779...
779
                    ? 'decimals'
779
                    ? 'decimals'
780
                    : 'significantfigures'), 'qtype_calculated', $i);
780
                    : 'significantfigures'), 'qtype_calculated', $i);
781
            }
781
            }
782
            $menu1 = html_writer::label(get_string('lengthoption', 'qtype_calculated'),
782
            $menu1 = html_writer::label(get_string('lengthoption', 'qtype_calculated'),
783
                'menucalclength', false, ['class' => 'accesshide']);
783
                'menucalclength', false, ['class' => 'accesshide']);
784
            $menu1 .= html_writer::select($lengthoptions, 'calclength[]', $regs[4], null, ['class' => 'custom-select']);
784
            $menu1 .= html_writer::select($lengthoptions, 'calclength[]', $regs[4], null, ['class' => 'form-select']);
Línea 785... Línea 785...
785
 
785
 
786
            $options = ['uniform' => get_string('uniformbit', 'qtype_calculated'),
786
            $options = ['uniform' => get_string('uniformbit', 'qtype_calculated'),
787
                'loguniform' => get_string('loguniformbit', 'qtype_calculated')];
787
                'loguniform' => get_string('loguniformbit', 'qtype_calculated')];
788
            $menu2 = html_writer::label(get_string('distributionoption', 'qtype_calculated'),
788
            $menu2 = html_writer::label(get_string('distributionoption', 'qtype_calculated'),
789
                'menucalcdistribution', false, ['class' => 'accesshide']);
789
                'menucalcdistribution', false, ['class' => 'accesshide']);
790
            $menu2 .= html_writer::select($options, 'calcdistribution[]', $regs[1], null, ['class' => 'custom-select']);
790
            $menu2 .= html_writer::select($options, 'calcdistribution[]', $regs[1], null, ['class' => 'form-select']);
791
            return '<input type="submit" class="btn btn-secondary" onclick="'
791
            return '<input type="submit" class="btn btn-secondary" onclick="'
792
                . "getElementById('addform').regenerateddefid.value='{$defid}'; return true;"
792
                . "getElementById('addform').regenerateddefid.value='{$defid}'; return true;"
793
                .'" value="'. get_string('generatevalue', 'qtype_calculated') . '"/><br/>'
793
                .'" value="'. get_string('generatevalue', 'qtype_calculated') . '"/><br/>'
794
                . '<input type="text" class="form-control" size="3" name="calcmin[]" '
794
                . '<input type="text" class="form-control" size="3" name="calcmin[]" '