changed 'add Item' to add Topic.
This commit is contained in:
parent
d2f7fef835
commit
aeb0e99971
3 changed files with 4 additions and 4 deletions
|
@ -12,6 +12,6 @@
|
|||
<%= form.text_field :link, class: "link" %>
|
||||
<label for="item_permission">Permission</label>
|
||||
<%= form.select(:permission, options_for_select(['commons', 'public', 'private'])) %>
|
||||
<%= form.submit "Add Item", class: "addItem", id: "addItem" %>
|
||||
<%= form.submit "Add Topic", class: "addTopic", id: "addTopic" %>
|
||||
<% end %>
|
||||
</div>
|
|
@ -11,6 +11,6 @@
|
|||
<%= form.text_field :link, class: "link" %>
|
||||
<label for="item_permission">Permission</label>
|
||||
<%= form.select(:permission, options_for_select(['commons', 'public', 'private'])) %>
|
||||
<%= form.submit "Add Item", class: "add" %>
|
||||
<%= form.submit "Add Topic", class: "addTopic", id: "addTopic" %>
|
||||
<% end %>
|
||||
</div>
|
|
@ -18,12 +18,12 @@
|
|||
<label for="item_permission">Permission</label>
|
||||
<%= form.select(:permission, options_for_select(['commons', 'public', 'private'])) %>
|
||||
<%= form.hidden_field :map, :value => @map.id %>
|
||||
<%= form.submit "Add Item", class: "addItem", id: "addItem" %>
|
||||
<%= form.submit "Add Topic", class: "addTopic", id: "addTopic" %>
|
||||
</div>
|
||||
<div class="existingtopic" style="display:none;" >
|
||||
<label for="initem">Select Topic To Add</label>
|
||||
<%= select_tag "initem", options_from_collection_for_select(Item.order("name ASC").visibleToUser(user, nil).delete_if{|item| @map.items.include?(item)}, "id", "name") %>
|
||||
<%= form.submit "Add Item", class: "addItem", id: "addItem" %>
|
||||
<%= form.submit "Add Topic", class: "addTopic", id: "addTopic" %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
Loading…
Reference in a new issue