added location info
This commit is contained in:
parent
f3ee998eee
commit
1b9fa104c6
6 changed files with 28 additions and 0 deletions
|
@ -6,5 +6,11 @@
|
|||
<%= form.text_area :desc, label: "Description", class: "description", :rows => 5 %>
|
||||
<label for="group_link">Link</label>
|
||||
<%= form.text_field :link, label: "Link", class: "link" %>
|
||||
<label for="group_city">City</label>
|
||||
<%= form.text_field :city, class: "city" %>
|
||||
<label for="group_province">Province/State</label>
|
||||
<%= form.text_field :province, class: "province" %>
|
||||
<label for="group_country">Country</label>
|
||||
<%= form.text_field :country, class: "country" %>
|
||||
<%= form.submit "Update", class: "update" %>
|
||||
<% end %>
|
|
@ -6,5 +6,11 @@
|
|||
<%= form.text_area :desc, label: "Description", class: "description", :rows => 5 %>
|
||||
<label for="group_link">Link</label>
|
||||
<%= form.text_field :link, label: "Link", class: "link" %>
|
||||
<label for="group_city">City</label>
|
||||
<%= form.text_field :city, class: "city" %>
|
||||
<label for="group_province">Province/State</label>
|
||||
<%= form.text_field :province, class: "province" %>
|
||||
<label for="group_country">Country</label>
|
||||
<%= form.text_field :country, class: "country" %>
|
||||
<%= form.submit "Add Group", class: "add" %>
|
||||
<% end %>
|
|
@ -10,6 +10,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="focusright">
|
||||
<p>Location</p>
|
||||
<%= @group.city %>, <%= @group.province %>, <%= @group.country %>
|
||||
<p>Link</p>
|
||||
<%= link_to @group.link, @group.link, :class => 'link' %>
|
||||
</div>
|
||||
|
|
|
@ -6,5 +6,11 @@
|
|||
<%= form.text_area :desc, label: "Description", class: "description", :rows => 5 %>
|
||||
<label for="person_link">Link</label>
|
||||
<%= form.text_field :link, label: "Link", class: "link" %>
|
||||
<label for="person_city">City</label>
|
||||
<%= form.text_field :city, class: "city" %>
|
||||
<label for="person_province">Province/State</label>
|
||||
<%= form.text_field :province, class: "province" %>
|
||||
<label for="person_country">Country</label>
|
||||
<%= form.text_field :country, class: "country" %>
|
||||
<%= form.submit "Update", class: "update" %>
|
||||
<% end %>
|
|
@ -8,5 +8,11 @@
|
|||
<%= form.text_field :link, label: "Link", class: "link" %>
|
||||
<label for="ingroups">In These Groups</label>
|
||||
<%= select_tag "ingroups", options_from_collection_for_select(Group.all, "id", "name"), { :multiple => true } %>
|
||||
<label for="person_city">City</label>
|
||||
<%= form.text_field :city, class: "city" %>
|
||||
<label for="person_province">Province/State</label>
|
||||
<%= form.text_field :province, class: "province" %>
|
||||
<label for="person_country">Country</label>
|
||||
<%= form.text_field :country, class: "country" %>
|
||||
<%= form.submit "Add Person", class: "add" %>
|
||||
<% end %>
|
|
@ -10,6 +10,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="focusright">
|
||||
<p>Location</p>
|
||||
<%= @person.city %>, <%= @person.province %>, <%= @person.country %>
|
||||
<p>Link</p>
|
||||
<%= link_to @person.link, @person.link, :class => 'link' %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue