Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="field">
- <div class="col-sm-4 filter_select attribute_select">
- <%= f.attribute_fields do |a| %>
- <%= a.attribute_select associations: [:threats] %>
- <% end %>
- </div>
- <div class="col-sm-3 filter_select">
- <%= f.predicate_select compounds: false, only: [:eq,:lt,:lteq,:gt,:gteq] %>
- </div>
- <div class="col-sm-4">
- <%= f.value_fields do |v| %>
- <!-- ------------------------------------ -->
- <!-- I want to compare with properties/attributes from the SRA model instead of inputting a value in a text field.
- Hence, choosing from a dropdown as with the attribute_fields -->
- <!-- ------------------------------------ -->
- <%= v.text_field :value, class: "form-control" %>
- <% end %>
- </div>
- <div class="col-sm-1">
- <%= link_to('#', class:"remove_fields") do %>
- <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
- <% end %>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement