feature/additional_information (#30)

Fixes #12

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#30
This commit is contained in:
2025-07-19 08:10:40 +12:00
parent 4fff78541b
commit 49e02ed97d
11 changed files with 534 additions and 344 deletions

View File

View File

@ -0,0 +1,12 @@
{% extends "framework.html" %}
{% load static %}
{% block content %}
<div class="alert alert-error" role="alert">
<h4 class="alert-heading">Your account has not been activated yet!</h4>
<p>Your account has not been activated yet. If you have question <a href="mailto:admin@envipath.org">contact
us.</a>
</p>
</div>
{% endblock content %}

View File

@ -0,0 +1,51 @@
{% extends "framework.html" %}
{% block content %}
{% block action_modals %}
{% endblock action_modals %}
<div class="panel-group" id="scenario-detail">
<div class="panel panel-default">
<div class="panel-heading" id="headingPanel" style="font-size:2rem;height: 46px">
{{ scenario.name }}
<div id="actionsButton"
style="float: right;font-weight: normal;font-size: medium;position: relative; top: 50%; transform: translateY(-50%);z-index:100;"
class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-haspopup="true" aria-expanded="false"><span
class="glyphicon glyphicon-wrench"></span> Actions <span class="caret"></span><span
style="padding-right:1em"></span></a>
<ul id="actionsList" class="dropdown-menu">
{% block actions %}
{% include "actions/objects/scenario.html" %}
{% endblock %}
</ul>
</div>
</div>
</div>
</div>
<div class="table-responsive">
<table id="scenario-table" class="table table-bordered table-striped table-hover">
<tbody>
<tr>
<th>Property</th>
<th>Value</th>
<th>Unit</th>
<th>Remove</th>
</tr>
{% for ai in scenario.get_additional_information %}
<tr>
<td>{{ ai.property_name|safe }} </td>
<td> {{ ai.property_data|safe }} </td>
<td> {{ ai.property_unit|safe }} </td>
<td></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock content %}