Skip to content

Commit

Permalink
Update checkbox style and markup
Browse files Browse the repository at this point in the history
  • Loading branch information
gabor-udvari committed Oct 5, 2015
1 parent 39c4c57 commit 65664c9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated from b04cfd to 12cf46
9 changes: 9 additions & 0 deletions sources/styles/bootgenie.scss
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,15 @@ input[type="email"] {
// repeat this here
padding-left: 20px;
text-align: left;
font-weight: normal;
}

input[type="checkbox"] {
position: absolute;
margin-left: -20px;
margin-top: 0;
margin-bottom: 0;
padding-top: 7px;
}
}

Expand Down
14 changes: 6 additions & 8 deletions templates/_main_login.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

<div id="regular_login_container">

<?php if ($loginintro instanceof \thebuggenie\modules\publish\entities\Article): ?>
<?php include_component('publish/articledisplay', array('article' => $loginintro, 'show_title' => false, 'show_details' => false, 'show_actions' => false, 'embedded' => true)); ?>
<?php if ($loginintro instanceof \thebuggenie\modules\publish\entities\Article): ?>
<?php include_component('publish/articledisplay', array('article' => $loginintro, 'show_title' => false, 'show_details' => false, 'show_actions' => false, 'embedded' => true)); ?>
<?php endif; ?>

<h2><?php echo __('Log in with your username and password'); ?></h2>
<h2><?php echo __('Log in with your username and password'); ?></h2>
<form accept-charset="<?php echo \thebuggenie\core\framework\Context::getI18n()->getCharset(); ?>" action="<?php echo make_url('login'); ?>" method="post" id="login_form" onsubmit="TBG.Main.Login.login('<?php echo make_url('login'); ?>'); return false;">
<?php if (!\thebuggenie\core\framework\Context::hasMessage('login_force_redirect') || \thebuggenie\core\framework\Context::getMessage('login_force_redirect') !== true): ?>
<input type="hidden" id="tbg3_referer" name="tbg3_referer" value="<?php echo $referer; ?>" />
Expand All @@ -36,11 +36,9 @@
</div>
</div>
<div class="form-group">
<div class="checkbox-wrapper">
<div class="checkbox">
<label for="tbg3_rememberme"><input type="checkbox" name="tbg3_rememberme" value="1" id="tbg3_rememberme"><?php echo __('Keep me logged in'); ?></label>
</div>
</div>
<div class="checkbox-wrapper">
<label for="tbg3_rememberme"><input type="checkbox" name="tbg3_rememberme" value="1" id="tbg3_rememberme"><?php echo __('Keep me logged in'); ?></label>
</div>
</div>
<div class="form-group">
<div class="button-wrapper">
Expand Down

0 comments on commit 65664c9

Please sign in to comment.