Skip to content

Commit

Permalink
Merge pull request mbari-org#244 from MBARIMike/main
Browse files Browse the repository at this point in the history
Add new fields to the Mission details page
  • Loading branch information
MBARIMike authored May 30, 2024
2 parents b2c6c1d + 06d2e0f commit d359553
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
5 changes: 1 addition & 4 deletions smdb/smdb/static/css/project.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ div.row {
margin-left: 2rem;
margin-right: 1rem;
}
div.row
div.col {
text-align: center;
}

#comp_detail {
margin-left: 2rem;
margin-right: 1rem;
Expand Down
24 changes: 23 additions & 1 deletion smdb/smdb/templates/smdb/mission_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,29 @@ <h2>Mission {{ mission.name }}</h2>
</div>
<div>
<span class="font-weight-bold">Track length:</span>
{{ mission.track_length }} km
{{ mission.track_length|default_if_none:"" }} km
</div>
<div>
<span class="font-weight-bold">Route file:</span>
{{ mission.route_file|default_if_none:"" }}
</div>
<div>
<span class="font-weight-bold">Region name:</span>
{{ mission.region_name|default_if_none:"" }}
</div>
<div>
<span class="font-weight-bold">Quality categories:</span>
{% for qc in mission.quality_categories.all %}
{{ qc.name }},
{% endfor %}
</div>
<div>
<span class="font-weight-bold">Patch test:</span>
{{ mission.patch_test|default_if_none:"" }}
</div>
<div>
<span class="font-weight-bold">Repeat survey:</span>
{{ mission.repeat_survey|default_if_none:"" }}
</div>
</div>

Expand Down

0 comments on commit d359553

Please sign in to comment.