Ejemplo n.º 1
0
 def get_context_data(self, **kwargs):
     context = super(UploadView, self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'Upload'])
     context['title'] = 'UPLOAD'
     links = [(reverse('site_home'), 'Home'), (None, 'Upload')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     return context
Ejemplo n.º 2
0
 def get_context_data(self, **kwargs):
     context = super(CodeUpdateView, self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'Code update'])
     context['title'] = 'CODE UPDATE'
     links = [(reverse('site_home'), 'Home'), (None, 'Code update')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     return context
Ejemplo n.º 3
0
 def get_context_data(self, **kwargs):
     context = super(DataAmendmentView, self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'Data amendment'])
     context['title'] = 'DATA AMENDMENT'
     links = [(reverse('site_home'), 'Home'), (None, 'Data amendment')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     return context
Ejemplo n.º 4
0
 def get_context_data(self, **kwargs):
     context = super(ClearGLPivotView, self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'Clear GL Pivot entries'])
     context['title'] = 'CLEAR GL PIVOT ENTRIES'
     links = [(reverse('site_home'), 'Home'),
              (None, 'Clear GL Pivot entries')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     return context
Ejemplo n.º 5
0
 def get_context_data(self, **kwargs):
     context = super(ServicePriorityDataView,
                     self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'Service Priority data'])
     context['title'] = 'SERVICE PRIORITY DATA'
     links = [(reverse('site_home'), 'Home'),
              (None, 'Service priority data')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     return context
Ejemplo n.º 6
0
 def get_context_data(self, **kwargs):
     context = super(ClearGLPivotView, self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'Clear GL Pivot entries'])
     context['title'] = 'CLEAR GL PIVOT ENTRIES'
     links = [
         (reverse('site_home'), 'Home'),
         (None, 'Clear GL Pivot entries')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     return context
Ejemplo n.º 7
0
 def get_context_data(self, **kwargs):
     context = super(DataAmendmentView, self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'Data amendment'])
     context['title'] = 'DATA AMENDMENT'
     links = [
         (reverse('site_home'), 'Home'),
         (None, 'Data amendment')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     return context
Ejemplo n.º 8
0
 def get_context_data(self, **kwargs):
     context = super(CodeUpdateView, self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'Code update'])
     context['title'] = 'CODE UPDATE'
     links = [
         (reverse('site_home'), 'Home'),
         (None, 'Code update')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     return context
Ejemplo n.º 9
0
 def get_context_data(self, **kwargs):
     context = super(ReloadView, self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'Reload'])
     context['title'] = 'RELOAD'
     links = [
         (reverse('site_home'), 'Home'),
         (None, 'Reload')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     return context
Ejemplo n.º 10
0
 def get_context_data(self, **kwargs):
     context = super(SiteHomeView, self).get_context_data(**kwargs)
     if self.request.user.is_superuser:
         context['superuser'] = True
     context['page_title'] = T
     context['title'] = 'HOME'
     links = [(None, 'Home')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     context['managers'] = settings.MANAGERS
     return context
Ejemplo n.º 11
0
 def get_context_data(self, **kwargs):
     context = super(SiteHomeView, self).get_context_data(**kwargs)
     if self.request.user.is_superuser:
         context['superuser'] = True
     context['page_title'] = T
     context['title'] = 'HOME'
     links = [(None, 'Home')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     context['managers'] = settings.MANAGERS
     return context
Ejemplo n.º 12
0
 def get_context_data(self, **kwargs):
     context = super(FMUploadView, self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'FM Upload'])
     context['download_period'] = get_download_period()
     context['title'] = 'FM Upload'
     links = [(reverse('site_home'), 'Home'), (None, 'FM Output Report')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     context['sfmupload_page'] = True
     if self.request.user.is_superuser:
         context['superuser'] = True
     return context
Ejemplo n.º 13
0
 def get_context_data(self, **kwargs):
     context = super(FMUploadView, self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'FM Upload'])
     context['download_period'] = get_download_period()
     context['title'] = 'FM Upload'
     links = [(reverse('site_home'), 'Home'), (None, 'FM Output Report')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     context['sfmupload_page'] = True
     if self.request.user.is_superuser:
         context['superuser'] = True
     return context
Ejemplo n.º 14
0
 def get_context_data(self, **kwargs):
     context = super(
         ServicePriorityDataView,
         self).get_context_data(
         **kwargs)
     context['page_title'] = ' | '.join([T, 'Service Priority data'])
     context['title'] = 'SERVICE PRIORITY DATA'
     links = [
         (reverse('site_home'), 'Home'),
         (None, 'Service priority data')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     return context
Ejemplo n.º 15
0
 def get_context_data(self, **kwargs):
     context = super(FMOutputsView, self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'FM Outputs'])
     context['download_period'] = get_download_period()
     context['title'] = 'FM Outputs'
     links = [(reverse('site_home'), 'Home'), (None, 'FM Outputs')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     if self.request.user.is_superuser:
         context['superuser'] = True
     # Context variable to allow mapping of MeasurementType fields.
     mt = [(i.pk, i.unit.lower()) for i in MeasurementType.objects.all()]
     context['measurement_types'] = json.dumps(mt)
     return context
Ejemplo n.º 16
0
 def get_context_data(self, **kwargs):
     context = super(FMOutputsView, self).get_context_data(**kwargs)
     context['page_title'] = ' | '.join([T, 'FM Outputs'])
     context['download_period'] = get_download_period()
     context['title'] = 'FM Outputs'
     links = [(reverse('site_home'), 'Home'), (None, 'FM Outputs')]
     context['breadcrumb_trail'] = breadcrumb_trail(links)
     if self.request.user.is_superuser:
         context['superuser'] = True
     # Context variable to allow mapping of MeasurementType fields.
     mt = [(i.pk, i.unit.lower()) for i in MeasurementType.objects.all()]
     context['measurement_types'] = json.dumps(mt)
     return context