Format CCEID page
parent
1b6b0835d6
commit
5618ad45fb
|
@ -111,14 +111,15 @@ def extract_last(pg):
|
|||
def cceid(cceid):
|
||||
try:
|
||||
results = registration(cceid)
|
||||
return render_template('search/cceid.html', results=results)
|
||||
return render_template('search/cceid.html', result=results["data"])
|
||||
except HTTPError:
|
||||
try:
|
||||
results = renewal(cceid)
|
||||
return render_template('search/cceid.html', results=results)
|
||||
return render_template('search/cceid.html',
|
||||
result=results["data"][0])
|
||||
except HTTPError:
|
||||
pass
|
||||
|
||||
return render_template('search/cceid.html', results=None, error=1)
|
||||
return render_template('search/cceid.html', result=None, error=1)
|
||||
|
||||
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{{ results }}
|
||||
{% if result["type"] %}
|
||||
{% include "search/render_renewal.html" %}
|
||||
{% else %}
|
||||
{% include "search/render_registration.html" %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue