-
Notifications
You must be signed in to change notification settings - Fork 3
【admin】火器使用申請UIの作成 #1950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gm3/develop
Are you sure you want to change the base?
【admin】火器使用申請UIの作成 #1950
Conversation
izuizu0424
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| end | ||
| bom = "\uFEFF" | ||
| csv_data = CSV.generate(bom) do |csv| | ||
| column_name = %w(ID 団体名 品目 数量 燃料 使用場所 持ち帰り 備考) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
figmaだと火気の名称 , 火気の台数 , 使用用途 だった
| column_name = %w(ID 団体名 品目 数量 燃料 使用場所 持ち帰り 備考) | |
| column_name = %w(ID 団体名 火気の名称 火気の台数 燃料 使用用途 持ち帰り 備考) |
| column_name = %w(参加団体名 PR文 URL アナウンス有無) | ||
| column_name = %w(参加団体名 PR文 PR画像) | ||
| csv << column_name | ||
| @public_relations.each do |public_relations| | ||
| # データが存在しない場合はスキップする | ||
| if public_relations.nil? | ||
| @public_relations.each do |public_relation| | ||
| if public_relation.nil? | ||
| next | ||
| end | ||
| column_values = [ | ||
| public_relations.group.name, | ||
| public_relations.blurb, | ||
| public_relations.picture_path, | ||
| public_relations.is_announcement_requested ? "有" : "無", | ||
| public_relation.group.name, | ||
| public_relation.pr_comment, | ||
| public_relation.pr_image, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
なぜかpublic_relationsも変更されてる
|public_relations| を |public_relation| にするのは良さげ
| order.quantity, | ||
| fuel_jp, | ||
| order.usage, | ||
| order.is_takeaway ? 'はい' : 'いいえ', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
csv出力に持ち帰るかどうかはいらないかも
持ち帰る にしないと登録できないから
| order.is_takeaway ? 'はい' : 'いいえ', |
その場合、column_name から 持ち帰り を消す
|
バックエンド:controller で燃料enumの変換ロジックが重複するから、まとめられるならまとめたい感 |
|
@harata-t |
…ut for fire equipment orders
…" in UI and CSV output for fire equipment orders
…ipment orders to improve clarity and consistency
…ns in fire equipment order UI and API responses
harata-t
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
izuizu0424
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
レビュー遅くなってすみません
csv出力なんですが,持って帰らない場合もあったと思うのでパラディンさんと要確認です
その他は大丈夫でした.
|
パラディンとよりも総務側でどのパターンのcsvがほしいかを確認すべきなのでは? |
|
バンバンslackで聞いちゃおう |





対応Issue
resolve #0
概要
実装詳細
画面スクリーンショット等
テスト項目
備考