-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
222 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{% load i18n %} | ||
<!DOCTYPE html> | ||
{% load staticfiles %} | ||
<html> | ||
<head> | ||
<style> | ||
img { | ||
float: right; | ||
border: 3px solid black; | ||
margin: 0px 0px 10px 10px; | ||
} | ||
</style> | ||
<meta name="viewport" content="width=device-width"> | ||
<script src="{% static "rmap/libs/jquery/2.1.1/jquery.min.js" %}" type="text/javascript"></script> | ||
<!-- Bootstrap core CSS --> | ||
<link rel="stylesheet" type="text/css" href="{% static "rmap/libs/bootstrap/3.3.6/css/bootstrap.min.css" %}" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" > | ||
<link rel="stylesheet" type="text/css" href="{% static "rmap/libs/bootstrap/3.3.6/css/docs.min.css" %}" > | ||
|
||
<!-- Custom styles for this template --> | ||
<script src="{% static "rmap/libs/bootstrap/3.3.6/js/bootstrap.min.js" %}" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" type="text/javascript"></script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
</head> | ||
<body> | ||
|
||
{% if invalid %} | ||
<div class="alert alert-warning" role="alert">{% trans 'Invalid data; retry' %}</div> | ||
<h3 id="striped-rows"><a href={% url 'geoimage-by-id' grimage.id %}>{% trans 'Return to image' %}</a> </h3> | ||
{% endif %} | ||
|
||
{% if notauthorized %} | ||
<div class="alert alert-warning" role="alert">{% trans 'The image is not your own; cannot remove!' %}</div> | ||
{% endif %} | ||
|
||
{% if error %} | ||
<div class="alert alert-danger" role="alert">{% trans 'Error deleting image; retry' %}</div> | ||
{% endif %} | ||
|
||
|
||
{% if deleted %} | ||
|
||
<h3 id="striped-rows">{% trans 'Image removed' %}</h3> | ||
<h3 id="striped-rows"><a href={% url 'geoimages-on-map' %}>{% trans 'Return to image on map' %}</a> </h3> | ||
|
||
{% else %} | ||
|
||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-xs-12"> | ||
<img src="/{{ grimage.image.url }}" class="img-rounded img-responsive"> | ||
</div> | ||
<div class="col-xs-12"> | ||
{{grimage.comment}} | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-xs-6"> | ||
<h3>{% trans 'Are you sure to delete image ?' %}</h3> | ||
</div> | ||
|
||
<div class="col-xs-3"> | ||
<h3 id="striped-rows"><a href={% url 'geoimages-on-map' %}>{% trans 'Cancel' %}</a> </h3> | ||
</div> | ||
|
||
<div class="col-xs-3"> | ||
<form enctype="multipart/form-data" method="POST">{% csrf_token %} | ||
{{ delgeoimageform.as_p }} | ||
<input type="submit" value={%trans "Remove" %} class="btn"> | ||
</form> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
{% endif %} | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.