|
@@ -44,16 +44,42 @@
|
|
|
<div class="card mt-2 mb-2">
|
|
|
<div class="card-header">
|
|
|
<span style="font-size: larger; font-family: sans-serif; font-weight: bold;">{{staff.name}}</span>
|
|
|
- <span style="float: right;">{{ staff.department }}</span>
|
|
|
+ <span style="float: right;">
|
|
|
+ {{ staff.department }}
|
|
|
+ <span data-toggle="modal" data-target="#delete-staff"><i class="fa fa-trash" aria-hidden="true" style="color: blue; margin-left: 2rem;"></i></span>
|
|
|
+ </span>
|
|
|
</div>
|
|
|
<div class="card-body">
|
|
|
- <span >Name Mentioned: <i class="fa fa-google" aria-hidden="true" style="color: #ff7700; margin-left: 1rem;"></i> {{ staff.name_mentioned_google }}</span>
|
|
|
+ Name Mentioned:<span > <i class="fa fa-google" aria-hidden="true" style="color: #ff7700; margin-left: 1rem;"></i> {{ staff.name_mentioned_google }}</span>
|
|
|
<span > <i class="fa fa-facebook" aria-hidden="true" style="color: blue; margin-left: 2rem;"></i> {{ staff.name_mentioned_facebook }} </span>
|
|
|
<span ><i class="fa fa-yelp" aria-hidden="true" style="color: red; margin-left: 2rem;"></i> {{ staff.name_mentioned_yelp }}</span>
|
|
|
<span style="float: right;">Bonus: ${{ staff.total_units }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <!-- Modal -->
|
|
|
+ <div class="modal fade" id="delete-staff" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
|
|
+ <div class="modal-dialog">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title" id="exampleModalLabel">Are you sure?</h5>
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
+ <span aria-hidden="true">×</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ If you delete this staff then you will lose all information about this staff.
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
|
+
|
|
|
+ <a type="button" href="{% url 'staff-delete' staff.id %}" class="btn btn-danger">Yes, Delete!</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
{% endfor %}
|
|
|
</div>
|
|
|
{% endblock %}
|