Exemple #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)
Exemple #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
         })
Exemple #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
         })
Exemple #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()
         })
Exemple #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()
         })
Exemple #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()
         })
Exemple #7
0
 def get(self, request):
     return ManageView.manage(request, InteServiceApplication.objects.all(),
                              SearchForm())
Exemple #8
0
 def get(self, request):
     return ManageView.manage(request, MeetingRoomApplication.objects.all(),
                              SearchForm())
Exemple #9
0
 def get(self, request):
     return ManageView.manage(request, ExhibitApplication.objects.all(),
                              SearchForm())
Exemple #10
0
 def get(self, request):
     return ManageView.manage(
         request, StudentActivityCenterApplication.objects.all(),
         SearchForm())