Skip to content

Commit

Permalink
Merge pull request #1768 from codebar/update-grid-container-on-member…
Browse files Browse the repository at this point in the history
…-sign-up-and-profile-pages

Replace container-fluid class with contianer on member sign up and profile pages
  • Loading branch information
matyikriszta committed Jun 30, 2022
2 parents 06d9497 + 0d13917 commit 58ff880
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 38 deletions.
8 changes: 4 additions & 4 deletions app/views/member/details/edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.container-fluid.pt-3
.container.py-4.py-lg-5
.row.justify-content-md-center
.col.col-md-8
.col-md-10.col-lg-8
%h1= t('member.details.edit.title')
%p= t('member.details.edit.summary')

= simple_form_for @member, url: member_details_path, method: :put do |f|
.row.justify-content-md-center
.col.col-md-8
.col-md-10.col-lg-8
= f.input :name, required: true
= f.input :surname, required: true
= f.input :pronouns
Expand All @@ -16,6 +16,6 @@
- else
= f.input :about_you, as: :text, label: t('member.details.edit.student.about_you'), input_html: { rows: 3 }, required: true
= f.input :newsletter, as: :boolean, checked_value: true, unchecked_value: false
.text-right
.text-right.mb-4
= hidden_field_tag :next_page, step2_member_path(member_type: @type)
= f.button :button, t('member.details.edit.submit'), class: 'btn btn-primary'
6 changes: 3 additions & 3 deletions app/views/members/_coach_invite_subscriptions.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.row.justify-content-md-center.subscriptions
.col.col-md-8
.col-md-10.col-lg-8
%h2.h4.toggle
As a Coach
- if collapsed
Expand All @@ -13,10 +13,10 @@
= simple_form_for :subscription, url: :destroy_subscriptions, method: :delete do |f|
= f.hidden_field :subscription_id, value: nil
= f.hidden_field :group_id, value: group.id
= button_tag type: :submit, class: 'btn btn-success w-100' do
= button_tag type: :submit, class: 'btn btn-success w-100 mb-4' do
%i.fas.fa-check
= group.chapter.name
- else
= simple_form_for :subscription, url: :subscriptions do |f|
= f.hidden_field :group_id, value: group.id
= f.button :button, group.chapter.name, class: 'btn btn-secondary w-100'
= f.button :button, group.chapter.name, class: 'btn btn-secondary w-100 mb-4'
6 changes: 3 additions & 3 deletions app/views/members/_student_invite_subscriptions.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.row.justify-content-md-center.subscriptions
.col.col-md-8
.col-md-10.col-lg-8
%h2.h4.toggle
As a Student
- if collapsed
Expand All @@ -13,10 +13,10 @@
= simple_form_for :subscription, url: :destroy_subscriptions, method: :delete do |f|
= f.hidden_field :subscription_id, value: nil
= f.hidden_field :group_id, value: group.id
= button_tag type: :submit, class: 'btn btn-success w-100' do
= button_tag type: :submit, class: 'btn btn-success w-100 mb-4' do
%i.fas.fa-check
= group.chapter.name
- else
= simple_form_for :subscription, url: :subscriptions do |f|
= f.hidden_field :group_id, value: group.id
= f.button :button, group.chapter.name, class: 'btn btn-secondary w-100'
= f.button :button, group.chapter.name, class: 'btn btn-secondary w-100 mb-4'
45 changes: 23 additions & 22 deletions app/views/members/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
.container-fluid.stripe.reverse
.container.py-4.py-lg-5
.row.justify-content-md-center
.col.col-md-8
.col-md-10.col-lg-8
%h1= @page_title

.container-fluid.stripe.reverse
.row.justify-content-md-center
.col.col-md-8
%p.lead
= t('members.new.intro')
= link_to t('members.code_of_conduct'), code_of_conduct_path
\.
%p.lead
= t('members.new.students.intro')
= link_to t('members.new.students.criteria_link'), 'http://codebar.io/student-guide#eligibility'
= t('members.new.students.criteria_brief')
%p.lead
= t('members.new.students.github')
.d-flex.flex-column.align-items-start
= link_to registration_path(member_type: 'student'), class: 'btn-lg btn-primary mb-4' do
= t('members.sign_up_as_student')
%i.fab.fa-github
= link_to registration_path(member_type: 'coach'), class: 'btn-lg btn-primary' do
= t('members.sign_up_as_coach')
%i.fab.fa-github
.py-4.py-lg-5.bg-light
.container
.row.justify-content-md-center
.col-md-10.col-lg-8
%p.lead
= t('members.new.intro')
= link_to t('members.code_of_conduct'), code_of_conduct_path
\.
%p.lead
= t('members.new.students.intro')
= link_to t('members.new.students.criteria_link'), 'http://codebar.io/student-guide#eligibility'
= t('members.new.students.criteria_brief')
%p.lead
= t('members.new.students.github')
.d-flex.flex-column.align-items-start
= link_to registration_path(member_type: 'student'), class: 'btn-lg btn-primary mb-4 text-decoration-none' do
= t('members.sign_up_as_student')
%i.fab.fa-github
= link_to registration_path(member_type: 'coach'), class: 'btn-lg btn-primary text-decoration-none' do
= t('members.sign_up_as_coach')
%i.fab.fa-github
6 changes: 3 additions & 3 deletions app/views/members/step2.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.container-fluid.pt-3
.container.py-4.py-lg-5
.row.justify-content-md-center
.col.col-md-8
.col-md-10.col-lg-8
%h1 Subscribe
%p To receive invitations to our events you must subscribe to the appropriate chapters. Alternatively, you can always RSVP directly from the website. Just be aware that spots to some of our busier chapters fill up fast.

Expand All @@ -13,5 +13,5 @@
= render partial: 'coach_invite_subscriptions', locals: {groups: @coach_groups, collapsed: false}

.row.justify-content-md-center.mb-4
.col.col-md-8.text-right
.col-md-10.col-lg-8.text-right
= link_to 'Done', profile_path, class: 'btn btn-primary', role: 'button'
6 changes: 3 additions & 3 deletions app/views/terms_and_conditions/show.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.container-fluid.stripe.reverse
.container.py-4.py-lg-5
.row.justify-content-md-center
.col.col-md-8
.col-md-10.col-lg-8
%h1= t('terms_and_conditions.title')
%p
= t('terms_and_conditions.body')
Expand All @@ -9,6 +9,6 @@

= simple_form_for @terms_and_conditions_form, url: terms_and_conditions_path, method: :patch do |f|
.row.justify-content-md-center
.col.col-md-8
.col-md-10.col-lg-8
= f.input :terms, as: :boolean
= f.button :button, t('terms_and_conditions.accept'), class: 'btn btn-primary mb-0'

0 comments on commit 58ff880

Please sign in to comment.