original_string: protected function repaginate_button(structure $structure, \moodle_url $pageurl) {
          $header = html_writer::tag('span', get_string('repaginatecommand', 'quiz'), array('class' => 'repaginatecommand'));
          $form = $this->repaginate_form($structure, $pageurl);
  
          $buttonoptions = array(
              'type'  => 'submit',
              'name'  => 'repaginate',
              'id'    => 'repaginatecommand',
              'value' => get_string('repaginatecommand', 'quiz'),
              'class' => 'btn btn-secondary mb-1',
              'data-header' => $header,
              'data-form'   => $form,
          );
          if (!$structure->can_be_repaginated()) {
              $buttonoptions['disabled'] = 'disabled';
          } else {
              $this->page->requires->js_call_amd('mod_quiz/repaginate', 'init');
          }
  
          return html_writer::empty_tag('input', $buttonoptions);
      }
code: protected function repaginate_button(structure $structure, \moodle_url $pageurl) {
          $header = html_writer::tag('span', get_string('repaginatecommand', 'quiz'), array('class' => 'repaginatecommand'));
          $form = $this->repaginate_form($structure, $pageurl);
  
          $buttonoptions = array(
              'type'  => 'submit',
              'name'  => 'repaginate',
              'id'    => 'repaginatecommand',
              'value' => get_string('repaginatecommand', 'quiz'),
              'class' => 'btn btn-secondary mb-1',
              'data-header' => $header,
              'data-form'   => $form,
          );
          if (!$structure->can_be_repaginated()) {
              $buttonoptions['disabled'] = 'disabled';
          } else {
              $this->page->requires->js_call_amd('mod_quiz/repaginate', 'init');
          }
  
          return html_writer::empty_tag('input', $buttonoptions);
      }
code_tokens: protected function repaginate_button ( structure $ structure , \ moodle_url $ pageurl ) { $ header = html_writer :: tag ( 'span' , get_string ( 'repaginatecommand' , 'quiz' ) , array ( 'class' => 'repaginatecommand' ) ) ; $ form = $ this -> repaginate_form ( $ structure , $ pageurl ) ; $ buttonoptions = array ( 'type' => 'submit' , 'name' => 'repaginate' , 'id' => 'repaginatecommand' , 'value' => get_string ( 'repaginatecommand' , 'quiz' ) , 'class' => 'btn btn-secondary mb-1' , 'data-header' => $ header , 'data-form' => $ form , ) ; if ( ! $ structure -> can_be_repaginated ( ) ) { $ buttonoptions [ 'disabled' ] = 'disabled' ; } else { $ this -> page -> requires -> js_call_amd ( 'mod_quiz/repaginate' , 'init' ) ; } return html_writer :: empty_tag ( 'input' , $ buttonoptions ) ; }
docstring: Return the repaginate button
  @param structure $structure the structure of the quiz being edited.
  @param \moodle_url $pageurl the canonical URL of this page.
  @return string HTML to output.
docstring_tokens: Return the repaginate button