Skip to content
Snippets Groups Projects
Commit a27ced47 authored by Felix Schäfer's avatar Felix Schäfer :construction_worker:
Browse files

Make first column less wide

parent a9c9c58e
No related branches found
No related tags found
No related merge requests found
......@@ -2,12 +2,23 @@ from django import forms
from django.dispatch import receiver
from django.template.loader import get_template
from django.utils.translation import ugettext_lazy as _, get_language
from django.urls import resolve
from django_gravatar.helpers import get_gravatar_url
from i18nfield.strings import LazyI18nString
from pretix.presale.signals import question_form_fields, front_page_bottom, process_response
from pretix.presale.signals import question_form_fields, front_page_bottom, process_response, html_head
from pretix.base.models import OrderPosition
@receiver(html_head, dispatch_uid="public_registrations_html_head")
def add_public_registrations_html_head(sender, request=None, **kwargs):
url = resolve(request.path_info)
if "event.index" in url.url_name:
template = get_template("pretix_public_registrations/head.html")
return template.render()
else:
return ""
@receiver(question_form_fields, dispatch_uid="public_registration_question")
def add_public_registration_question(sender, **kwargs):
return {'public_registration': forms.CharField(
......
.table > thead > tr > th:first-child,
.table > tbody > tr > td:first-child {
width: 41px;
}
{% load static %}
{% load compress %}
{% compress css %}
<link type="text/css" rel="stylesheet" href="{% static "pretix_public_registrations/ui.css" %}">
{% endcompress %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment