Beispiel #1
0
    public function getHtmlView($data, \Request $request)
    {
        \Layout::addStyle('tailgate', 'Admin/Setup/style.css');
        javascript('datetimepicker');
        javascript('ckeditor');
        javascript('jquery');
        $script = \tailgate\Factory\React::load('setup', REACT_DEVMODE);
        $content = <<<EOF
<h2>Tailgate</h2>
<div id="tailgate-setup"></div>
{$script}
EOF;
        $view = new \View\HtmlView($content);
        return $view;
    }
Beispiel #2
0
    private function createAccount()
    {
        $react = \tailgate\Factory\React::load('signup', REACT_DEVMODE);
        javascript('jquery');
        $content = <<<EOF
<h2>New account signup</h2>
<div id="student-signup"></div>
{$react}
EOF;
        return $content;
    }