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

2 contract grid, admin SSO login

parent 58d5c631
Branches
No related tags found
No related merge requests found
Pipeline #13360 passed
<ul class="flex-col gap-4 flex"> <ul class="grid grid-cols-2 gap-4 flex">
{% for contract in page %} {% for contract in page %}
<li class="card elevation-10{% if not contract.is_public %} bg-red-100{% endif %}"> <li class="card elevation-10{% if not contract.is_public %} bg-red-100{% endif %}">
<div class="card__body p-5"> <div class="card__body p-5">
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</a> </a>
<table class="table-auto border-separate border-spacing-1.5"> <table class="table-auto border-separate border-spacing-1.5">
<tbody> <tbody>
<tr> <tr class="flex gap-2 justify-between items-center">
<td>Typy:</td> <td>Typy:</td>
<td> <td>
<ul class="flex flex-wrap gap-1.5"> <ul class="flex flex-wrap gap-1.5">
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</ul> </ul>
</td> </td>
</tr> </tr>
<tr> <tr class="flex gap-2 justify-between items-center">
<td class="pt-1.5">Účinná od:</td> <td class="pt-1.5">Účinná od:</td>
<td class="pt-1.5"> <td class="pt-1.5">
{% if contract.valid_start_date %} {% if contract.valid_start_date %}
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
<tr> <tr class="flex gap-2 justify-between items-center">
<td class="py-1.5">Účinná do:</td> <td class="py-1.5">Účinná do:</td>
<td class="py-1.5"> <td class="py-1.5">
{% if contract.valid_end_date %} {% if contract.valid_end_date %}
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
<tr> <tr class="flex gap-2 justify-between items-center">
<td>Platná:</td> <td>Platná:</td>
<td> <td>
<i <i
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
></i> ></i>
</td> </td>
</tr> </tr>
<tr> <tr class="flex gap-2 justify-between items-center">
<td>Podpis s:</td> <td>Podpis s:</td>
<td> <td>
<ul class="flex flex-wrap gap-1.5"> <ul class="flex flex-wrap gap-1.5">
......
{% 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 %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment