Commit 658cef1b authored by Yann Caumartin's avatar Yann Caumartin
Browse files

Missing files

parent 264989f3
{% extends "layout/base.html" %}
{% block content %}
<main role="main" class="container">
<div class="row">
<div class="col-12">
{% include "partials/modals/add-camp.html" %}
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#add-camp-modal">
Add new camp
</button>
<hr>
<div class="list-group">
{% for camp in camps %}
<div class="list-group-item list-group-item-action align-items-start list-group-item-flex">
<div class="list-group-item-tools">
<a href="camps/{{ camp._id }}" title="Look camp"><i class="fas fa-eye"></i></a>
<a href="camps/{{ camp._id }}/edit" title="Edit"><i class="fas fa-pencil-alt"></i></a>
</div>
<div class="list-group-item-image">
<svg width="80" height="80" data-jdenticon-value="{{ camp._id }}"></svg>
</div>
<div class="list-group-item-content">
<div class="d-flex w-90 justify-content-between">
<h5 class="mb-1">{{ camp.name }}</h5>
<small>Last login : 18 hours ago</small>
</div>
<p class="mb-1">{{ camp.email }}</p>
<small>group-one, group-two</small>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</main><!-- /.container -->
{% endblock %}
<div class="modal fade" id="add-camp-modal" tabindex="-1" role="dialog" aria-labelledby="add-camp-modal-label" aria-hidden="true">
<div class="modal-dialog" role="document">
<form action="/camps/" method="POST">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Add new camp</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="input-campname">Name</label>
<input type="text" class="form-control" id="input-campname" name="name" aria-describedby="nameHelp" placeholder="Enter name">
</div>
<div class="form-group">
<label for="input-lat">Latitude</label>
<input type="lat" class="form-control" id="input-lat" name="lat" aria-describedby="latHelp" placeholder="Enter lat">
</div>
<div class="form-group">
<label for="input-lon">Longitude</label>
<input type="lon" class="form-control" id="input-lon" name="lon" aria-describedby="lonHelp" placeholder="Enter lon">
</div>
<div class="form-group">
<label for="input-alt">Altitude</label>
<input type="alt" class="form-control" id="input-alt" name="alt" aria-describedby="altHelp" placeholder="Enter alt">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">Add camp</button>
</div>
</div>
</form>
</div>
</div>
Markdown is supported
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