Added admin edit titles
This commit is contained in:
parent
ec06059ce5
commit
df063e20e0
@ -4,7 +4,7 @@ class AdminController < ApplicationController
|
|||||||
def new
|
def new
|
||||||
return do_404 unless logged_in? && current_user.administrator?
|
return do_404 unless logged_in? && current_user.administrator?
|
||||||
@this_conference = Conference.new
|
@this_conference = Conference.new
|
||||||
@page_title = 'articles.conferences.headings.new'
|
@main_title = @page_title = 'articles.conferences.headings.new'
|
||||||
end
|
end
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
= row do
|
= row do
|
||||||
= form_tag save_conference_path, class: 'composition' do
|
= form_tag save_conference_path, class: 'composition' do
|
||||||
= columns(medium: 12) do
|
= columns(medium: 12) do
|
||||||
%h2=_@page_title, :t
|
%h2=_"articles.conferences.headings.#{@this_conference.id.present? ? 'edit' : 'new'}_conference", :t, vars: { title: @this_conference.title }
|
||||||
= hidden_field_tag :id, @this_conference.id if @this_conference.id.present?
|
= hidden_field_tag :id, @this_conference.id if @this_conference.id.present?
|
||||||
|
|
||||||
= columns(medium: 12) do
|
= columns(medium: 12) do
|
||||||
|
@ -933,6 +933,9 @@ en:
|
|||||||
conferences: National and Regional Conferences
|
conferences: National and Regional Conferences
|
||||||
Conference_List: Conferences
|
Conference_List: Conferences
|
||||||
edit: Edit Conference
|
edit: Edit Conference
|
||||||
|
new: New Conference
|
||||||
|
edit_conference: Edit %{title}
|
||||||
|
new_conference: Create a new conference
|
||||||
types:
|
types:
|
||||||
future: Upcoming conferences
|
future: Upcoming conferences
|
||||||
passed: Passed conferences
|
passed: Passed conferences
|
||||||
|
Loading…
x
Reference in New Issue
Block a user