diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index 144dd5e2c..0f0a0435d 100644 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -2,7 +2,7 @@ class ProfilesController < ApplicationController include Secured before_action :set_conference - before_action :set_current_profile, only: [:edit, :update, :destroy, :checkin] + before_action :set_current_profile, only: [:edit, :update, :destroy, :checkin, :entry_sheet] skip_before_action :logged_in_using_omniauth?, only: [:new] before_action :is_admin?, :find_profile, only: [:destroy_id, :set_role] @@ -114,6 +114,8 @@ def checkin end end + def entry_sheet;end + helper_method :profile_url private diff --git a/app/javascript/stylesheets/_entry_sheet.scss b/app/javascript/stylesheets/_entry_sheet.scss new file mode 100644 index 000000000..f03fc3ff6 --- /dev/null +++ b/app/javascript/stylesheets/_entry_sheet.scss @@ -0,0 +1,39 @@ +.a8-container { + display: grid; + grid-template-columns: 1fr 1fr; + grid-template-rows: 1fr 1fr; + height: 100vh; + width: 100vw; +} + +.a8 { + border: 1px solid black; + display: flex; + justify-content: flex-start; + flex-direction: column; + align-items: center; + .logo-image{ + margin-top: 3rem; + } + .profile { + display: inherit; + margin-top: 2rem; + flex-direction: row; + .qrcode{ + display: inherit; + margin-right: 2rem; + flex-direction: column; + } + .detail{ + display: inherit; + margin-left: 2rem; + flex-direction: column; + } + } +} + +@media print { + .a8-container { + page-break-after: always; // コンテンツの後に改ページ + } +} diff --git a/app/javascript/stylesheets/cndt2023.scss b/app/javascript/stylesheets/cndt2023.scss index f5fb0e395..77741934b 100644 --- a/app/javascript/stylesheets/cndt2023.scss +++ b/app/javascript/stylesheets/cndt2023.scss @@ -16,8 +16,9 @@ @import "./_speaker_dashboard.scss"; @import "./_event.scss"; @import "./_checkin.scss"; +@import "./_entry_sheet.scss"; @import "./_copy.scss"; @import "./_contents.scss"; @import "./cndt2023/_cndt2023.scss"; // Import custom utilities -@import "./cndt2023/_utilities.scss"; \ No newline at end of file +@import "./cndt2023/_utilities.scss"; diff --git a/app/views/profiles/entry_sheet.html.erb b/app/views/profiles/entry_sheet.html.erb new file mode 100644 index 000000000..6ce1987f8 --- /dev/null +++ b/app/views/profiles/entry_sheet.html.erb @@ -0,0 +1,15 @@ + + + + EntrySheet + + +
+ <%= render 'profiles/partial_entry_sheet/up_left_cell'%> +
Content 2.1
+
Content 3
+
Content 4
+
+ + + diff --git a/app/views/profiles/partial_entry_sheet/_up_left_cell.html.erb b/app/views/profiles/partial_entry_sheet/_up_left_cell.html.erb new file mode 100644 index 000000000..c38e06c37 --- /dev/null +++ b/app/views/profiles/partial_entry_sheet/_up_left_cell.html.erb @@ -0,0 +1,16 @@ +
+
+ <%= image_tag "cndt2023/header_logo.png", class: "img-fluid header_logo" %> +
+
+
+ /> + <%= h("受付用QRコード") %> +
+
+ <%= h("") %> + <%= image_tag @profile.public_profile.avatar_url(:small) %> + Name: <%= @profile.public_profile.nickname %> +
+
+
diff --git a/config/routes.rb b/config/routes.rb index de8e779f1..f55da040a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -147,6 +147,7 @@ get 'profiles', to: 'profiles#edit' get 'profiles/edit', to: 'profiles#edit' get 'profiles/checkin', to: 'profiles#checkin' + get 'profiles/entry_sheet' => 'profiles#entry_sheet' resources :public_profiles