diff --git a/ippisite/ippidb/templates/BibliographyForm.html b/ippisite/ippidb/templates/BibliographyForm.html index 55d086157f909ebb1ecfb4880f695b71809874f5..dd0877ef142133cf4b71ba942926c7a5c271b0e3 100644 --- a/ippisite/ippidb/templates/BibliographyForm.html +++ b/ippisite/ippidb/templates/BibliographyForm.html @@ -14,8 +14,8 @@ </nav> <div id="Form"> <div class="step_desc"> - <p>Based on the ID you have provided, we have iden2fied the following informa2on concerning your bibliographic source. -Please check that the information below is correct (Title, authors etc. ) and answer the few questions about the content of your bibliographic source.</p> + <p>Based on the ID you have provided, we have identified the following information concerning your bibliographic source. +Please check that the information below is correct (Title, Authors etc. ) and answer the few questions about the content of your bibliographic source.</p> </div> <form action="" method="post"> {% csrf_token %} diff --git a/ippisite/ippidb/views.py b/ippisite/ippidb/views.py index b1c7b5c5e671a996f3808fd09856a9ef43a28e1f..b50562edeba55831168520f754fd328aed411113 100644 --- a/ippisite/ippidb/views.py +++ b/ippisite/ippidb/views.py @@ -19,25 +19,6 @@ def tutorials(request): def adminSession(request): return render(request, 'admin-session.html') -def add(request): - # if this is a POST request we need to process the form data - if request.method == 'POST': - # create a form instance and populate it with data from the request: - form = IdForm(request.POST) - # check whether it's valid: - if form.is_valid(): - # process the data in form.cleaned_data as required - # ... - # redirect to a new URL: - return HttpResponseRedirect('/admin-session/add') - - # if a GET (or any other method) we'll create a blank form - else: - form = IdForm() - - return render(request, 'add.html', {'ID': form}) - - FORMS = [("IdForm", ippidb.forms.IdForm), ("BibliographyForm", ippidb.forms.BibliographyForm), ("PDBForm", ippidb.forms.PDBForm), @@ -63,21 +44,3 @@ class IppiWizard(SessionWizardView): 'form_data': [form.cleaned_data for form in form_list], }) -# def add(request): -# # if this is a POST request we need to process the form data -# if request.method == 'POST': -# # create a form instance and populate it with data from the request: -# form = BibliographyForm(request.POST) -# # check whether it's valid: -# if form.is_valid(): -# # process the data in form.cleaned_data as required -# # ... -# # redirect to a new URL: -# return HttpResponseRedirect('/admin-session/add') - -# # if a GET (or any other method) we'll create a blank form -# else: -# form = BibliographyForm() - -# return render(request, 'add.html', {'Biblio': form}) -