Sha256: a68694cca570edeb86b227b152c406a378f0ee5bf6996e90d32e955db539a4b8
Contents?: true
Size: 1.53 KB
Versions: 89
Compression:
Stored size: 1.53 KB
Contents
- url = campaign.new_record? ? email_campaigns_path : email_campaign_path(campaign) .email-campaigns--form = form_for campaign, as: :campaign, url: url do |f| .field = f.label :slug = f.text_field :slug -# .field -# = f.label :send_at -# = f.text_field :send_at .field.field-template = f.label "Template" = f.select :email_template_id, options_for_select(@email_templates_list, selected: params[:email_template_id] || campaign.email_template_id ), {}, { class: 'select2' } - if campaign.email_template_id = link_to 'view', email_template_path( campaign.email_template_id ), target: :_blank, class: [ 'action-view' ] = link_to '~', edit_email_template_path( campaign.email_template_id ), target: :_blank, class: [ 'action-view' ] layout: #{campaign.tmpl.layout} .field = f.label "From" = f.select :from_email, options_for_select(WcoEmail::EmailTemplate.from_emails_list, selected: campaign.from_email), {}, class: 'select2' .actions = f.submit 'Submit' -# = f.select :email_template_id, options_for_select(@email_templates_list, selected: params[:email_template_id] || campaign.email_template_id ), {}, { class: 'select2' } -# - if campaign.email_template_id -# = link_to 'view', email_template_path( campaign.email_template_id ), target: :_blank, class: [ 'action-view' ] -# = link_to '~', edit_email_template_path( campaign.email_template_id ), target: :_blank, class: [ 'action-view' ] -# layout: #{campaign.tmpl.layout}
Version data entries
89 entries across 89 versions & 1 rubygems