Improve HTML
This commit is contained in:
parent
7600e048a7
commit
dfb0d99b73
1 changed files with 26 additions and 20 deletions
|
@ -1,4 +1,6 @@
|
||||||
<%= simple_form_for passport do |f| %>
|
<%= simple_form_for passport do |f| %>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
<%= f.simple_fields_for :passport_map do |ff| %>
|
<%= f.simple_fields_for :passport_map do |ff| %>
|
||||||
<%= ff.input :surname %>
|
<%= ff.input :surname %>
|
||||||
<%= ff.input :given_name %>
|
<%= ff.input :given_name %>
|
||||||
|
@ -18,8 +20,12 @@
|
||||||
<%= ff.input :date_of_issue, start_year: Date.today.year - 150,
|
<%= ff.input :date_of_issue, start_year: Date.today.year - 150,
|
||||||
end_year: Date.today.year %>
|
end_year: Date.today.year %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
<%= f.input :images %>
|
<%= f.input :images %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= f.button :submit %>
|
<%= f.button :submit %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Reference in a new issue