<p>
  <%= condition.class.human_attribute_name(:description) %>
</p>

<div class="form-group">
  <%= label_tag "#{param_prefix}[preferred_operator]", condition.class.human_attribute_name(:preferred_operator) %>
  <%= select_tag "#{param_prefix}[preferred_operator]", options_for_select(condition.class.operator_options, condition.preferred_operator), {class: 'custom-select select_item_total fullwidth'} %>
</div>

<div class="form-group">
  <%= fields_for param_prefix, condition do |f| %>
    <%= f.label :preferred_amount %>
    <%= render "solidus_promotions/admin/shared/number_with_currency", f: f, amount_attr: :preferred_amount, currency_attr: :preferred_currency %>
  <% end %>
</div>
