We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd5764d commit dad08afCopy full SHA for dad08af
reports/forms.py
@@ -0,0 +1,10 @@
1
+from django import forms
2
+
3
+from versions.models import Version
4
5
6
+class ImportWebAnalyticsForm(forms.Form):
7
+ version = forms.ModelChoiceField(
8
+ Version.objects.get_dropdown_versions(),
9
+ widget=forms.Select(attrs={"class": "dropdown !mb-0 h-[38px]"}),
10
+ )
reports/templates/reports/import_web_analytics.html
@@ -0,0 +1,16 @@
+{% extends "base.html" %}
+{% block content %}
+ <main class="content">
+ <div class="py-3 px-3 md:mt-3 md:px-0">
+ <h3 class="mb-4">Import Web Statistics</h3>
+ <form method="post">
+ {% csrf_token %}
+ {{ form }}
+ <div class="flex flex-row my-4">
11
+ <input class="py-2 px-3 text-sm text-white rounded bg-orange cursor-pointer" type="submit" value="Import">
12
+ </div>
13
+ </form>
14
15
+ </main>
16
+{% endblock %}
0 commit comments