views¶
-
class
cmsapp.views.
AboutView
(**kwargs)¶ Information about the Crisis Management System
Template: :template:`templates/about.html`
-
class
cmsapp.views.
CmsBaseView
¶ Authenticates the user
-
class
cmsapp.views.
DashboardView
(**kwargs)¶ Display the general dashboard. Consists of all the active notifications and enable the decision maker to declare a crisis.
Context
reports
An instance of :model:`reports.CallCenterReport`.Context
agencies
An instance of :model:`agencies.Agency`.Template: :template:`templates/dashboard.html`
-
form_class
¶ alias of
DecisionForm
-
second_form_class
¶ alias of
NotificationForm
-
-
class
cmsapp.views.
HomeView
(**kwargs)¶ Displays all the active crisis on the home page.
Context
active_decision
An instance of :model:`active_decision.Decision`.Template: :template:`templates/home.html`
-
class
cmsapp.views.
LoginView
(**kwargs)¶ Logs the user in the system. The user can be either the decision maker, a CMS staff, a call center staff, an agency staff or the django admin.
Template: :template:`templates/login.html`
-
form_class
¶ alias of
LoginForm
-
-
class
cmsapp.views.
LogoutView
(**kwargs)¶ Logs the user out of the system
-
class
cmsapp.views.
NotificationView
(**kwargs)¶ Display an individual :model:`notification.Notification`. Sending notifications to the required parties.
Context
notification
An instance of :model:`notification.Notification`.Context
place
An instance of :model: place.PlacesTemplate: :template:`templates/notification.html`
-
form_class
¶ alias of
NotificationForm
-
-
class
cmsapp.views.
ProcessReportsView
(**kwargs)¶ Display an individual :model:`report.CallCenterReport`. Processing the reports from the call center staff
Context
report
An instance of :model:`report.CallCenterReport`.Context
type_of_crisis
An instance of :model:`type_of_crisis.Crisis`
-
class
cmsapp.views.
ProcessRequestsView
(**kwargs)¶ Display an individual :model:`resourceRequest.ResourceRequest`. Processing the requests made by agencies
Context
agency_list
An instance of :model:`agency_list.Agency`.Context
resourceRequest
An instance of :model:`resourceRequest.ResourceRequest`.Template: :template:`templates/process-requests.html`
-
form_class
¶ alias of
ProcessRequestForm
-
-
class
cmsapp.views.
ReportView
(**kwargs)¶ Display an individual :model:`report.CallCenterReport`. Allowing the call center staffs to make reports
Context
report
An instance of :model:`report.CallCenterReport`.Template: :template:`templates/report.html`
-
form_class
¶ alias of
CallCenterReportForm
-
-
class
cmsapp.views.
ResourceView
(**kwargs)¶ To request resources upon reaching the required position. Used by the agency staffs
Context
resourceRequest
An instance of :model:`resourceRequest.ResourceRequest`.Template: :template:`templates/resource.html`
-
form_class
¶ alias of
ResourceForm
-