echo Form::text('username', Guardian::wayback('username'), null, array('autocomplete' => 'off')); ?> </span> </label> <label class="grid-group"> <span class="grid span-2 form-label"><?php echo $speak->password; ?> </span> <span class="grid span-4"> <?php echo Form::password('password', null, null, array('autocomplete' => 'off')); ?> </span> </label> <?php echo Form::hidden('kick', Request::get('kick', Guardian::wayback('url_origin', $config->manager->slug . '/article'))); ?> <div class="grid-group"> <span class="grid span-2"></span> <span class="grid span-4"> <?php echo Form::button(Cell::i("", array('class' => array('fa', 'fa-key'))) . ' ' . $speak->login, null, null, null, array('class' => array('btn', 'btn-action'))); ?> </span> </div> </form> <script>document.getElementById('form-login:<?php echo $form_id; ?> ').username.focus();</script>
<?php // `<i class="fa fa-check-circle">` Jot::add('icon', function ($kind, $modifier = null) { return Cell::i("", array('class' => 'fa fa-' . $kind . (is_string($modifier) ? ' fa-' . trim(str_replace('.', ' fa-', $modifier), '.') : ""))); }); // `<button class="btn">` Jot::add('button', function ($kind = 'default', $text = "", $name = null, $type = 'submit', $attr = array(), $indent = 0) { $kind = explode(':', $kind); $k = explode('.', trim($kind[0], '.')); $icon = count($kind) === 1 ? Mecha::alter($k[0], array('action' => 'check-circle', 'accept' => 'check-circle', 'begin' => 'plus-circle', 'construct' => 'check-circle', 'danger' => 'times-circle', 'destruct' => 'times-circle', 'error' => 'exclamation-circle', 'reject' => 'times-circle'), "") : $kind[1]; if ($icon !== "") { $text = Jot::icon($icon) . ' ' . $text; } if (!isset($attr['class'])) { $attr['class'] = array(); } $s = is_string($name) ? explode(':', $name, 2) : array(null, null); $attr['class'] = array_merge(array('btn btn-' . str_replace('.', ' btn-', $kind[0])), (array) $attr['class']); $attr['disabled'] = strpos($kind[0], '.disabled') !== false ? true : null; return Form::button($text, $s[0], isset($s[1]) ? $s[1] : null, $type, $attr, $indent); }); // `<a class="btn">` Jot::add('btn', function ($kind = 'default', $text = "", $href = null, $attr = array(), $indent = 0) { $kind = explode(':', $kind); $k = explode('.', trim($kind[0], '.')); $icon = count($kind) === 1 ? Mecha::alter($k[0], array('action' => 'check-circle', 'accept' => 'check-circle', 'begin' => 'plus-circle', 'construct' => 'check-circle', 'danger' => 'times-circle', 'destruct' => 'times-circle', 'error' => 'exclamation-circle', 'reject' => 'times-circle'), "") : $kind[1]; if ($icon !== "") { $text = Jot::icon($icon) . ' ' . $text; } if (!isset($attr['class'])) {