skeleton catalog list and editor pages
This commit is contained in:
0
catalogedit/__init__.py
Normal file
0
catalogedit/__init__.py
Normal file
13
catalogedit/views.py
Normal file
13
catalogedit/views.py
Normal file
@ -0,0 +1,13 @@
|
||||
from django.contrib import messages
|
||||
from django.http import HttpResponseRedirect, HttpResponse, JsonResponse
|
||||
from django.shortcuts import render, get_object_or_404
|
||||
from django.urls import reverse
|
||||
from django.utils.translation import gettext as _
|
||||
|
||||
from lazysignup.decorators import allow_lazy_user
|
||||
from account.decorators import login_required
|
||||
|
||||
|
||||
@login_required
|
||||
def catalogedit(request):
|
||||
return render(request, 'catalogedit/catalogedit.html')
|
||||
0
cataloglist/__init__.py
Normal file
0
cataloglist/__init__.py
Normal file
13
cataloglist/views.py
Normal file
13
cataloglist/views.py
Normal file
@ -0,0 +1,13 @@
|
||||
from django.contrib import messages
|
||||
from django.http import HttpResponseRedirect, HttpResponse, JsonResponse
|
||||
from django.shortcuts import render, get_object_or_404
|
||||
from django.urls import reverse
|
||||
from django.utils.translation import gettext as _
|
||||
|
||||
from lazysignup.decorators import allow_lazy_user
|
||||
from account.decorators import login_required
|
||||
|
||||
|
||||
@login_required
|
||||
def cataloglist(request):
|
||||
return render(request, 'cataloglist/cataloglist.html')
|
||||
@ -17,9 +17,12 @@ from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
from django.conf import settings
|
||||
|
||||
from dashboard.views import dashboard
|
||||
from lazysignup.views import convert
|
||||
|
||||
from dashboard.views import dashboard
|
||||
from cataloglist.views import cataloglist
|
||||
from catalogedit.views import catalogedit
|
||||
|
||||
from .forms import UserCreationForm
|
||||
from .views import login_guest, lazy_convert_done
|
||||
|
||||
@ -28,6 +31,8 @@ urlpatterns = [
|
||||
path('guest', login_guest, name='login_guest'),
|
||||
path('', dashboard, name='home'),
|
||||
path('dashboard', dashboard, name='dashboard'),
|
||||
path('catalogs', cataloglist, name='cataloglist'),
|
||||
path('edit', catalogedit, name='catalogedit'),
|
||||
path('admin/', admin.site.urls),
|
||||
path("account/", include("account.urls")),
|
||||
path('convert/', convert, { 'form_class': UserCreationForm }, name='lazysignup_convert'),
|
||||
|
||||
11926
static/js/vue.js
Normal file
11926
static/js/vue.js
Normal file
File diff suppressed because it is too large
Load Diff
6
static/js/vue.min.js
vendored
Normal file
6
static/js/vue.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -11,6 +11,7 @@
|
||||
<link rel="stylesheet" href="{% static 'css/main.css' %}">
|
||||
<script src="{% static 'js/uikit.min.js' %}"></script>
|
||||
<script src="{% static 'js/uikit-icons.min.js' %}"></script>
|
||||
<script src="{% static 'js/vue.js' %}"></script>
|
||||
</head>
|
||||
<body>
|
||||
{% include "nav.html" %}
|
||||
|
||||
8
templates/catalogedit/catalogedit.html
Normal file
8
templates/catalogedit/catalogedit.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Editor"%}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% endblock %}
|
||||
8
templates/cataloglist/cataloglist.html
Normal file
8
templates/cataloglist/cataloglist.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Catalogs"%}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% endblock %}
|
||||
@ -4,7 +4,7 @@
|
||||
{% block title %}{% trans "Dashboard"%}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="uk-section uk-section-default uk-preserve-color">
|
||||
<div class="uk-section">
|
||||
<div class="uk-container">
|
||||
|
||||
<div class="uk-grid-match uk-child-width-expand@m" uk-grid>
|
||||
@ -12,9 +12,9 @@
|
||||
<div>
|
||||
<div class="uk-card uk-card-default uk-card-body">
|
||||
<h3 class="uk-card-title">{% trans "Catalogs" %}</h3>
|
||||
<ul>
|
||||
<li><a href="{% url 'home' %}">{% trans "New catalog" %}</a></li>
|
||||
<li><a href="{% url 'home' %}">{% trans "Catalog list" %}</a></li>
|
||||
<ul class="uk-list">
|
||||
<li><a href="{% url 'catalogedit' %}">{% trans "New catalog" %}</a></li>
|
||||
<li><a href="{% url 'cataloglist' %}">{% trans "Catalog list" %}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@ -22,7 +22,7 @@
|
||||
<div>
|
||||
<div class="uk-card uk-card-default uk-card-body">
|
||||
<h3 class="uk-card-title">{% trans "Images" %}</h3>
|
||||
<ul>
|
||||
<ul class="uk-list">
|
||||
<li><a href="{% url 'home' %}">{% trans "Image downloader" %}</a></li>
|
||||
{% if not user|is_lazy_user %}
|
||||
<li><a href="{% url 'home' %}">{% trans "Image uploader" %}</a></li>
|
||||
@ -36,7 +36,7 @@
|
||||
<div>
|
||||
<div class="uk-card uk-card-default uk-card-body">
|
||||
<h3 class="uk-card-title">{% trans "Tools" %}</h3>
|
||||
<ul>
|
||||
<ul class="uk-list">
|
||||
<li><a href="{% url 'home' %}">{% trans "Region editor" %}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -20,8 +20,8 @@
|
||||
<a href="{% url 'home' %}">{% trans "Catalogs" %}</a>
|
||||
<div class="uk-navbar-dropdown">
|
||||
<ul class="uk-nav uk-navbar-dropdown-nav">
|
||||
<li><a href="{% url 'home' %}">New catalog</a></li>
|
||||
<li><a href="{% url 'home' %}">Catalog list</a></li>
|
||||
<li><a href="{% url 'catalogedit' %}">New catalog</a></li>
|
||||
<li><a href="{% url 'cataloglist' %}">Catalog list</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user