Skip to content

Commit

Permalink
Recaptcha form element styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Oct 25, 2023
1 parent 2945a89 commit f2b497c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions g3w-admin/core/static/css/g3wadmin.css
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,12 @@ a.layer-action {
.register-box {
width: 720px;
margin: 7% auto;
}

.recaptcha {
padding-left: 9px;
}

.recaptcha-registration {
padding-left: 11.5px;
}
2 changes: 1 addition & 1 deletion g3w-admin/core/static/dist/css/g3wadmin.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion g3w-admin/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h4><i class="icon fa fa-ban"></i> {% trans 'LOGIN ERROR' %}!</h4>
<input type="password" class="form-control" name="password" placeholder="Password">
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
{{ form.captcha }}
<div class="form-group recaptcha">{{ form.captcha }}</div>
<div class="row margin-bottom" >
<div class="col-xs-12">
<button type="submit" class="btn btn-primary btn-block btn-flat">{% trans 'Sign In' %}</button>
Expand Down
2 changes: 1 addition & 1 deletion g3w-admin/templates/registration/password_reset_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h3>{% trans 'Forgot your password?' %}</h3>
<input type="text" class="form-control" name="email" placeholder="Email address">
<span class="glyphicon glyphicon-email form-control-feedback"></span>
</div>
{{ form.captcha }}
<div class="form-group recaptcha">{{ form.captcha }}</div>
<div class="row">
<div class="col-xs-12">
<button type="submit" class="btn btn-primary btn-block btn-flat">{% trans 'Send me instruction' %}</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h4><i class="icon fa fa-ban"></i> {% trans 'ERROR' %}!</h4>
</div>
<div class="row">
<div class="col-md-offset-3 col-md-6 col-xs-offset-0 col-xs-12">
{{ form.captcha }}
<div class="form-group recaptcha-registration">{{ form.captcha }}</div>
<button type="submit" class="btn btn-primary btn-block btn-flat">{% trans 'Sign Up' %}</button>
</div><!-- /.col -->
</div>
Expand Down

0 comments on commit f2b497c

Please sign in to comment.