diff --git a/asset_dashboard/templates/asset_dashboard/partials/forms/add_edit_phase_form.html b/asset_dashboard/templates/asset_dashboard/partials/forms/add_edit_phase_form.html index c061f964..ac321cbc 100644 --- a/asset_dashboard/templates/asset_dashboard/partials/forms/add_edit_phase_form.html +++ b/asset_dashboard/templates/asset_dashboard/partials/forms/add_edit_phase_form.html @@ -1,62 +1,151 @@ {% extends "asset_dashboard/partials/project_base.html" %} {% load static %} +{% block extra_css %} + +{% endblock %} + {% block project %} -
- {% csrf_token %} +
+
+ + + {% csrf_token %} + + {{ form.errors }} + {{ finances_form.errors }} + +
+

{% if phase %}Update Phase{% else %}Create Phase{% endif %}

+ +
+ + + +
+
+ Phase + {{ form.phase_type }} +
+
+ Status + {{ form.status }} +
+
+ +
+
+ Total Budget +
+ {{ finances_form.budget }} +
+
+
+ Estimated Bid Quarter + {{ form.estimated_bid_quarter }} +
+
+ + +
+
+

Phase Funding

+ {% if phase_funding_year %} + + + + + + + + + + {% for funding_year in object_list %} + + + + + {% endfor %} + +
YearFunds
{{ funding_year.year }}{{ funding_year.funds }}
+ {% else %} +

+ {% if phase %} + This phase has no funding. Add funding > + {% else %} + Create the phase so you can add funding. + {% endif %} +

+ {% endif %} + +
+
- {{ form.errors }} - {{ finances_form.errors }} -
- -
+
+
+ {% if not props %} +

Phase Assets

+
+

+ {% if phase and not props %} + This phase has no GIS assets.  Add Assets > + {% elif not phase and not props %} + Create the phase so you can add GIS assets. + {% else %} + Edit Assets > + {% endif %} +

+
+ {% else %} +
+
+
+ Loading... +
+
+
+ {% endif %} + + -
-
- Phase - {{ form.phase_type }} -
-
- Estimated Bid Quarter - {{ form.estimated_bid_quarter }} -
-
- Status - {{ form.status }} -
+ {% if props %} + + {% endif %}
+
-
-
- Total Budget -
- {{ finances_form.budget }} + + + +{% endblock %} +{% block extra_js %} + {{ block.super }} + {% load compress %} + {{ props|json_script:"props" }} + + {% compress js %} + + {% endcompress %} {% endblock %} diff --git a/asset_dashboard/templates/asset_dashboard/partials/forms/add_project_modal_form.html b/asset_dashboard/templates/asset_dashboard/partials/forms/add_project_modal_form.html index c2710d22..e3e53372 100644 --- a/asset_dashboard/templates/asset_dashboard/partials/forms/add_project_modal_form.html +++ b/asset_dashboard/templates/asset_dashboard/partials/forms/add_project_modal_form.html @@ -2,7 +2,7 @@