Ejemplo n.º 1
0
 def post(self, request):
     form = SearchForm(request.POST)
     if not form.is_valid():
         listing = \
             InteServiceApplication.objects.all().order_by('-pk')
     else:
         listing = search_application(InteServiceApplication, form)
     return ManageView.manage(request, listing, form)
Ejemplo n.º 2
0
 def post(self, request):
     form = SearchForm(request.POST)
     if not form.is_valid():
         listing = InteServiceApplication.objects.all().order_by('-pk')
     else:
         listing = search_application(InteServiceApplication,
                                      form).order_by('-pk')
     return render(
         request, 'list.html', {
             'page': generate_page(listing, request),
             'title': u'西南综合服务楼场地申请',
             'form': form
         })
Ejemplo n.º 3
0
 def post(self, request):
     form = SearchForm(request.POST)
     if not form.is_valid():
         listing = \
             StudentActivityCenterApplication.objects.all().order_by('-pk')
     else:
         listing = search_application(StudentActivityCenterApplication,
                                      form).order_by('-pk')
     return render(
         request, 'list.html', {
             'page': generate_page(listing, request),
             'title': u'学生活动中心场地申请',
             'form': form
         })
Ejemplo n.º 4
0
 def get(self, request):
     listing = InteServiceApplication.objects.all().order_by('-pk')
     return render(
         request, 'list.html', {
             'page': generate_page(listing, request),
             'title': u'西南综合服务楼场地申请',
             'form': SearchForm()
         })
Ejemplo n.º 5
0
 def get(self, request):
     listing = MeetingRoomApplication.objects.all().order_by('-pk')
     return render(
         request, 'list.html', {
             'page': generate_page(listing, request),
             'title': u'会议室使用申请',
             'form': SearchForm()
         })
Ejemplo n.º 6
0
 def get(self, request):
     listing = StudentActivityCenterApplication.objects.all().order_by(
         '-pk')
     return render(
         request, 'list.html', {
             'page': generate_page(listing, request),
             'title': u'学生活动中心场地申请',
             'form': SearchForm()
         })
Ejemplo n.º 7
0
 def get(self, request):
     return ManageView.manage(request, InteServiceApplication.objects.all(),
                              SearchForm())
Ejemplo n.º 8
0
 def get(self, request):
     return ManageView.manage(request, MeetingRoomApplication.objects.all(),
                              SearchForm())
Ejemplo n.º 9
0
 def get(self, request):
     return ManageView.manage(request, ExhibitApplication.objects.all(),
                              SearchForm())
Ejemplo n.º 10
0
 def get(self, request):
     return ManageView.manage(
         request, StudentActivityCenterApplication.objects.all(),
         SearchForm())