<%= form_for(@auth_work_communication, as: "communication", url: @auth_work_communication.new_record? ? communications_path : communication_path(:id => @auth_work_communication.id.to_s), method: @auth_work_communication.new_record? ? :post : :put) do |f| %>
<%= f.text_field :name %> <%= f.label :name %> <%= f.text_field :description %> <%= f.label :description %>
E-Mail Options
<%= f.text_field :email_template_path %> <%= f.label :email_template_path %>
Repeat Options
<%= f.select :repeat,@auth_work_communication.repeat_options,{include_blank: true} %> <%= f.number_field :repeat_times %> <%= f.label :repeat_times %> <%= f.text_field :method_to_determine_communication_timing %> <%= f.label :method_to_determine_communication_timing %>
<%= f.text_field :method_to_determine_recipients %> <%= f.label :method_to_determine_recipients %> <% if @auth_work_communication.cycle_id %> <%= f.hidden_field :cycle_id, value: @auth_work_communication.cycle_id.to_s %> <% end %> <% if @auth_work_communication.instruction_id %> <%= f.hidden_field :instruction_id, value: @auth_work_communication.instruction_id.to_s %> <% end %> <% if @auth_work_communication.product_id %> <%= f.hidden_field :product_id, value: @auth_work_communication.product_id.to_s %> <% end %> <% if @auth_work_communication.cart_item_id %> <%= f.hidden_field :cart_item_id, value: @auth_work_communication.cart_item_id.to_s %> <% end %>
<%= f.submit %>
<% end %>