master
1<% content_for(:title) do %>
2 <%= t(".title") %>
3<% end %>
4
5<div class="container">
6 <div class="columns">
7 <div class="column is-12">
8 <h1 class="title"><%= t(".title") %></h1>
9 <%= form_for(@gym) do |form| %>
10 <%= form.label :name, class: 'label' %>
11 <%= form.text_field :name, class: 'input' %>
12 <%= form.fields_for :location do |location_form| %>
13 <%= location_form.label :address, class: 'label' %>
14 <%= location_form.text_field :address, class: 'input' %>
15 <%= location_form.label :city, class: 'label' %>
16 <%= location_form.text_field :city, class: 'input' %>
17 <%= location_form.label :region, class: 'label' %>
18 <%= location_form.text_field :region, class: 'input' %>
19 <%= location_form.label :country, class: 'label' %>
20 <p class="control">
21 <span class+'select is-large'>
22 <%= location_form.select :country, @countries %>
23 </span>
24 </p>
25 <%= location_form.label :postal_code, class: 'label' %>
26 <%= location_form.text_field :postal_code, class: 'input' %>
27 <% end %>
28 <p class="control">
29 <%= form.submit t(:save), class: 'button is-primary is-fullwidth' %>
30 </p>
31 <% end %>
32 </div>
33 </div>
34</div>