Work on admin interface
This commit is contained in:
1 parent
81fe4a6872
commit
11fb603036
233 files changed
+48519
-7
No files matched your search
@@ -6,8 +6,11 @@
|
||||
<title>{% block "title" %}{% endblock %}</title>
|
||||
<link rel="stylesheet" href="{% static 'dist/styles/main.css' %}" type="text/css">
|
||||
<script type="text/javascript" src="{% static 'bower_components/jquery/dist/jquery.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static 'bower_components/underscore/underscore.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static 'bower_components/nunjucks/browser/nunjucks.js' %}"></script>
|
||||
</head>
|
||||
<body>
|
||||
{% block "body" %}{% endblock %}
|
||||
{% block "body" %}{% endblock %}
|
||||
<script type="text/javascript" src="{% static 'dist/scripts/main.js' %}"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,10 +1,22 @@
|
||||
{% extends "base.html" %}
|
||||
{% load bootstrap %}
|
||||
{% block "body" %}
|
||||
<div class="container">
|
||||
{% if not user.is_authenticated %}
|
||||
{{ form|bootstrap }}
|
||||
<form method="post">
|
||||
{{ form|bootstrap }}
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="Logg inn">
|
||||
</form>
|
||||
{% else %}
|
||||
<div class="greeting">Hei, {{ user.username }}</div>
|
||||
<a href="{% url 'logout' %}">Logg ut</a>.
|
||||
{% endif %}
|
||||
<div></div><a href="/api/">API</a></div>.
|
||||
<div class="row">
|
||||
<div class="forwards-container"></div>
|
||||
</div>
|
||||
<a href="/api/">API</a><br>
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user