apps/admin/templates/people/_form.html.erb
<%=
form_for form, class: 'ui form' do
div class: 'two fields' do
div class: 'field' do
label :name
text_field :name
end
div class: 'field gender' do
values = Hash["Male" => "male", "Female" => "female"]
label :gender
select :gender, values, class: "ui search dropdown"
end
end
fields_for_collection :moments do
h4 'Moment', class: 'ui dividing header'
div class: 'ui padded basic segment' do
div class: 'two fields ' do
div class: 'field' do
label 'Date Begin'
text_field :date_begin
end
div class: 'field' do
label 'Date End'
text_field :date_end
end
hidden_field :id
end
fields_for_collection :locations do
div class: 'field' do
label 'Address'
text_field :address
end
hidden_field :id
end
end
end
div class: 'field' do
submit submit_label, class: 'ui teal button'
end
end
%>