43 lines
1.4 KiB
HTML
43 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Projects · CalMiner{% endblock %}
|
|
|
|
{% block content %}
|
|
<section class="page-header">
|
|
<div>
|
|
<h1>Projects</h1>
|
|
<p class="text-muted">Manage mining projects and explore their scenarios.</p>
|
|
</div>
|
|
<a class="btn btn-primary" href="{{ url_for('projects.create_project_form') }}">New Project</a>
|
|
</section>
|
|
|
|
{% if projects %}
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Location</th>
|
|
<th>Type</th>
|
|
<th>Scenarios</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for project in projects %}
|
|
<tr>
|
|
<td>{{ project.name }}</td>
|
|
<td>{{ project.location or '—' }}</td>
|
|
<td>{{ project.operation_type.value.replace('_', ' ') | title }}</td>
|
|
<td>{{ project.scenario_count }}</td>
|
|
<td class="text-right">
|
|
<a class="btn btn-link" href="{{ url_for('projects.view_project', project_id=project.id) }}">View</a>
|
|
<a class="btn btn-link" href="{{ url_for('projects.edit_project_form', project_id=project.id) }}">Edit</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>No projects yet. <a href="{{ url_for('projects.create_project_form') }}">Create your first project.</a></p>
|
|
{% endif %}
|
|
{% endblock %}
|