parent
26d330fa16
commit
3ede628e83
@ -0,0 +1 @@
|
||||
from django.contrib import admin
|
||||
@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class MainConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'main'
|
||||
@ -0,0 +1,4 @@
|
||||
from django.db import models
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
# Create your models here.
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,57 @@
|
||||
/* GLOBAL */
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.container {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: -2rem;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
span.curser {
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
img.pb {
|
||||
max-width: 2rem;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.infoboxes {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.mycard-half{
|
||||
border-radius: 1rem;
|
||||
/* box-shadow: .1rem -.1rem .3rem rgb(184, 184, 184); */
|
||||
max-width: 40%;
|
||||
padding: 1rem;
|
||||
text-align: start;
|
||||
}
|
||||
.mycard{
|
||||
border-radius: 1rem;
|
||||
/* box-shadow: .1rem -.1rem .3rem rgb(184, 184, 184); */
|
||||
max-width: 85%;
|
||||
padding: 1rem;
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
.card_title {
|
||||
font-size: .8rem;
|
||||
/* padding-top: 1.1rem; */
|
||||
}
|
||||
|
||||
.card_content {
|
||||
font-size: 1.4rem;
|
||||
vertical-align: top;
|
||||
margin-top: -1rem;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
|
||||
.form-control-clear {
|
||||
z-index: 10;
|
||||
pointer-events: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 20 KiB |
File diff suppressed because one or more lines are too long
@ -0,0 +1,60 @@
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<!-- all infos about iphone app -->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-title" content="MeetingOrganizer">
|
||||
<!-- <link rel="apple-touch-icon" sizes="167x167" href="{% static 'img/mLD_iphoneIcon.png' %}">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'img/mLD_ipadIcon.png' %}"> -->
|
||||
|
||||
<!-- all others -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="{% static 'css/bootstrap.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
|
||||
<title>Meeting Organizer</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{% block pushup %}
|
||||
{% endblock %}
|
||||
|
||||
<div class="container">
|
||||
<div class="top_line row justify-content-between">
|
||||
<div class="title col-6 text-start dropdown">
|
||||
<h4><c style="color: rgb(221, 196, 107); vertical-align: top;" id="dropdownMenuLink" data-bs-toggle="dropdown">Meeting</c><b>Organizer</b></h4>
|
||||
<!-- <span class="curser" id="dropdownMenuLink" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<h4><c style="color: rgb(221, 196, 107); vertical-align: top;" id="dropdownMenuLink" data-bs-toggle="dropdown">Meeting</c><b>Organizer</b></h4>
|
||||
</span> -->
|
||||
|
||||
<!-- <ul class="dropdown-menu" aria-labelledby="dropdownMenuLink">
|
||||
<li><a class="dropdown-item {% if menu == 1 %}active{% endif %}" href="/main/">Dashboard</a></li>
|
||||
<li><a class="dropdown-item {% if menu == 2 %}active{% endif %}" href="/main/bestand/">Bestände</a></li>
|
||||
<li><a class="dropdown-item {% if menu == 3 %}active{% endif %}" href="/main/inventur/">Inventur</a></li>
|
||||
<li><a class="dropdown-item {% if menu == 4 %}active{% endif %}" href="/main/bestellung/">Bestellung</a></li>
|
||||
<li><a class="dropdown-item {% if menu == 5 %}active{% endif %}" href="/main/nachschub/">Nachschub</a></li>
|
||||
<li><a class="dropdown-item {% if menu == 6 %}active{% endif %}" href="/main/ausgabe/">Ausgabe</a></li>
|
||||
<li><a class="dropdown-item {% if menu == 7 %}active{% endif %}" href="/main/bewegung/">Bewegung</a></li>
|
||||
<li><a class="dropdown-item {% if menu == 8 %}active{% endif %}" href="/main/jw-hub/"><i>jw-hub</i> Liste</a></li>
|
||||
</ul> -->
|
||||
</div>
|
||||
<div class="col-3 text-end dropdown">
|
||||
<span class="curser" id="dropdownMenuLink" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<img class="pb" src="{% static 'img/user.png' %}" alt="User">
|
||||
</span>
|
||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenuLink">
|
||||
<li><a class="dropdown-item" href="/admin">Admin-Seite</a></li>
|
||||
<li><a class="dropdown-item" href="/logout">Logout</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
||||
</div>
|
||||
<script src="{% static 'js/bootstrap.bundle.min.js' %}"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,23 @@
|
||||
{% extends 'main/base.html' %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
<div class="row justify-content-center infoboxes">
|
||||
<!-- <div class="col-lg-2 mycard-half bg-one">
|
||||
<p class="card_title""><b>Inventur:</b></p>
|
||||
<br>
|
||||
<p class="card_content"><b style="font-size: 2.4rem;">{{ inventur_date.days }}</b> <b>Tage</b></p>
|
||||
</div>
|
||||
<div class="col-1" style="max-width: .5rem;"></div>
|
||||
<div class="col-lg-2 mycard-half bg-two">
|
||||
<p class="card_title""><b>Bestellung:</b></p>
|
||||
<br>
|
||||
<p class="card_content"><b style="font-size: 2.4rem;">{{ order_date.day }}.</b> <b>{{ order_date.month }}</b></p>
|
||||
</div>
|
||||
<div class="col-lg-1" style="margin: .8rem;"></div>
|
||||
<div class="col-lg-6 mycard bg-three">
|
||||
<p class="card_title"><b>Aufgaben:</b></p>
|
||||
<p class="card_content"><b>{{ Len_Todos }}</b></p>
|
||||
</div> -->
|
||||
</div>
|
||||
{% endblock %}
|
||||
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
@ -0,0 +1,7 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path("", views.index, name="index"),
|
||||
]
|
||||
@ -0,0 +1,7 @@
|
||||
from django.shortcuts import render, redirect
|
||||
from django.contrib.auth.decorators import login_required
|
||||
|
||||
@login_required
|
||||
def index(request):
|
||||
return render(request, 'main/index.html')
|
||||
|
||||
Loading…
Reference in new issue