Commit e11dc27f authored by Yann Caumartin's avatar Yann Caumartin
Browse files

Adds view for mission

parent 658cef1b
{% extends "layout/base.html" %}
{% block content %}
<main role="main" class="container">
<div class="row">
<div class="col-12">
<h2>View of mission #{{ mission._id }}</h2>
<hr>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#add-participant-modal">
Add new participant
</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#add-checklist-modal">
Add new checklist
</button>
<div class="list-group">
<div class="list-group-item list-group-item-action align-items-start list-group-item-flex">
<div class="list-group-item-tools">
<a href="#" title="Lock account"><i class="fas fa-lock"></i></a>
<a href="/missions/{{ mission._id }}/edit" title="Edit"><i class="fas fa-pencil-alt"></i></a>
<a href="/missions/{{ mission._id }}/delete" onclick="return confirm('Are you sure to delete this mission?')" title="Delete"><i class="far fa-trash-alt"></i></a>
</div>
<div class="list-group-item-image">
<svg width="80" height="80" data-jdenticon-value="{{ mission._id }}"></svg>
</div>
<div class="list-group-item-content">
<div class="d-flex w-90 justify-content-between">
<h5 class="mb-1">{{ mission.title }}</h5>
</div>
<div class="d-flex w-90 justify-content-between">
<h5 class="mb-1">{{ mission.description }}</h5>
</div>
<div class="d-flex w-90 justify-content-between">
<h5 class="mb-1">{{ mission.priority }}</h5>
</div>
<p class="mb-1">{{ mission.start_date }}</p>
<p class="mb-1">{{ mission.end_date }}</p>
</div>
</div>
<div class="list-group-item list-group-item-action align-items-start list-group-item-flex">
{% for checklist in checklists %}
<div class="list-group-item-tools">
<a href="/checklists/checklist._id" title="Look checklist"><i class="fas fa-eye"></i></a>
<a href="/checklists/checklist._id/delete" title="Delete checklist"><i class="fas fa-eye"></i></a>
</div>
{% endfor %}
{% for participant in participants %}
<div class="list-group-item-tools">
<a href="/users/participant._id" title="Look participant"><i class="fas fa-eye"></i></a>
<a href="/users/participant._id/delete" title="Delete participant"><i class="fas fa-eye"></i></a>
</div>
{% endfor %}
<div class="list-group-item-content">
<div class="d-flex w-90 justify-content-between">
<h5 class="mb-1">{{ resource.type }}</h5>
</div>
<p class="mb-1">{{ resource.quantity }} {{ resource.unit }}</p>
</div>
</div>
</div>
</div>
</div>
</main><!-- /.container -->
{% endblock %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment