diff --git a/asset_dashboard/static/css/app.css b/asset_dashboard/static/css/app.css index e740a373..a89ec5e6 100644 --- a/asset_dashboard/static/css/app.css +++ b/asset_dashboard/static/css/app.css @@ -21,7 +21,7 @@ input[type="checkbox"] { } .map-container { - height: 80vh; + height: 85vh; } .map-thumbnail { diff --git a/asset_dashboard/static/js/components/maps/ListAssetsMap.js b/asset_dashboard/static/js/components/maps/ListAssetsMap.js index 918945a6..2d9263e0 100644 --- a/asset_dashboard/static/js/components/maps/ListAssetsMap.js +++ b/asset_dashboard/static/js/components/maps/ListAssetsMap.js @@ -19,12 +19,12 @@ function ListAssetsMap(props) { <> { props?.assets && -
+

Phase Assets

- Edit Assets > + Edit Assets >
-
+
@@ -228,7 +228,7 @@ function SelectAssetsMap(props) {
-
+

{props.phase_name}

@@ -245,7 +245,7 @@ function SelectAssetsMap(props) {
-
+
+

Phase Assets

{ajaxMessage ? - {% 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 }} + + -{% if phase %} -
- - - -
- -
-

- Loading map...

-
+ + {% endblock %} {% block extra_js %} diff --git a/asset_dashboard/templates/asset_dashboard/partials/project_base.html b/asset_dashboard/templates/asset_dashboard/partials/project_base.html index 7de61bd7..79d7b749 100644 --- a/asset_dashboard/templates/asset_dashboard/partials/project_base.html +++ b/asset_dashboard/templates/asset_dashboard/partials/project_base.html @@ -4,18 +4,18 @@ {% block body %} -
+

{{ project.name }}

- diff --git a/asset_dashboard/templates/asset_dashboard/project_phases_list.html b/asset_dashboard/templates/asset_dashboard/project_phases_list.html index de369206..7e2a393d 100644 --- a/asset_dashboard/templates/asset_dashboard/project_phases_list.html +++ b/asset_dashboard/templates/asset_dashboard/project_phases_list.html @@ -3,7 +3,7 @@ {% block project %}
@@ -22,7 +22,7 @@ - + {% endfor %}
{{ phase.status }} {{ phase.phasefinances__budget }} {{ phase.estimated_bid_quarter }}EditEdit