0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

file_field_tag と submit_tag を横並びまたは縦並びに調整する

Last updated at Posted at 2022-04-01

個人的な作業メモ。erbではなくhamlを使っており、.col-snやボタンのスタイルは、Railsの標準Gemfileとして設定されているBootstrap

横並び

image.png

= form_tag import_items_path, multipart: true do
  = file_field_tag :file, accept: "text/csv", style: "display: inline;"
  = submit_tag "一括編集", class: "btn btn-success"

縦並び

image.png

= form_tag import_items_path, multipart: true do
  = file_field_tag :file, accept: "text/csv"
  = submit_tag "一括編集", class: "btn btn-success", style: "margin-top:20px"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?