Gitlab@AEI Hannover will go down for maintenance on 2020-09-21 at 4:00 UTC. The service will be unavailable for up to 24 hours. If you have questions about this please contact atlas_admin@aei.mpg.de

Commit 89b196cc authored by Shawn Kwang's avatar Shawn Kwang

Drupal: Add ID to captcha element to theme it.

Moves the captcha box to the left for certain forms.

Part of https://dev.gridrepublic.org/browse/DBOINCP-509
parent 3fdf87d0
......@@ -1309,6 +1309,8 @@ function boincuser_form_alter(&$form, $form_state, $form_id) {
$form['register_captcha'] = array(
'#type' => 'captcha',
'#weight' => 1000,
'#prefix' => '<div id="captcha-on-left">',
'#suffix' => '</div>'
);
}
......
......@@ -644,6 +644,10 @@ html.js fieldset.collapsible legend a,
#recaptcha_response_field {
left: 0;
}
/* This id cancels out the above margin-left for .captcha*/
#captcha-on-left {
margin-left: -360px;
}
/* Task App filter */
select.task-app-filter {
......@@ -661,4 +665,4 @@ select.task-app-filter {
font-weight: 400;
line-height: 24px;
margin-right: 40px;
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment