initialize route and form for displaying emails

This commit is contained in:
Rahul 2019-07-18 23:43:59 +05:30
parent c5ad9525ed
commit 3f35d820cb
4 changed files with 19 additions and 0 deletions

View file

@ -22,6 +22,8 @@ module Admin
@settings = @conference.email_settings
end
def custom_email; end
private
def email_params

View file

@ -0,0 +1,13 @@
.row
.col-md-6.col-md-offset-2
.panel.panel-default
.panel-heading
%h3.panel-title
Send an email
.panel-body
%p
%b Select/Enter Emails
= text_field_tag :to, '', class: 'form-control'
%br
%p.text-right
= link_to 'Send Email', '', class: 'btn btn-primary'

View file

@ -126,6 +126,9 @@
= link_to(admin_conference_emails_path(@conference.short_title)) do
%span.fa.fa-envelope
E-Mails
%ul
%li{class: active_nav_li(admin_conference_custom_email_path(@conference.short_title))}
= link_to 'Send E-Mails', admin_conference_custom_email_path(@conference.short_title)
%li{ class: active_nav_li(admin_conference_surveys_path(@conference.short_title)) }
= link_to(admin_conference_surveys_path(@conference.short_title)) do
%span.fa.fa-list-alt

View file

@ -119,6 +119,7 @@ Osem::Application.routes.draw do
resources :sponsors, except: [:show]
resources :lodgings, except: [:show]
resources :emails, only: [:show, :update, :index]
get '/custom_email' => 'emails#custom_email'
resources :physical_tickets, only: [:index]
resources :roles, except: [:new, :create] do
member do