Commit e318c7b2 authored by Corentin Mors's avatar Corentin Mors
Browse files

Clean checklist html template

parent c3ad5f39
......@@ -5,7 +5,7 @@
<div>
<!--Bouton Add -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#checklistModal" data-whatever="@mdo">Add a new task</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#add-task-modal" data-whatever="@mdo">Add a new task</button>
<div class="dropdown float-right">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
......@@ -18,35 +18,7 @@
</div>
</div>
<div class="modal fade" id="checklistModal" tabindex="-1" role="dialog" aria-labelledby="checklistModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="checklistModalLabel">New task</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="recipient-name" class="col-form-label">Name of the task</label>
<input type="text" class="form-control" id="task-name">
</div>
<div class="form-group">
<label for="message-text" class="col-form-label">Description:</label>
<textarea class="form-control" id="task-description"></textarea>
</div>
</form>
</div>
<!--Fin bouton Add -->
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Add the new task</button>
</div>
</div>
</div>
</div>
{% include "partials/modals/add-task.html" %}
</div>
<hr>
......@@ -65,105 +37,19 @@
</div>
<div class="col-sm-1 col-md-1"> <!--colonne bouton edit -->
<a href="" data-toggle="modal" data-target="#editModal" data-whatever="@mdo"><i class="fas fa-edit"></i></a>
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="checklistModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="checklistModalLabel">Edit Task</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="recipient-name" class="col-form-label">Task Name</label>
<input type="text" class="form-control" id="recipient-name">
</div>
<div class="form-group">
<label for="message-text" class="col-form-label">Description:</label>
<textarea class="form-control" id="message-text"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Edit mission</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-1 col-md-1"> <!--colonne checkbox -->
<a data-toggle="collapse" href="#description1" role="button" aria-expanded="false" aria-controls="description1"><i class="far fa-caret-square-down"></i></a>
</div>
</div>
<div class="row espace"><!--Ligne expend bouton (affiche le descriptif de la task)-->
<div class="col-sm-12 col-md-12">
<div class="collapse multi-collapse" id="description1">
<div class="card card-body">
Description Task
</div>
</div>
</div>
</div>
</div>
<!--task 2-->
<div class="task">
<div class="row sameHauteur"> <!--Ligne Nom de la task + checkbox -->
{% include "partials/modals/edit-task.html" %}
<div class="col-sm-9 col-md-9">
<p class="taskName">Task name</p>
</div>
<div class="col-sm-1 col-md-1">
<input type="checkbox" name="do" value="">
</div>
<div class="col-sm-1 col-md-1"> <!--colonne bouton edit -->
<a href="" data-toggle="modal" data-target="#editModal" data-whatever="@mdo"><i class="fas fa-edit"></i></a>
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="checklistModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="checklistModalLabel">Edit Task</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="recipient-name" class="col-form-label">Task Name</label>
<input type="text" class="form-control" id="recipient-name">
</div>
<div class="form-group">
<label for="message-text" class="col-form-label">Description:</label>
<textarea class="form-control" id="message-text"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Edit mission</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-1 col-md-1"> <!--colonne checkbox -->
<a data-toggle="collapse" href="#description2" role="button" aria-expanded="false" aria-controls="description2"><i class="far fa-caret-square-down"></i></a>
<a data-toggle="collapse" href="#description1" role="button" aria-expanded="false" aria-controls="description1"><i class="far fa-caret-square-down"></i></a>
</div>
</div>
<div class="row espace"><!--Ligne expend bouton (affiche le descriptif de la task)-->
<div class="col-sm-12 col-md-12">
<div class="collapse multi-collapse" id="description2">
<div class="collapse multi-collapse" id="description1">
<div class="card card-body">
Description Task
</div>
......@@ -174,8 +60,6 @@
</div>
</div>
</section>
</main>
......
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="editTaskModal" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="editTaskModal">Edit Task</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="recipient-name" class="col-form-label">Task Name</label>
<input type="text" class="form-control" id="recipient-name">
</div>
<div class="form-group">
<label for="message-text" class="col-form-label">Description:</label>
<textarea class="form-control" id="message-text"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Edit mission</button>
</div>
</div>
</div>
</div>
\ No newline at end of file
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