Pronoun question and a few fixes

This commit is contained in:
Godwin
2017-06-12 21:27:13 -07:00
parent 6a6dfca503
commit 2ecda2bc74
15 changed files with 91 additions and 51 deletions
+18
View File
@@ -62,6 +62,10 @@ p {
&.center {
text-align: center;
}
&.small {
font-size: 3.5vw;
}
}
u {
@@ -101,6 +105,12 @@ a {
}
}
.target:target {
text-decoration: underline;
text-decoration-color: $yellow;
text-decoration-style: wavy;
}
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
height: 1px;
@@ -1768,6 +1778,10 @@ ul.warnings {
&.make-room {
margin-bottom: 2em;
}
.text-field & {
margin: 0 0 1em 0;
}
}
.success-info {
@@ -3435,6 +3449,10 @@ body.policy .policy-agreement ul {
p {
font-size: 1.25em;
&.small {
font-size: 1.125em;
}
}
fieldset {
+9 -9
View File
@@ -97,9 +97,9 @@ class ApplicationController < BaseController
if Rails.env.preview? || Rails.env.production?
request_info = {
'remote_ip' => arg.remote_ip,
'uuid' => arg.uuid,
'original_url' => arg.original_url,
'remote_ip' => request.remote_ip,
'uuid' => request.uuid,
'original_url' => request.original_url,
'env' => Hash.new
}
request.env.each do |key, value|
@@ -173,9 +173,9 @@ class ApplicationController < BaseController
if Rails.env.preview? || Rails.env.production?
suppress(Exception) do
request_info = {
'remote_ip' => arg.remote_ip,
'uuid' => arg.uuid,
'original_url' => arg.original_url,
'remote_ip' => request.remote_ip,
'uuid' => request.uuid,
'original_url' => request.original_url,
'env' => Hash.new
}
request.env.each do |key, value|
@@ -349,9 +349,9 @@ class ApplicationController < BaseController
if Rails.env.preview? || Rails.env.production?
begin
request_info = {
'remote_ip' => arg.remote_ip,
'uuid' => arg.uuid,
'original_url' => arg.original_url,
'remote_ip' => request.remote_ip,
'uuid' => request.uuid,
'original_url' => request.original_url,
'env' => Hash.new
}
request.env.each do |key, value|
+1 -1
View File
@@ -65,7 +65,7 @@ class ConferencesController < ApplicationController
# pass any data on to the view
data_to_instance_variables(result[:data])
raise result[:exception] if result[:exception].present? && Rails.env.development?
handle_exception(result[:exception]) if result[:exception].present?
if @update_status == :paypal_redirect
pp_response = @request.setup(
+5
View File
@@ -285,6 +285,11 @@ module FormHelper
html += show_errors name, value
if options[:warning].present?
description_id ||= "#{id}-desc"
html += content_tag(:div, _(options[:warning], :s, 2), id: description_id, class: 'warning-info')
end
inside_label = ''
if options[:type] == :file
+1 -1
View File
@@ -6,7 +6,7 @@ class UserMailer < ActionMailer::Base
before_filter :set_host
default from: "Bike!Bike! <godwin@bikebike.org>"
default from: "Bike!Bike! <info@bikebike.org>"
def email_confirmation(confirmation)
@confirmation = EmailConfirmation.find(confirmation) if confirmation.present?
+1 -1
View File
@@ -7,7 +7,7 @@
%h3=_'articles.policy.headings.The_Agreement'
%ul
- policies.each do |term|
%li
%li{id: checkboxes ? nil : term, class: checkboxes ? nil : :target}
- if checkboxes
= check_box_tag(term, 1, false, required: true)
.term=_"articles.policy.term.#{term.to_s}", :s, 2
+7 -2
View File
@@ -1,5 +1,10 @@
= registration_step_header
= row do
= columns(medium: 12) do
= save_registration_step do
= save_registration_step do
= columns(medium: 12) do
= textfield :name, @name, required: true, big: true
%h3=_'articles.conference_registration.headings.pronoun'
= columns(medium: 6) do
%p.small=_'articles.conference_registration.paragraphs.pronoun', :p
= columns(medium: 6) do
= textfield :pronoun, @pronoun, required: false, big: true, warning: 'articles.conference_registration.paragraphs.pronoun_optional'
@@ -26,10 +26,11 @@
- when :html
.scroller= richtext(data[:value].html_safe)
- else
- if data[:key].present?
=_"#{data[:key]}.#{data[:value]}"
- value = data[:key].present? ? (_"#{data[:key]}.#{data[:value]}") : data[:value].to_s
- if data[:supplementary].present?
= (_'string_formats.data_with_supplementary_value', vars: { value: value, supplementary_value: data[:supplementary] }).html_safe
- else
= data[:value].to_s.html_safe
= value.html_safe
- else
%p.centered=_'articles.conference_registration.paragraphs.registration_cancelled', :p
- if @allow_cancel_attendance