Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update public facing id of project to be the id of the submission #3944

Merged
merged 19 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update assign approver url
  • Loading branch information
theskumar committed Mar 10, 2025
commit 5cc0e2ef69dca082865ab2ca19941b57eaf99459
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ help: ## Show this help menu with a list of available commands and their descrip
.PHONY: serve
serve: .cache/tandem .cache/py-packages .cache/dev-build-fe ## Run Django server, docs preview, and watch frontend changes
@.cache/tandem \
'${UV_RUN}python manage.py runserver_plus --settings=$(DJANGO_SETTINGS_MODULE)' \
'${UV_RUN}python manage.py runserver 0.0.0.0:9001 --settings=$(DJANGO_SETTINGS_MODULE)' \
'npm:watch:*' \
'${UV_RUN}mkdocs serve'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ <h2 class="m-0 text-lg font-semibold">
{% if can_update_paf_approvers %}
{% if user == project.lead %}
<a class="button button--project-action button--project-action--white ms-2"
href="{% url 'apply:projects:update_pafapprovers' object.id %}"
hx-get="{% url 'apply:projects:update_pafapprovers' object.id %}"
href="{% url 'apply:projects:update_pafapprovers' object.submission.id %}"
hx-get="{% url 'apply:projects:update_pafapprovers' object.submission.id %}"
hx-target="#htmx-modal"
>
{% trans "View/Update Approvers" %}
</a>
{% else %}
<a class="button button--project-action button--project-action--white ms-2"
href="{% url 'apply:projects:assign_pafapprovers' object.id %}"
hx-get="{% url 'apply:projects:assign_pafapprovers' object.id %}"
href="{% url 'apply:projects:assign_pafapprovers' object.submission.id %}"
hx-get="{% url 'apply:projects:assign_pafapprovers' object.submission.id %}"
hx-target="#htmx-modal"
>
{% trans "Change approver" %}
Expand All @@ -46,8 +46,8 @@ <h2 class="m-0 text-lg font-semibold">
{% endif %}
{% if can_assign_paf_approvers %}
<a class="button button--project-action"
href="{% url 'apply:projects:assign_pafapprovers' object.id %}"
hx-get="{% url 'apply:projects:assign_pafapprovers' object.id %}"
href="{% url 'apply:projects:assign_pafapprovers' object.submission.id %}"
hx-get="{% url 'apply:projects:assign_pafapprovers' object.submission.id %}"
hx-target="#htmx-modal"
>
{% trans "Assign approver" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ <h5>{% trans "Actions to take" %}</h5>
{% if can_update_paf_approvers %}
{% if user != project.lead %}
<a class="button button--bottom-space button--white button--full-width"
href="{% url 'apply:projects:assign_pafapprovers' object.id %}"
hx-get="{% url 'apply:projects:assign_pafapprovers' object.id %}"
href="{% url 'apply:projects:assign_pafapprovers' pk=object.submission.id %}"
hx-get="{% url 'apply:projects:assign_pafapprovers' pk=object.submission.id %}"
hx-target="#htmx-modal"
>
{% trans "Change approver" %}
Expand All @@ -124,8 +124,8 @@ <h5>{% trans "Actions to take" %}</h5>
{% user_can_assign_approvers_to_project object user request as can_assign_paf_approvers %}
{% if can_assign_paf_approvers %}
<a class="button button--bottom-space button--primary button--full-width"
href="{% url 'apply:projects:assign_pafapprovers' object.id %}"
hx-get="{% url 'apply:projects:assign_pafapprovers' object.id %}"
href="{% url 'apply:projects:assign_pafapprovers' pk=object.submission.id %}"
hx-get="{% url 'apply:projects:assign_pafapprovers' pk=object.submission.id %}"
hx-target="#htmx-modal"
>
{% trans "Assign approver" %}
Expand Down