-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added option to set the captcha form on a resource form
- Loading branch information
1 parent
9c45225
commit 389684e
Showing
5 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/cms/lib/modules/resource-form-widgets/views/includes/fields/captcha.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div id="captcha"> | ||
<h2>{{ data.widget.labelCaptcha if data.widget.labelCaptcha else 'Captcha' }}</h2> | ||
<div class="form-info" style="height: auto;"> <div class="form-field"> | ||
|
||
<img loading="lazy" src="{{data.siteUrl}}/modules/openstad-captcha/captcha" class="captcha-img" width="200" /> | ||
<br /> | ||
<a href="#" class="captcha-refresh"> | ||
<small class="underline"> | ||
refresh | ||
</small> | ||
</a> | ||
<br /> | ||
<label> | ||
{% if data.widget.captchaLabel %} | ||
{{data.widget.captchaLabel}} | ||
{% else %} | ||
{{ __('Please enter the words you see into the field below ') }} | ||
{% endif %} | ||
</label> | ||
<br /> | ||
<input type="text" class="input-field" required name="areYouABot" /> | ||
</div> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
389684e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Published new image:
openstad/frontend:feature-add-captcha-to-resource-form-if-set-to-everyone-389684e