Sha256: b8a06a76bdb0b65ac64f187325d537e849884916647f35edc558333cd5adf0a6

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

<% new_or_existing = customer_segment.new_record? ? 'new' : 'existing' %>
<% prefix = "customer[#{new_or_existing}_customer_segment_attributes][]" %>
<% fields_for prefix, customer_segment do |customer_segment_form| %>
<p>
  <%= 1 %>
  <%= customer_segment_form.collection_select :segment_id, @segments, :id, :name %>
  <%= link_to_function t("remove"), "$(this).up('.customer_segment').remove()" %>
</p>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guara-0.0.3 app/views/customers/_customer_segment.html.erb
guara-0.0.1.rc app/views/customers/_customer_segment.html.erb