Skip to content
Snippets Groups Projects
Commit 37f9da80 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

preparing rv voting app

parent f5c99c7c
No related branches found
No related tags found
1 merge request!2Release
Pipeline #11118 passed
......@@ -2,6 +2,7 @@ from django.urls import path
from . import views
app_name = "member_group_size_calc"
urlpatterns = [
path("", views.index, name="member_group_size_calc_index"),
path("", views.index, name="index"),
]
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class RvVotingCalcConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "rv_voting_calc"
from django.db import models
# Create your models here.
{% extends "shared/base.html" %}
{% load render_bundle from webpack_loader %}
{% block title %}Kalkulačka hlasování RV{% endblock %}
{% block header_name %}Hlasování RV{% endblock %}
{% block description %}TODO - Popis{% endblock %}
{% block head %}
{% render_bundle "rv_voting_calc" %}
{% endblock %}
{% block content %}
<main>
</main>
{% endblock %}
from django.test import TestCase
# Create your tests here.
from django.urls import path
from . import views
app_name = "rv_voting_calc"
urlpatterns = [
path("", views.index, name="index"),
]
from django.shortcuts import render
# Create your views here.
def index(request):
return render(
request,
"rv_voting_calc/index.html"
)
......@@ -16,7 +16,7 @@
<h1 class="text-6xl font-bebas mb-5">Rychlé nástroje</h1>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<article class="card">
<a href="{% url "member_group_size_calc_index" %}">
<a href="{% url "member_group_size_calc:index" %}">
<img
src="{% static "shared/calculator.webp" %}"
alt="Kalkulačka velikosti skupiny členů"
......@@ -25,7 +25,7 @@
</a>
<div class="p-4">
<h2 class="mb-2 text-xl font-bold">
<a href="{% url "member_group_size_calc_index" %}">
<a href="{% url "member_group_size_calc:index" %}">
Kalkulačka velikosti skupiny členů
</a>
</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment