Skip to content

Commit

Permalink
Fixed issue #13295: Better captcha instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Feb 5, 2018
1 parent 324aa1f commit 9fae894
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion application/views/survey/frontpage/captchaForm/form.php
Expand Up @@ -7,7 +7,7 @@
<div class=''>
<div class='form-group'>
<div class='form-group captcha-item'>
<label class='control-label col-sm-3' for='loadsecurity'><?php echo gT("Please enter the letters you see:") ?></label>
<label class='control-label col-sm-3' for='loadsecurity'><?php echo gT("Please solve the following equation:") ?></label>
<div class='col-sm-7'>
<div class='ls-input-group'>
<div class='ls-input-group-extra captcha-widget' >
Expand Down
2 changes: 1 addition & 1 deletion application/views/survey/frontpage/registerForm/form.php
Expand Up @@ -29,7 +29,7 @@
<?php } ?>
<?php if($bCaptcha){ ?>
<div class='form-group captcha-item'>
<label class='control-label col-sm-5' for='loadsecurity'><?php echo gT("Please enter the letters you see:") ?><?php $this->renderPartial('/survey/system/required',array());?></label>
<label class='control-label col-sm-5' for='loadsecurity'><?php echo gT("Please solve the following equation:") ?><?php $this->renderPartial('/survey/system/required',array());?></label>
<div class='col-sm-7'>
<div class='input-group'>
<div class='control-label captcha-widget' >
Expand Down
2 changes: 1 addition & 1 deletion application/views/survey/frontpage/tokenForm/form.php
Expand Up @@ -24,7 +24,7 @@
<?php if (isset($bCaptchaEnabled)): ?>
<div class='form-group captcha-item'>
<!-- Don't seems aria capable -->
<label class='control-label col-sm-3' for='loadsecurity'><?php echo gT("Please enter the letters you see:") ?><?php $this->renderPartial('/survey/system/required',array());?></label>
<label class='control-label col-sm-3' for='loadsecurity'><?php echo gT("Please solve the following equation:") ?><?php $this->renderPartial('/survey/system/required',array());?></label>
<div class='col-sm-7'>
<div class='ls-input-group'>
<div class='ls-input-group-extra captcha-widget' >
Expand Down
2 changes: 1 addition & 1 deletion application/views/survey/system/formItem/captcha.php
Expand Up @@ -7,7 +7,7 @@

?>
<div class='form-group captcha-item'>
<label class='control-label col-sm-5' for='loadsecurity'><?php echo gT("Please enter the letters you see:") ?></label>
<label class='control-label col-sm-5' for='loadsecurity'><?php echo gT("Please solve the following equation:") ?></label>
<div class='col-sm-7 load-survey-input input-cell'>
<div class='input-group'>
<div class='input-group-addon captcha-widget' >
Expand Down
Expand Up @@ -47,7 +47,7 @@

<!-- Doesn't seems aria capable -->
<label class='{{ aSurveyInfo.class.maincolformdivblabel }} control-label col-sm-4' {{ aSurveyInfo.attr.maincolformdivblabel }} >
{{ "Please enter the letters you see:" | t }}
{{ "Please solve the following equation" | t }}
<small class="{{ aSurveyInfo.class.maincolformdivblabelsmall }} text-danger asterisk fa fa-asterisk pull-left small" {{ aSurveyInfo.attr.maincolformdivblabelsmall }} ></small>
<span class="{{ aSurveyInfo.class.maincolformdivblabelspan }} sr-only text-danger asterisk" {{ aSurveyInfo.attr.maincolformdivblabelspan }}>
( {{ "Mandatory" | t }} )
Expand Down
Expand Up @@ -57,7 +57,7 @@

<!-- Doesn't seems aria capable -->
<label class='{{ aSurveyInfo.class.maincolformdivblabel }} control-label col-sm-3' {{ aSurveyInfo.attr.maincolformdivblabel }} >
{{ "Please enter the letters you see:" | t }}
{{ "Please solve the following equation:" | t }}
<small class="{{ aSurveyInfo.class.maincolformdivblabelsmall }} text-danger asterisk fa fa-asterisk pull-left small" {{ aSurveyInfo.attr.maincolformdivblabelsmall }} ></small>
<span class="{{ aSurveyInfo.class.maincolformdivblabelspan }} sr-only text-danger asterisk" {{ aSurveyInfo.attr.maincolformdivblabelspan }}>
( {{ "Mandatory" | t }} )
Expand Down
Expand Up @@ -59,7 +59,7 @@
{# Captcha box #}
{% if aSurveyInfo.bCaptcha %}
<div class='{{ aSurveyInfo.class.registerformcaptcha }} form-group row ' {{ aSurveyInfo.attr.registerformcaptcha }}>
<label class='{{ aSurveyInfo.class.registerformcaptchalabel }} control-label ' {{ aSurveyInfo.attr.registerformcaptchalabel }} >{{ "Please enter the letters you see:" | t }} {{ include('./subviews/registration/required.twig') }}</label>
<label class='{{ aSurveyInfo.class.registerformcaptchalabel }} control-label ' {{ aSurveyInfo.attr.registerformcaptchalabel }} >{{ "Please solve the following equation:" | t }} {{ include('./subviews/registration/required.twig') }}</label>
<div {{ aSurveyInfo.attr.registerformcaptchadiv }}>
<div class='{{ aSurveyInfo.class.registerformcaptchadivb }} input-group' {{ aSurveyInfo.attr.registerformcaptchadivb }}>
<div class='{{ aSurveyInfo.class.registerformcaptchadivc }} control-label' {{ aSurveyInfo.attr.registerformcaptchadivc }}>
Expand Down

0 comments on commit 9fae894

Please sign in to comment.