Commit b725f573660842937c9ef10bfaeeae92a99a5938

Authored by Jailson Dias
1 parent e2b8fc70

Alterando o modal de deletar links

Showing 1 changed file with 20 additions and 19 deletions   Show diff stats
links/templates/links/delete.html
1   -{% load i18n %}
  1 +{% load static i18n permission_tags %}
2 2  
  3 +<!-- Modal (remember to change the ids!!!) -->
3 4 <div class="modal fade" id="topic" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
4   - <div class="modal-dialog" role="document">
5   - <div class="modal-content">
6   - <div class="modal-body">
7   - <form id="delete_form" action="{% url 'links:delete' link.slug %}" method="post">
8   - {% csrf_token %}
9   - <h4>{% trans 'Are you sure you want delete the Website link' %}: {{ link.name }}?</h4>
10   - </form>
11   - </div>
12   - <div class="modal-footer">
13   - <div class="pull-right">
14   - <button type="button" class="btn btn-default btn-raised" data-dismiss="modal">{% trans "Close" %}</button>
15   - </div>
16   - <div class="pull-left">
17   - <button type="submit" form="delete_form" class="btn btn-success btn-raised">{% trans "Delete" %}</button>
18   - </div>
19   - </div>
20   - </div>
  5 + <div class="modal-dialog" role="document">
  6 + <div class="modal-content">
  7 + <!-- Modal Body -->
  8 + <div class="modal-body">
  9 + <!-- Put ONLY your content here!!! -->
  10 + <form id="delete_form" action="{% url 'links:delete' link.slug %}" method="post">
  11 + {% csrf_token %}
  12 + <h4>{% trans 'Are you sure you want delete the Website link' %}: {{ link.name }}?</h4>
  13 + </form>
  14 + </div>
  15 + <!-- Modal Footer -->
  16 + <div id="delete-category-footer"class="modal-footer">
  17 + <!-- Don't remove that!!! -->
  18 + <button type="button" class="btn btn-default btn-raised" data-dismiss="modal">{% trans "Close" %}</button>
  19 + <button type="submit" id="button" form="delete_form" class="btn btn-success btn-raised erase-button">{% trans "Delete" %}</button>
  20 + </div>
21 21 </div>
22   -</div>
23 22 \ No newline at end of file
  23 + </div>
  24 +</div>
... ...