Added house rules to housing admin and review
This commit is contained in:
@@ -8,15 +8,22 @@
|
||||
|
||||
- first_row = true
|
||||
%table.hosts.admin-edit
|
||||
- @hosts.each do |id, registration|
|
||||
- unless first_row
|
||||
%tr.spacer
|
||||
%td
|
||||
%tr.host
|
||||
%th
|
||||
.name=registration.user.name
|
||||
.address=registration.housing_data['address']
|
||||
- if registration.housing_data['notes'].present?
|
||||
.host-notes=paragraph(registration.housing_data['notes'])
|
||||
%td.inner-table{colspan: 2}=host_guests_table(registration)
|
||||
- first_row = false
|
||||
- @hosts.sort_by{ |id, registration| registration.user.name }.each do |id, registration|
|
||||
- if @housing_data[id][:space].map { |k,v| v }.sum > 0
|
||||
- unless first_row
|
||||
%tr.spacer
|
||||
%td
|
||||
%tr.host
|
||||
%th
|
||||
.name=registration.user.name
|
||||
.address=location_link(Location.find_location(registration.housing_data['address'], @this_conference.city))
|
||||
- if registration.housing_data['notes'].present?
|
||||
.host-notes=paragraph(registration.housing_data['notes'])
|
||||
- if registration.housing_data['info'].present?
|
||||
%div=_'articles.conference_registration.headings.housing.Rules', :t
|
||||
.house-rules
|
||||
=richtext(registration.housing_data['info'], 4)
|
||||
|
||||
%td.inner-table{colspan: 2}
|
||||
=host_guests_table(registration)
|
||||
- first_row = false
|
||||
|
||||
@@ -39,6 +39,16 @@
|
||||
- if @allow_reopen_attendance
|
||||
.actions.centered
|
||||
= button :reopen_registration, value: :reopen_registration
|
||||
- if @host
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h3=_'articles.conferences.headings.housing_info', :t
|
||||
%p=(_'articles.conference_registration.paragraphs.Housing', :p, vars: { name: @host.user.name, address: location_link(Location.find_location(@host.housing_data['address'], @this_conference.city)), phone: @host.housing_data['phone'], email: @host.user.email}).html_safe
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h4=_'articles.conference_registration.headings.hosting_info', :t
|
||||
= richtext @host.housing_data['info']
|
||||
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h3=_'articles.workshops.headings.Workshops', :t
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
- locale_translation = language_name(locale, true)
|
||||
- translation_text = (_'translate.content.change_locale', "Read in #{locale_translation}", vars: {language: locale_translation}, locale: locale)
|
||||
%a{href: url, lang: locale, title: translation_text}
|
||||
%span{aria: {hidden: true}}=_!locale
|
||||
%span{aria: {hidden: :true}}=_!locale
|
||||
= off_screen translation_text
|
||||
|
||||
Reference in New Issue
Block a user