diff --git a/app/views/groups/edit.html.erb b/app/views/groups/edit.html.erb index 9af4ffdf..97b71e31 100644 --- a/app/views/groups/edit.html.erb +++ b/app/views/groups/edit.html.erb @@ -6,5 +6,11 @@ <%= form.text_area :desc, label: "Description", class: "description", :rows => 5 %> <%= form.text_field :link, label: "Link", class: "link" %> + + <%= form.text_field :city, class: "city" %> + + <%= form.text_field :province, class: "province" %> + + <%= form.text_field :country, class: "country" %> <%= form.submit "Update", class: "update" %> <% end %> \ No newline at end of file diff --git a/app/views/groups/new.html.erb b/app/views/groups/new.html.erb index 00b13075..563f566c 100644 --- a/app/views/groups/new.html.erb +++ b/app/views/groups/new.html.erb @@ -6,5 +6,11 @@ <%= form.text_area :desc, label: "Description", class: "description", :rows => 5 %> <%= form.text_field :link, label: "Link", class: "link" %> + + <%= form.text_field :city, class: "city" %> + + <%= form.text_field :province, class: "province" %> + + <%= form.text_field :country, class: "country" %> <%= form.submit "Add Group", class: "add" %> <% end %> \ No newline at end of file diff --git a/app/views/groups/show.html.erb b/app/views/groups/show.html.erb index ba14010c..c2f05cd0 100644 --- a/app/views/groups/show.html.erb +++ b/app/views/groups/show.html.erb @@ -10,6 +10,8 @@
+

Location

+ <%= @group.city %>, <%= @group.province %>, <%= @group.country %>

Link

<%= link_to @group.link, @group.link, :class => 'link' %>
diff --git a/app/views/people/edit.html.erb b/app/views/people/edit.html.erb index 18236e8b..38b1ac3d 100644 --- a/app/views/people/edit.html.erb +++ b/app/views/people/edit.html.erb @@ -6,5 +6,11 @@ <%= form.text_area :desc, label: "Description", class: "description", :rows => 5 %> <%= form.text_field :link, label: "Link", class: "link" %> + + <%= form.text_field :city, class: "city" %> + + <%= form.text_field :province, class: "province" %> + + <%= form.text_field :country, class: "country" %> <%= form.submit "Update", class: "update" %> <% end %> \ No newline at end of file diff --git a/app/views/people/new.html.erb b/app/views/people/new.html.erb index 7cb2942b..7e99eb34 100644 --- a/app/views/people/new.html.erb +++ b/app/views/people/new.html.erb @@ -8,5 +8,11 @@ <%= form.text_field :link, label: "Link", class: "link" %> <%= select_tag "ingroups", options_from_collection_for_select(Group.all, "id", "name"), { :multiple => true } %> + + <%= form.text_field :city, class: "city" %> + + <%= form.text_field :province, class: "province" %> + + <%= form.text_field :country, class: "country" %> <%= form.submit "Add Person", class: "add" %> <% end %> \ No newline at end of file diff --git a/app/views/people/show.html.erb b/app/views/people/show.html.erb index 92da0d91..c33b8c37 100644 --- a/app/views/people/show.html.erb +++ b/app/views/people/show.html.erb @@ -10,6 +10,8 @@
+

Location

+ <%= @person.city %>, <%= @person.province %>, <%= @person.country %>

Link

<%= link_to @person.link, @person.link, :class => 'link' %>