Übersicht FarbenTypografieAbstände & RasterIcons ButtonButton GroupIcon ButtonLink CheckboxCheckbox GroupChipChip GroupComboboxDate PickerFieldField LabelFieldsFile UploadFormForm SectionInputInput GroupOTP InputPasswordRadioRadio GroupRange SliderReset ButtonSave ButtonSearchSegmented ControlSelectSliderSwitchTextareaTime Picker AvatarAvatar GroupBadgeChartCode BlockCopy ValueData TableInline StatKey ValueList GroupList RowsMeta ItemQR CodeStatStat StripTableTag AlertEmpty StateGuideLive StatusMessagesProgressSkeletonToast DialogDrawerDropdownMenuMenu ItemPopoverTooltip BreadcrumbContent NavigationDate NavigationPaginationSidebarStepperTabsTheme SwitchTopbar AccordionAccordion ItemApp ShellCardDividerFooterPage HeaderSection HeaderSplit Panel DashboardListeFormularDetailansichtEinstellungenMehrschritt-AssistentLeerer StartLoginFehlerseite IconsMusterAdmin

Login

  • Vorlage im Theme: {% extends "tomcom_theme/layouts/login.html" %} mit product, sso_url, form, hint_lines, status.
  • Die Demo meldet niemanden an.

tomcom ID

/poms/anmelden/

Mit Benutzername

/poms/anmelden/?form=1

Verwendete Komponenten

Templates

poms/login.html{% extends "tomcom_theme/layouts/login.html" %}{% load static %} {% block title %}Anmelden{% endblock %} {% block head %}<link rel="icon" href="{% static 'catalogue/favicon.svg' %}" type="image/svg+xml"><script>try{var k='poms-preview-theme',m=new URLSearchParams(location.search).get('theme');if(window.top!==window.self){if(m)sessionStorage.setItem(k,m);m=sessionStorage.getItem(k);}if(m==='light'||m==='dark'||m==='system')document.documentElement.dataset.theme=m;}catch(e){}</script>{% endblock %}
tomcom_theme/layouts/login.html{% extends "tomcom_theme/layouts/base.html" %}{% load i18n components tomcom_theme %}{% comment %} Sign-in page (Figma: Screen / Login): form column on the left, navy brand panel on the right (hidden on phones). Single sign-on with the tomcom ID is the primary action; an optional Django form (e.g. AuthenticationForm) renders below it. {% extends "tomcom_theme/layouts/login.html" %} Context: product, description, sso_url (POST target or link of the SSO button), sso_label, form (optional Django form), form_action, request_access_url, hint_lines (list of strings), version, status, status_tone ("success", "warning", "danger"), status_detail, footer_links (list of (label, url)), next. Blocks: brand, heading, intro, messages_inline, sso, form, alternative, hint, aside, footer_links. {% endcomment %} {% block title %}{% translate "Sign in" %}{% endblock %} {% block body_class %} tc-auth-page{% endblock %} {% block body %} <div class="tc-auth"> <main id="main" class="tc-auth__main" tabindex="-1"> <div class="tc-auth__brand">{% block brand %}{% include "tomcom_theme/layouts/logo.html" %}{% endblock %}</div> <div class="tc-auth__content"> {% block heading %}<h1 class="tc-auth__title"><span class="tc-auth__eyebrow">{% translate "Sign in to" %}</span>{{ product }}</h1>{% endblock %} {% block intro %}{% if description %}<p class="tc-auth__intro">{{ description }}</p>{% endif %}{% endblock %} {% block messages_inline %}{% if form.non_field_errors %}{% tc_alert# tone="danger" title=form.non_field_errors.0 %}{% endif %}{% endblock %} {% block sso %}{% if sso_url %} <form method="post" action="{{ sso_url }}" class="tc-auth__sso">{% csrf_token %}{% if next %}<input type="hidden" name="next" value="{{ next }}">{% endif %} {% translate "Sign in with tomcom ID" as default_sso %} {% tc_button# type="submit" block=True icon_right="arrow--right" label=sso_label|default:default_sso %} </form> {% endif %}{% endblock %} {% block form %}{% if form %} {% if sso_url %}{% translate "or with user name" as divider_label %}{% tc_divider# label=divider_label %}{% endif %} {% translate "Sign in" as sign_in %} {% tc_form form=form action=form_action width="full" hide_buttons=True %}{% tc_fields# form=form show_errors=False %}{% if next %}<input type="hidden" name="next" value="{{ next }}">{% endif %}{% tc_button# type="submit" variant="outlined" block=True label=sign_in %}{% endtc_form %} {% endif %}{% endblock %} {% block alternative %}{% if request_access_url %}<p class="tc-auth__alternative">{% translate "No tomcom account?" %} {% translate "Request access" as request_label %}{% tc_link# href=request_access_url label=request_label %}</p>{% endif %}{% endblock %} {% block hint %}{% if hint_lines %}<div class="tc-auth__hint">{% for line in hint_lines %}<p>{{ line }}</p>{% endfor %}</div>{% endif %}{% endblock %} </div> <footer class="tc-auth__footer">{% block footer_links %}<span>tomcom GmbH</span>{% for label, url in footer_links %}<a href="{{ url }}">{{ label }}</a>{% endfor %}{% endblock %}</footer> </main> {% block aside %} <aside class="tc-auth__aside" aria-hidden="true"> <span class="tc-auth__version">{{ version }}</span> <span class="tc-auth__glyphs">=!&gt;<em>≠</em>~&lt;</span> {% if status %}<span class="tc-auth__status"><span class="tc-auth__status-line"><span class="tc-auth__dot tc-auth__dot--{{ status_tone|default:'success' }}"></span>{{ status }}</span>{% if status_detail %}<span>{{ status_detail }}</span>{% endif %}</span>{% endif %} </aside> {% endblock %} </div> {% endblock %}