[Git][noosfero/noosfero][master] 2 commits: Fixes layout of custom fields in signup page

Rodrigo Souto gitlab at mg.gitlab.com
Fri Jun 16 16:11:14 BRT 2017


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
f06f84de by Gabriel Silva at 2017-06-16T18:33:15+00:00
Fixes layout of custom fields in signup page

Signed-off-by: Gabriel Silva <gabriel93.silva at gmail.com>

- - - - -
3c0b023c by Rodrigo Souto at 2017-06-16T19:10:57+00:00
Merge branch 'custom_fields_signup' into 'master'

Fixes layout of custom fields in signup page

Closes #151

See merge request !1243
- - - - -


2 changed files:

- app/views/shared/_custom_fields.html.erb
- public/designs/themes/base/stylesheets/signup.scss


Changes:

=====================================
app/views/shared/_custom_fields.html.erb
=====================================
--- a/app/views/shared/_custom_fields.html.erb
+++ b/app/views/shared/_custom_fields.html.erb
@@ -6,7 +6,7 @@
 <% editing_profile ||= false %>
 <% fields.each do |field| %>
   <% rendered = render(:partial => "custom_fields/#{field.format}", :locals => {:field => field, :profile => profile, :name => "profile_data[custom_values[#{field.name}[value]]]"})%>
-  <div class="<%= 'field-with-privacy-selector' if editing_profile %>">
+  <div class="custom-field <%= field.format %> <%= 'field-with-privacy-selector' if editing_profile %>">
 
   <% if field.required%>
     <%= required rendered%>


=====================================
public/designs/themes/base/stylesheets/signup.scss
=====================================
--- a/public/designs/themes/base/stylesheets/signup.scss
+++ b/public/designs/themes/base/stylesheets/signup.scss
@@ -75,11 +75,14 @@
   background: #fff;
 }
 
+#signup-form select {
+  width: 100%;
+}
+
 #signup-form textarea {
-  background: #fff;
   height: 100px;
   padding-right: 3px;
-  width: 365px;
+  width: 96%;
 }
 
 #signup-form input[type=file] {
@@ -98,6 +101,11 @@
   margin: 0px 5px 0px 3px;
 }
 
+#signup-form input[type=number] {
+  padding-right: 0;
+  width: 96%;
+}
+
 #signup-form .fieldgroup {
   margin: 5px 10px;
 }
@@ -249,3 +257,15 @@
   content: '';
 }
 
+#signup-form div.custom-field.checkbox {
+  text-align: left;
+  padding: 10px 0;
+
+  label {
+    font-size: 20px;
+  }
+}
+
+#signup-form-profile {
+  margin-bottom: 10px;
+}



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/94d211b59e681a00a3590e5d11714d10b351c901...3c0b023c7e4fcf0cfab271ac73f3661ef95272e1

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/94d211b59e681a00a3590e5d11714d10b351c901...3c0b023c7e4fcf0cfab271ac73f3661ef95272e1
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/20170616/8afaf56c/attachment-0001.html>


More information about the Noosfero-dev mailing list