Browse Source

Fixed errors on conference edit page

development
Godwin 8 years ago
parent
commit
116885f6dd
  1. 2
      app/assets/stylesheets/_application.scss
  2. 1
      app/controllers/admin_controller.rb
  3. 5
      config/locales/en.yml

2
app/assets/stylesheets/_application.scss

@ -2982,7 +2982,7 @@ a.logo {
margin-bottom: 2em;
.button {
margin: 0 0.25em;
margin: 0 0.25em 0.5em;
}
}
}

1
app/controllers/admin_controller.rb

@ -11,6 +11,7 @@ class AdminController < ApplicationController
return do_404 unless logged_in? && current_user.administrator?
@this_conference = Conference.find_by!(slug: params[:slug])
@page_title = 'articles.conferences.headings.edit'
@main_title_vars = { vars: { title: @this_conference.title } }
render 'new'
end

5
config/locales/en.yml

@ -932,6 +932,7 @@ en:
headings:
conferences: National and Regional Conferences
Conference_List: Conferences
edit: Edit Conference
types:
future: Upcoming conferences
passed: Passed conferences
@ -1357,6 +1358,10 @@ en:
forms:
labels:
generic:
type: Type
year: Year
is_public: Public
is_featured: Featured
start_date: Start Date
end_date: End Date
search: Search

Loading…
Cancel
Save