Mercurial > farol > farol
comparison farol/templates/document/view.j2 @ 132:812e613cbbb4
Add possibility to delete the current document.
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Fri, 24 Oct 2014 12:59:35 +0200 |
parents | 09915cbdf549 |
children |
comparison
equal
deleted
inserted
replaced
131:75c053bf2c3a | 132:812e613cbbb4 |
---|---|
167 </ul> | 167 </ul> |
168 <div class="pull-right">{{ add_button(url_for('vulnerability.add')) }}</div> | 168 <div class="pull-right">{{ add_button(url_for('vulnerability.add')) }}</div> |
169 {% endcall %} | 169 {% endcall %} |
170 </div> | 170 </div> |
171 </div> | 171 </div> |
172 <div class="pull-right"><a href="#delete_modal" data-toggle="modal" class="btn btn-danger btn-xs" role="btn">delete</a></div> | |
173 {% call modal('delete_modal', 'Delete document') %} | |
174 <p>This will delete the document <strong>{{ current_id }}</strong>.</p> | |
175 <p>Are you sure ?</p> | |
176 </div> | |
177 <div class="modal-footer"> | |
178 <button type="button" class="btn btn-link" data-dismiss="modal">Cancel</button> | |
179 {{ POST_button(url_for('.delete'), text="Delete " + cvrf.getDocId(), style="btn-danger") }} | |
180 {% endcall %} | |
172 {% endblock %} | 181 {% endblock %} |