Skip to content

Commit

Permalink
Copy main branch commit 973b4c2 to hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
chandra-tacc committed Sep 18, 2024
1 parent f6a119b commit 96a5fc2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@
{% if r %}
<input type="hidden" name="edit-registration-form" value>
<input type="hidden" name="reg_id" value="{{r.reg_id}}">

{% if not renew %}
<label for="reg_status"> Registration Status </label>
<div class="field-wrapper select">
<select name="reg_status" class="choicefield" id="reg_status">
{% for option in status_options %}
{% if not forloop.first %}
<option class="dropdown-text" {% if option == r.reg_status %}selected{% endif %}>{{ option }}</option>
{% endif %}
{% endfor %}
</select>
</div>
{% endif %}

{% endif %}

<div class="form-errors" style="display: none"></div>
Expand Down
2 changes: 2 additions & 0 deletions apcd-cms/src/apps/utils/apcd_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def update_registration(form, reg_id):
operation = """UPDATE registrations
SET
submitting_for_self = %s,
registration_status = %s,
org_type = %s,
business_name = %s,
mail_address = %s,
Expand All @@ -273,6 +274,7 @@ def update_registration(form, reg_id):
RETURNING registration_id"""
values = (
True if form['on-behalf-of'] == 'true' else False,
form['reg_status'],
form['type'],
_clean_value(form['business-name']),
_clean_value(form['mailing-address']),
Expand Down

0 comments on commit 96a5fc2

Please sign in to comment.