Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
pxwxnvermx committed Sep 15, 2023
1 parent 4f471dd commit b3d3147
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
13 changes: 0 additions & 13 deletions commcare_connect/templates/bootstrap5/layout/modal.html

This file was deleted.

10 changes: 0 additions & 10 deletions commcare_connect/templates/opportunity/opportunity_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,4 @@ <h1 class="display-5">Edit Opportunity</h1>
{% crispy form %}
</form>
</div>

<script>
function calculateNewOpportunityBudget() {
const numUsers = document.querySelectorAll("input[name='selected_users']:checked").length
const budget = document.getElementById("id_budget_per_user").value
const calculated_budget = numUsers * budget

document.getElementById("calculated_budget_text").innerHTML = `Please confirm to add <b>${calculated_budget}</b> budget to this Opportunity.`
}
</script>
{% endblock content %}

0 comments on commit b3d3147

Please sign in to comment.