Fixed translations of dashboard page title

This commit is contained in:
phecho
2015-11-11 14:57:02 +08:00
parent 37011ad1ff
commit be1fccd682
11 changed files with 24 additions and 22 deletions

View File

@@ -69,8 +69,9 @@ class ScheduleController extends Controller
public function showIndex()
{
$schedule = Incident::scheduled()->orderBy('created_at')->get();
return View::make('dashboard.schedule.index')->withSchedule($schedule);
return View::make('dashboard.schedule.index')
->withPageTitle(trans('dashboard.schedule.schedule').' - '.trans('dashboard.dashboard'))
->withSchedule($schedule);
}
/**
@@ -83,6 +84,7 @@ class ScheduleController extends Controller
$incidentTemplates = IncidentTemplate::all();
return View::make('dashboard.schedule.add')
->withPageTitle(trans('dashboard.schedule.add.title').' - '.trans('dashboard.dashboard'))
->withIncidentTemplates($incidentTemplates);
}
@@ -123,6 +125,7 @@ class ScheduleController extends Controller
$incidentTemplates = IncidentTemplate::all();
return View::make('dashboard.schedule.edit')
->withPageTitle(trans('dashboard.schedule.edit.title').' - '.trans('dashboard.dashboard'))
->withIncidentTemplates($incidentTemplates)
->withSchedule($schedule);
}