Skip to content
forked from BOINC/boinc

Commit

Permalink
Drupal: Created new div id for Captcha for password reset.
Browse files Browse the repository at this point in the history
Moved the Captcha box to align with email address field.

Part of https://dev.gridrepublic.org/browse/DBOINCP-509
  • Loading branch information
Shawn Kwang committed Dec 18, 2019
1 parent c8404f2 commit 2aef9b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ function boincuser_form_alter(&$form, $form_state, $form_id) {
$form['register_captcha'] = array(
'#type' => 'captcha',
'#weight' => 0,
'#prefix' => '<div id="captcha-on-left">',
'#prefix' => '<div id="captcha-password-reset">',
'#suffix' => '</div>'
);
}
Expand Down
4 changes: 4 additions & 0 deletions drupal/sites/default/boinc/themes/boinc/css/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,10 @@ html.js fieldset.collapsible legend a,
#captcha-on-left {
margin-left: -360px;
}
/*Custom captcha margin for password reset form*/
#captcha-password-reset {
margin-left: -200px;
}

/* Task App filter */
select.task-app-filter {
Expand Down

0 comments on commit 2aef9b3

Please sign in to comment.