Exemple #1
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['pk'] = self.kwargs['pk']
     context['action'] = reverse('item_editar', kwargs={'pk':self.kwargs['pk']})
     if self.ocurrio_error :
         context['nodefault'] = '__panel.html'
     return context
Exemple #2
0
    def get_context_data(self, **kwargs):

        context = UpdateView.get_context_data(self, **kwargs)
        context['title'] = '%s <small>(%s)</small>' % (
            self.object.get_full_name(),
            self.object.email)
        return context
Exemple #3
0
    def get_context_data(self, **kwargs):

        context = UpdateView.get_context_data(self, **kwargs)
        enroll = Enroll.objects.filter(student=self.object).order_by('enroll_date')
        context['enroll'] = enroll.filter(enroll_activate=True, enroll_finished=True)
        context['pre_enroll'] = enroll.filter(enroll_activate=True, enroll_finished=False)
        return context
Exemple #4
0
    def get_context_data(self, **kwargs):

        context = UpdateView.get_context_data(self, **kwargs)
        context['title'] = '%s <small>(%s)</small>' % (
            self.object.get_full_name(),
            self.object.email)
        return context
Exemple #5
0
 def get_context_data(self):
     context = UpdateView.get_context_data(self)
     if self.request.POST:
         context["line"] = ProposalInlineFormSet(
             self.request.POST, instance=self.object)
     else:
         context["line"] = ProposalInlineFormSet(instance=self.object)
     return context
Exemple #6
0
    def get_context_data(self, **kwargs):

        context = UpdateView.get_context_data(self, **kwargs)
        enroll = Enroll.objects.filter(
            student=self.object).order_by('enroll_date')
        context['enroll'] = enroll.filter(enroll_activate=True,
                                          enroll_finished=True)
        context['pre_enroll'] = enroll.filter(enroll_activate=True,
                                              enroll_finished=False)
        return context
Exemple #7
0
    def get_context_data(self, **kwargs):
        
        context = UpdateView.get_context_data(self, **kwargs)
        #ejecuta una serie de validaciones para permitir establecer a eliminado
        #o ocultar el formulario
        item_eliminar = get_object_or_404(Item, pk=self.kwargs['pk'])
        if not self.eliminacion_valida(item_eliminar):
            context['denegar_eliminacion'] = True

        context['action'] = reverse('item_eliminar' , kwargs={'pk':self.kwargs['pk']} )
        return context
Exemple #8
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['preconditions_formset'] = TestCasePreConditionFormSet(
         self.request.POST or None, instance=self.object)
     context['postconditions_formset'] = TestCasePostConditionFormSet(
         self.request.POST or None, instance=self.object)
     context['steps_formset'] = TestCaseStepFormSet(self.request.POST
                                                    or None,
                                                    instance=self.object)
     context['revision_form'] = TestCaseRevisionForm(self.request.POST
                                                     or None)
     return context
Exemple #9
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['client'] = self.get_object().client
     return context
Exemple #10
0
 def get_context_data(self,**kwargs):
     context=UpdateView.get_context_data(self,**kwargs)
     context['profil_form'] = ProfilFormSet(instance=self.get_object())
     return context
Exemple #11
0
 def get_context_data(self, **kwargs):
     context = djUpdateView.get_context_data(self, **kwargs)
     context['laboratory'] = self.lab
     return context
Exemple #12
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context["addresses_form"] = ClientAdressesForm(
         instance=self.get_object())
     return context
Exemple #13
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['action'] = reverse('rol_permisos_edita',kwargs={'pk':self.kwargs['pk']})
     if self.templ_base_error:
         context['nodefault'] = self.templ_base_error
     return context
Exemple #14
0
    def get_context_data(self, **kwargs):

        ctxt = UpdateView.get_context_data(self, **kwargs)
        ctxt['subnav_template_name'] = 'sigad/subnav_documento.yaml'
        return ctxt
Exemple #15
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['action'] = reverse('modificar_usuario',kwargs={'pk':self.kwargs['pk']})
     if self.templ_base_error:
         context['nodefault'] = self.templ_base_error
     return context
Exemple #16
0
 def get_context_data(self, **kwargs):
     kwargs = UpdateView.get_context_data(self, **kwargs)
     kwargs = InlineFormMixin.get_context_data(self, **kwargs)
     return kwargs
Exemple #17
0
    def get_context_data(self, **kwargs):

        ctxt = UpdateView.get_context_data(self, **kwargs)
        ctxt['subnav_template_name'] = 'sigad/subnav_documento.yaml'
        return ctxt
Exemple #18
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['deal'] = self.deal
     return context
Exemple #19
0
 def get_context_data(self, **kwargs):
     kwargs = UpdateView.get_context_data(self, **kwargs)
     kwargs = InlineFormMixin.get_context_data(self, **kwargs)
     return kwargs
Exemple #20
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context["devisligne_form"] = DevisLigneForm(instance=self.get_object())
     return context
Exemple #21
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context["profile_formset"] = ProfileInlineFormSet(
         instance=self.get_object())
     return context
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['action'] = reverse('solicitud_edita', \
                                 kwargs={'pk':self.kwargs['pk']})
     return context
 def get_context_data(self, **kwargs):
     context = djUpdateView.get_context_data(self, **kwargs)
     context['laboratory'] = self.lab
     return context
Exemple #24
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['idgrupo'] = self.kwargs['pk']
     return context
Exemple #25
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['deal'] = VirtualDeal().by_user(self.user1, self.user2, level=0)
     return context
Exemple #26
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['action'] = reverse('iniciar_proyecto' , kwargs={'pk':self.kwargs['pk']} )
     return context
Exemple #27
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context["event"] = Event.objects.get(id=1)
     context["volunteers"] = Volunteer.objects.all()
     return context