Skip to content

Instantly share code, notes, and snippets.

@BuildWithLal
Last active June 11, 2018 09:33
Show Gist options
  • Save BuildWithLal/58d86646c7115a858b5f646dd0b2c14a to your computer and use it in GitHub Desktop.
Save BuildWithLal/58d86646c7115a858b5f646dd0b2c14a to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<h1>Images</h1>
<table>
{% for image in object_list %}
<tr>
<td>{{ image.name }}</td>
<td><a href="{% url 'imageapp:image_edit' image.pk %}">edit</a></td>
<td><a href="{% url 'imageapp:image_delete' image.pk %}">delete</a></td>
<td><img class="edit-image" style="visibility: hidden" src="{{ image.image.url }}" width="200" height="150" /></td>
</tr>
{% endfor %}
</table>
<a href="{% url 'imageapp:image_new' %}">New</a>
<div id="container"></div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" ></script>
<script src="https://cdn.rawgit.com/konvajs/konva/2.1.3/konva.min.js"></script>
<script src="{{ static }}/js/image_edit.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment