/
layer_upload.html
93 lines (85 loc) · 3.31 KB
/
layer_upload.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{% extends "base.html" %}
{% load i18n %}
{% load static from staticfiles %}
{% block title %} {% trans "Upload Layer" %} - {{ block.super }} {% endblock %}
{% block body_class %}data upload{% endblock body_class %}
{% block head %}
{% include "geonode/ext_header.html" %}
{% include "geonode/app_header.html" %}
{% include "geonode/geo_header.html" %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}geonode/css/fileuploadfield.css"/>
<style type="text/css">
.uip {
border: 1px solid gray;
border-radius: 3px;
padding: .5em;
margin: .5em
}
/* workaround bizarre firefox bug where filechooser button doesn't work */
#base_file-file {
width: auto;
}
</style>
{{ block.super }}
{% endblock %}
{% block body %}
<div class="block">
<div class="span8">
<h2 class="page-title">{% trans "Upload Layers" %}</h2>
{% if incomplete %}
<section style="border: none" class="uip">
<h3 class="uip">Incomplete Uploads</h3>
<p>You have the following incomplete uploads:</p>
{% for u in incomplete %}
<div class="clearfix uip" style="">
<div class="pull-left">{{ u.name }}, last updated on {{ u.date }}</div>
<div class="upload_actions pull-right">
<a class="btn btn-mini" href="{{ u.get_resume_url }}">Resume</a>
<a class="btn btn-mini icon-trash" href="{{ u.get_delete_url }}">Delete</a>
</div>
</div>
</section>
{% endfor %}
<div id="confirm-delete" class="hide alert alert-warn" style="padding:10px; margin: 10px 0;">
Are you sure you want to delete this upload?
<div style="margin: 5px 0">
<a href="#y" class="btn btn-danger">Delete</a>
<a href="#n" class="btn">Cancel</a>
</div>
<a href="#yy" style="font-weight:normal">Delete, and don't ask me again.</a>
</div>
{% endif %}
{% block additional_info %}{% endblock %}
{% if errors %}
<div id="errors">
{% for error in errors %}
<div>{{ error }}</div>
{% endfor %}
</div>
{% endif %}
{% if enough_storage %}
<div id="upload_form"></div>
<script type="text/javascript" src="{% static "geonode/js/upload/ext/layer_upload.js" %}"></script>
<script type="text/javascript" src="{% static "geonode/js/upload/ext/upload_common.js" %}"></script>
<script type="text/javascript">
{% autoescape off %}
setup({
csrf_token : "{{ csrf_token }}",
form_target : "{% url data_upload %}",
userLookup : "{% url geonode.views.ajax_lookup %}"
});
{% if async_upload %}
enableUploadProgress('upload_form');
{% endif %}
{% endautoescape %}
</script>
{% endif %}
</div>
</div>
{% endblock %}
{% block sidebar %}
{% if enough_storage %}
<h3>{%trans "Permissions" %}</h3>
<div id="permissions_form"></div>
{% endif %}
{% endblock %}