Center contact form div

main
rebuilt 3 years ago
parent f8c91add3e
commit 58ebe4df1a

@ -35,9 +35,12 @@
</div> </div>
</section> </section>
<!-- Message confirmation-->
<%= render partial: 'layouts/message_confirmation' %>
<!-- Contact section--> <!-- Contact section-->
<%# <%= link_to "Contact Form", new_contact_path %1> %> <div class="row">
<%= render partial: "contacts/contact_form" %> <section class="col-md-2 mx-auto">
<!-- Message confirmation-->
<%= render partial: 'layouts/message_confirmation' %>
<%= render partial: "contacts/contact_form" %>
</section>
</div>

@ -1,4 +1,4 @@
require "active_support/core_ext/integer/time" require 'active_support/core_ext/integer/time'
Rails.application.configure do Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb. # Settings specified here will take precedence over those in config/application.rb.
@ -22,7 +22,7 @@ Rails.application.configure do
# Disable serving static files from the `/public` folder by default since # Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this. # Apache or NGINX already handles this.
config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present? config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
# Compress CSS using a preprocessor. # Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass # config.assets.css_compressor = :sass
@ -53,7 +53,7 @@ Rails.application.configure do
config.log_level = :info config.log_level = :info
# Prepend all log lines with the following tags. # Prepend all log lines with the following tags.
config.log_tags = [ :request_id ] config.log_tags = [:request_id]
# Use a different cache store in production. # Use a different cache store in production.
# config.cache_store = :mem_cache_store # config.cache_store = :mem_cache_store
@ -82,7 +82,7 @@ Rails.application.configure do
# require "syslog/logger" # require "syslog/logger"
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name") # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name")
if ENV["RAILS_LOG_TO_STDOUT"].present? if ENV['RAILS_LOG_TO_STDOUT'].present?
logger = ActiveSupport::Logger.new(STDOUT) logger = ActiveSupport::Logger.new(STDOUT)
logger.formatter = config.log_formatter logger.formatter = config.log_formatter
config.logger = ActiveSupport::TaggedLogging.new(logger) config.logger = ActiveSupport::TaggedLogging.new(logger)
@ -92,12 +92,12 @@ Rails.application.configure do
config.active_record.dump_schema_after_migration = false config.active_record.dump_schema_after_migration = false
ActionMailer::Base.smtp_settings = { ActionMailer::Base.smtp_settings = {
:port => ENV['MAILGUN_SMTP_PORT'], port: ENV['MAILGUN_SMTP_PORT'],
:address => ENV['MAILGUN_SMTP_SERVER'], address: ENV['MAILGUN_SMTP_SERVER'],
:user_name => ENV['MAILGUN_SMTP_LOGIN'], user_name: ENV['MAILGUN_SMTP_LOGIN'],
:password => ENV['MAILGUN_SMTP_PASSWORD'], password: ENV['MAILGUN_SMTP_PASSWORD'],
:domain => 'edcommonwealth.org', # UPDATE THIS VALUE WITH YOUR OWN APP domain: 'edcommonwealth.org', # UPDATE THIS VALUE WITH YOUR OWN APP sandbox40fae401f9cc472c927c7ed271d736f7.mailgun.org
:authentication => :plain, authentication: :plain
} }
ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.delivery_method = :smtp
end end

Loading…
Cancel
Save