Skip to content

Commit 449c13d

Browse files
authored
Merge pull request #1649 from coderdojo-japan/pokemon-sozai-downloader-is-renewed
🆙 Disable Pokémon download form; instead, add instruction to use the new one
2 parents 5ba967f + 6d700da commit 449c13d

File tree

2 files changed

+29
-17
lines changed

2 files changed

+29
-17
lines changed

app/views/pokemons/new.html.haml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,35 @@
1212
ダウンロード
1313
= lazy_image_tag '/img/pokemon_scratch.png', alt: 'ポケモン・ワークショップのカバー画像', min: true, style: "padding-bottom: 50px; border-radius: 4px;"
1414
15-
%p 『プログラミングでポケモンをうごかしてみよう』のワークショップで使うポケモン素材です。
1615
%p
17-
利用規約は、
18-
%b<> 保護者の方が参加者と一緒に
19-
ご確認いただくようお願い致します。
16+
17+
%a{href: pokemon_workshop_path}<> プログラミングでポケモンをうごかしてみよう
18+
』のワークショップで使うポケモン素材です。
19+
/%p
20+
/ 利用規約は、
21+
/ %b<> 保護者の方が参加者と一緒に
22+
/ ご確認いただくようお願い致します。
23+
24+
%blockquote{style: 'border: 1px solid black; padding: .5em 1.5em; margin: 1em 0 1.5em; margin: 50px auto 50px;'}
25+
%p{style: 'font-weight: bolder;'}
26+
🆕
27+
本ワークショップは、2024年度にダウンロード版からオンライン版に移行しました。CoderDojo 運営者の方で本ワークショップ実施予定の方は
28+
%a{href: kata_path(anchor: 'pokemon')} Kata
29+
に記載されているリンク先から詳細をご確認ください。
30+
2031
= form_with url: pokemon_path, class: 'form' do |f|
2132
.field
2233
= f.label :email, "メールアドレス"
23-
= f.email_field :email, autofocus: true, required: true, autocomplete: "email", class: "form__field", placeholder: '例: [email protected]'
34+
= f.email_field :email, autofocus: true, required: true, autocomplete: "email", class: "form__field", placeholder: '例: [email protected]', disabled: true
2435
.field
2536
= f.label :parent_name, "保護者の名前"
26-
= f.text_field :parent_name, autofocus: true, required: true, autocomplete: "name", class: "form__field", placeholder: '例: 幸田 道場'
37+
= f.text_field :parent_name, autofocus: true, required: true, autocomplete: "name", class: "form__field", placeholder: '例: 幸田 道場', disabled: true
2738
.field
2839
= f.label :participant_name, "参加者の名前"
29-
= f.text_field :participant_name, autofocus: true, required: true, autocomplete: "name", class: "form__field", placeholder: '例: 幸田 道子'
40+
= f.text_field :participant_name, autofocus: true, required: true, autocomplete: "name", class: "form__field", placeholder: '例: 幸田 道子', disabled: true
3041
.field
3142
= f.label :dojo_name, "道場名"
32-
= f.text_field :dojo_name, autofocus: true, required: true, class: "form__field", placeholder: '例: CoderDojo 柏'
43+
= f.text_field :dojo_name, autofocus: true, required: true, class: "form__field", placeholder: '例: CoderDojo 柏', disabled: true
3344
.form__terms
3445
%h2.form__h2 ポケモン素材の利用規約
3546
%p
@@ -48,10 +59,10 @@
4859
%li
4960
%small 本素材の著作権その他一切の権利は、株式会社ポケモンまたは株式会社ポケモンに権利を許諾した第三者に帰属しています。本素材または本素材を使った作品の頒布、譲渡、公衆送信、貸与、リース、輸出、再許諾などはできません。
5061
.field
51-
= f.check_box :term_of_use, required: true, style: "display:inline"
62+
= f.check_box :term_of_use, required: true, disabled: true, style: "display:inline"
5263
= f.label :term_of_use, "上記の利用規約(全文)に同意する", style: "display:inline"
5364
54-
= f.submit "申し込む", class: "form__submit"
65+
= f.submit "申し込む", class: "form__submit", disabled: true
5566
5667
%p.pokemon-notes
5768
Scratchは、Scratch財団がMITメディアラボのライフロング・キンダーガーテン・グループの協力により開発しているプロジェクトです。

config/routes.rb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,14 @@
6666
resources :podcasts, only: %i(index show)
6767
resources :spaces, only: %i(index)
6868

69-
get "/podcast", to: redirect('/podcasts')
70-
get "/podcasts/feed" => "podcasts#feed"
71-
get "/stats" => "stats#show"
72-
get "/pokemon" => "pokemons#new"
73-
post "/pokemon" => "pokemons#create"
74-
get "/pokemon/download" => "pokemons#show"
75-
get "/pokemon/workshop" => "pokemons#workshop"
69+
get "/podcast", to: redirect('/podcasts')
70+
get "/podcasts/feed" => "podcasts#feed"
71+
get "/stats" => "stats#show"
72+
get "/pokemon" => "pokemons#new"
73+
#post "/pokemon" => "pokemons#create"
74+
#get "/pokemon/download" => "pokemons#show"
75+
get "/pokemon/download", to: redirect('/pokemon')
76+
get "/pokemon/workshop" => "pokemons#workshop"
7677

7778
# TODO: Need to investigate why the following code calls Scrivito.
7879
# Hotfix with the code above that works correctly.

0 commit comments

Comments
 (0)