[Git][noosfero/noosfero][master] 2 commits: Fixing layout in Manage Captcha
Rodrigo Souto
gitlab at mg.gitlab.com
Tue Sep 18 07:58:34 BRT 2018
Rodrigo Souto pushed to branch master at Noosfero / noosfero
Commits:
5c3ff2bf by Alax Alves at 2018-09-13T13:58:53Z
Fixing layout in Manage Captcha
Signed-off-by: Alax Alves <alaxallves at gmail.com>
- - - - -
ad4c0723 by Rodrigo Souto at 2018-09-18T10:58:32Z
Merge branch 'issue-368' into 'master'
Fixing layout in Manage Captcha
See merge request noosfero/noosfero!1612
- - - - -
2 changed files:
- app/views/captcha/index.html.erb
- public/stylesheets/slider.scss
Changes:
=====================================
app/views/captcha/index.html.erb
=====================================
@@ -3,12 +3,16 @@
<%= _('Define who is obliged to answer the captcha verification for each action.') %>
<%= form_tag do %>
- <% environment.captcha_requirements.each do |action, settings| %>
- <div class='captcha-sliders'>
- <%= content_tag('h4', settings[:label]) %>
- <%= restriction_slider_field_tag(action, "captcha[#{action}]", nil, environment.get_captcha_level(action), settings[:options]) %>
- </div>
- <% end %>
+
+ <div class='captcha-sliders-wrapper'>
+ <% environment.captcha_requirements.each do |action, settings| %>
+ <div class='captcha-sliders'>
+ <%= content_tag('h4', settings[:label]) %>
+ <%= restriction_slider_field_tag(action, "captcha[#{action}]", nil, environment.get_captcha_level(action), settings[:options]) %>
+ </div>
+ <% end %>
+ </div>
+
<%= button_bar do %>
<%= button :back, _('Back to admin panel'), :controller => 'admin_panel' %>
=====================================
public/stylesheets/slider.scss
=====================================
@@ -22,4 +22,9 @@
float: left;
width: 50%;
margin-bottom: 20px;
+}
+
+.captcha-sliders-wrapper {
+ display: flex;
+ flex-wrap: wrap;
}
\ No newline at end of file
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/fbbaff0284467d5ef3ffdea77042788bd20c5d7e...ad4c0723e801e3b9d3ba20a7be8328c02d30134e
--
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/fbbaff0284467d5ef3ffdea77042788bd20c5d7e...ad4c0723e801e3b9d3ba20a7be8328c02d30134e
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180918/e020dea7/attachment-0001.html>
More information about the Noosfero-dev
mailing list