Advertisement
Guest User

Untitled

a guest
May 25th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <div class="field">
  2. <div class="col-sm-4 filter_select attribute_select">
  3. <%= f.attribute_fields do |a| %>
  4. <%= a.attribute_select associations: [:threats] %>
  5. <% end %>
  6. </div>
  7. <div class="col-sm-3 filter_select">
  8. <%= f.predicate_select compounds: false, only: [:eq,:lt,:lteq,:gt,:gteq] %>
  9. </div>
  10. <div class="col-sm-4">
  11. <%= f.value_fields do |v| %>
  12. <!-- ------------------------------------ -->
  13. <!-- I want to compare with properties/attributes from the SRA model instead of inputting a value in a text field.
  14. Hence, choosing from a dropdown as with the attribute_fields -->
  15. <!-- ------------------------------------ -->
  16. <%= v.text_field :value, class: "form-control" %>
  17. <% end %>
  18. </div>
  19. <div class="col-sm-1">
  20. <%= link_to('#', class:"remove_fields") do %>
  21. <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
  22. <% end %>
  23. </div>
  24. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement