diff --git a/contracts/templates/contracts/includes/contract_list.html b/contracts/templates/contracts/includes/contract_list.html index 0ecc7ce22aea7a4c278d66afecdfcf90a2eb5804..8f766dab0c808f996273275295a7528fb7bc4266 100644 --- a/contracts/templates/contracts/includes/contract_list.html +++ b/contracts/templates/contracts/includes/contract_list.html @@ -1,4 +1,4 @@ -<ul class="flex-col gap-4 flex"> +<ul class="grid grid-cols-2 gap-4 flex"> {% for contract in page %} <li class="card elevation-10{% if not contract.is_public %} bg-red-100{% endif %}"> <div class="card__body p-5"> @@ -13,7 +13,7 @@ </a> <table class="table-auto border-separate border-spacing-1.5"> <tbody> - <tr> + <tr class="flex gap-2 justify-between items-center"> <td>Typy:</td> <td> <ul class="flex flex-wrap gap-1.5"> @@ -25,7 +25,7 @@ </ul> </td> </tr> - <tr> + <tr class="flex gap-2 justify-between items-center"> <td class="pt-1.5">Účinná od:</td> <td class="pt-1.5"> {% if contract.valid_start_date %} @@ -35,7 +35,7 @@ {% endif %} </td> </tr> - <tr> + <tr class="flex gap-2 justify-between items-center"> <td class="py-1.5">Účinná do:</td> <td class="py-1.5"> {% if contract.valid_end_date %} @@ -45,7 +45,7 @@ {% endif %} </td> </tr> - <tr> + <tr class="flex gap-2 justify-between items-center"> <td>Platná:</td> <td> <i @@ -54,7 +54,7 @@ ></i> </td> </tr> - <tr> + <tr class="flex gap-2 justify-between items-center"> <td>Podpis s:</td> <td> <ul class="flex flex-wrap gap-1.5"> diff --git a/registry/templates/admin/login.html b/registry/templates/admin/login.html new file mode 100644 index 0000000000000000000000000000000000000000..0e948acae4eef492416f6b54c94ff5c9981c64a8 --- /dev/null +++ b/registry/templates/admin/login.html @@ -0,0 +1,50 @@ +{% extends "admin/base_site.html" %} +{% load i18n static %} + +{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/login.css" %}"> +{{ form.media }} +{% endblock %} + +{% block bodyclass %}{{ block.super }} login{% endblock %} + +{% block usertools %}{% endblock %} + +{% block nav-global %}{% endblock %} + +{% block nav-sidebar %}{% endblock %} + +{% block content_title %}{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block content %} +{% if form.errors and not form.non_field_errors %} +<p class="errornote"> +{% if form.errors.items|length == 1 %}{% translate "Please correct the error below." %}{% else %}{% translate "Please correct the errors below." %}{% endif %} +</p> +{% endif %} + +{% if form.non_field_errors %} +{% for error in form.non_field_errors %} +<p class="errornote"> + {{ error }} +</p> +{% endfor %} +{% endif %} + +<div id="content-main"> + +{% if user.is_authenticated %} +<p class="errornote" style="font-weight: normal"> + Jste přihlášeni jako "{{ username }}", ale nemáte dostatečná oprávnění. +</p> +{% endif %} + +<p style="text-align: center; padding-top: 10px;"> +<a class="button" style="padding: 10px 15px;" href="{% url 'oidc_authentication_init' %}?next={{ request.GET.next }}"> + Přihlásit se Pirátskou identitou + </a> +</p> + +</div> +{% endblock %}