Commit 2731d0c1 authored by Zosman's avatar Zosman

FirstDraft

parent 9f7e6f6a
Pipeline #383 passed with stage
in 3 minutes and 43 seconds
...@@ -43,8 +43,10 @@ ...@@ -43,8 +43,10 @@
<strong>Expires:</strong> {{url.expires|default_if_none:"Never"}} <strong>Expires:</strong> {{url.expires|default_if_none:"Never"}}
<br></br> <br></br>
<a class="button btn btn-danger btn-sm fa" href="{{domain}}delete/{{url.short}}"> <a class="button btn btn-danger btn-sm fa" data-target="#deletionModal" data-toggle="modal">
<i class="fa fa-trash-o fa-lg"></i> Delete</a> <i class="fa fa-trash-o fa-lg"></i> Delete</a>
<!-- <a class="button btn btn-danger btn-sm fa" href="{{domain}}delete/{{url.short}}">
<i class="fa fa-trash-o fa-lg"></i> Delete</a> -->
<a tabindex="0" class="button btn btn-info btn-sm fa" <a tabindex="0" class="button btn btn-info btn-sm fa"
role="button" data-toggle="popover" title="Not Implemented Quite Yet :(" role="button" data-toggle="popover" title="Not Implemented Quite Yet :("
...@@ -54,6 +56,28 @@ ...@@ -54,6 +56,28 @@
contribute code, head to git.gmu.edu/srct/go"> contribute code, head to git.gmu.edu/srct/go">
<i class="fa fa-cog"></i> Edit</a> <i class="fa fa-cog"></i> Edit</a>
<div id="deletionModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title" style="font-weight:bold">Are you sure you would like to <a style="color:red">delete</a> {{domain}}{{url.short}}</h4>
</div>
<div class="modal-body" style="padding-bottom: 80px">
<a type="button" class="btn btn-success btn-lg btn-block" href="{{domain}}delete/{{url.short}}" style="padding-bottom: 10px">Yes</a>
<a type="button" class="btn btn-danger btn-lg btn-block" style="float:right;" data-dismiss="modal">No</a>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
{% endif %} {% endif %}
<br></br> <br></br>
</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