Sha256: bd284a773085867cb35e00d93d1550461d155cd7b1bb62ffaad5a069ed59ce3c
Contents?: true
Size: 1.67 KB
Versions: 2
Compression:
Stored size: 1.67 KB
Contents
<%= content_tag_for :tr, feature do %> <%= fields_for "features[#{feature}]", feature do |feature_form| %> <td> <% unless feature.new_record? %> <button type="button" class="btn btn-danger btn-xs delete-feature" data-path="<%= feature_path(feature.id, params: { flaggable_type: params[:flaggable_type] }) %>"> <span class="glyphicon glyphicon-remove"></span> </button> <% end %> </td> <td><%= feature %></td> <%= render partial: "detour/shared/spacer_cells", locals: { tag: "td" } %> <% @flag_form.group_flags_for(feature).each do |group_flag| %> <%= feature_form.fields_for "#{params[:flaggable_type]}_group_flags_attributes[#{group_flag.group_name}]", group_flag do |group_flag_form| %> <%= group_flag_form.hidden_field :id %> <td><%= group_flag_form.check_box :to_keep, data: { toggle: "tooltip", placement: "top", original_title: "#{group_flag.group_name}" } %></td> <% end %> <% end %> <%= feature_form.fields_for "#{params[:flaggable_type]}_percentage_flag_attributes", feature.send("#{params[:flaggable_type]}_percentage_flag") do |percentage_flag_form| %> <td><%= percentage_flag_form.text_field :percentage, class: "form-control input-sm" %></td> <% end %> <td class="flag-in-count"> <%= link_to flag_in_flags_path(feature.name, params[:flaggable_type]) do %> <%= feature.flag_in_count_for(params[:flaggable_type]) %> <% end %> </td> <td class="opt-out-count"> <%= link_to opt_out_flags_path(feature.name, params[:flaggable_type]) do %> <%= feature.opt_out_count_for(params[:flaggable_type]) %> <% end %> </td> <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
detour-0.0.3 | app/views/detour/flags/_feature_form.html.erb |
detour-0.0.2 | app/views/detour/flags/_feature_form.html.erb |