Skip to content
Snippets Groups Projects
Commit ccdb2917 authored by Rachel TORCHET's avatar Rachel TORCHET
Browse files

tiny changes in form text

Former-commit-id: f4447abf5edf53187e6dcc7a41fc4c04f55cbfd8
parent 417eb333
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
</nav> </nav>
<div id="Form"> <div id="Form">
<div class="step_desc"> <div class="step_desc">
<p>Based on the ID you have provided, we have iden2fied the following informa2on concerning your bibliographic source. <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> 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> </div>
<form action="" method="post"> <form action="" method="post">
{% csrf_token %} {% csrf_token %}
......
...@@ -19,25 +19,6 @@ def tutorials(request): ...@@ -19,25 +19,6 @@ def tutorials(request):
def adminSession(request): def adminSession(request):
return render(request, 'admin-session.html') 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), FORMS = [("IdForm", ippidb.forms.IdForm),
("BibliographyForm", ippidb.forms.BibliographyForm), ("BibliographyForm", ippidb.forms.BibliographyForm),
("PDBForm", ippidb.forms.PDBForm), ("PDBForm", ippidb.forms.PDBForm),
...@@ -63,21 +44,3 @@ class IppiWizard(SessionWizardView): ...@@ -63,21 +44,3 @@ class IppiWizard(SessionWizardView):
'form_data': [form.cleaned_data for form in form_list], '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})
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment