Пример #1
0
    protected function getMainSection()
    {
        $form = Forms::getRegisterForm();
        $js = Forms::getRegisterJs('/');
        $this->addInlineJs($js);
        return <<<HTML
<div class="container theme-showcase" role="main">
  <div class="jumbotron">
\t<h3>Register</h3>
{$form}
  </div>
</div>
HTML;
    }
Пример #2
0
    /**
     * Generate the HTML for the registration modal window
     */
    private function getRegisterModal()
    {
        $form = Forms::getRegisterForm();
        $html = <<<HTML
<div id="registerModal" class="modal fade" tabindex="-1" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">Register for this Test Community</h4>
      </div>
 {$form}
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
HTML;
        $this->addModalWindow($html);
    }