Free and open source ticket system written in python

improve fbl partial

+59 -4
+3
fbl_integration/models.py
··· 10 10 created_at = models.DateTimeField(auto_now_add=True) 11 11 status = models.CharField(max_length=64) 12 12 13 + def tags_list(self): 14 + return self.tags_secured.split(',') 15 + 13 16 @classmethod 14 17 def create_user(cls, username) -> PawUser: 15 18 if not PawUser.objects.filter(username=username).exists():
+15 -3
fbl_integration/templates/partials/attendee_info.html
··· 1 1 {% block attendee_info %} 2 2 {% load i18n %} 3 + {% if fbl_account %} 3 4 <h2 class="font-semibold text-xs mt-4 mb-2">{% trans 'Rawrgister Info' %}</h2> 4 - <div class="text-sm"> 5 - {{ fbl_account.username }} <div class="ml-2 badge badge-neutral">#{{ fbl_account.badge_number }}</div> 6 5 7 - {% trans 'Status' %}: <div class="ml-2 badge badge-neutral">{{ fbl_account.status }}</div> 6 + <div class="text-sm flex flex-col"> 7 + <div class="my-1 flex items-center"> 8 + {{ fbl_account.username }} <div class="ml-2 badge badge-accent">#{{ fbl_account.badge_number }}</div> 9 + </div> 10 + <div class="my-1 flex items-center"> 11 + <label class="font-semibold text-xs">{% trans 'Status' %}:</label> <div class="ml-2 badge badge-info">{{ fbl_account.status }}</div> 12 + </div> 13 + <div> 14 + <h3 class="font-semibold text-xs my-1">{% trans 'Tags' %}</h3> 15 + {% for tag in fbl_account.tags_list %} 16 + <div class="badge badge-accent badge-outline mr-2">{{ tag }}</div> 17 + {% endfor %} 18 + </div> 8 19 </div> 20 + {% endif %} 9 21 {% endblock %}
+1 -1
paw/__init__.py
··· 1 1 from django import get_version 2 2 3 3 PAW_VERSION = (0, 5, 8, "final", 0) 4 - FBL_ITERATION = 3 4 + FBL_ITERATION = 4 5 5 6 6 __version__ = f"{get_version(PAW_VERSION)}-fbl{FBL_ITERATION}"
+40
paw/static/css/paw.css
··· 1889 1889 color: var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity))); 1890 1890 } 1891 1891 1892 + .badge-info { 1893 + border-color: transparent; 1894 + --tw-bg-opacity: 1; 1895 + background-color: var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity))); 1896 + --tw-text-opacity: 1; 1897 + color: var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity))); 1898 + } 1899 + 1892 1900 .badge-success { 1893 1901 border-color: transparent; 1894 1902 --tw-bg-opacity: 1; ··· 1911 1919 background-color: var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity))); 1912 1920 --tw-text-opacity: 1; 1913 1921 color: var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity))); 1922 + } 1923 + 1924 + .badge-outline { 1925 + border-color: currentColor; 1926 + --tw-border-opacity: 0.5; 1927 + background-color: transparent; 1928 + color: currentColor; 1914 1929 } 1915 1930 1916 1931 .badge-outline.badge-neutral { ··· 1918 1933 color: var(--fallback-n,oklch(var(--n)/var(--tw-text-opacity))); 1919 1934 } 1920 1935 1936 + .badge-outline.badge-primary { 1937 + --tw-text-opacity: 1; 1938 + color: var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity))); 1939 + } 1940 + 1941 + .badge-outline.badge-secondary { 1942 + --tw-text-opacity: 1; 1943 + color: var(--fallback-s,oklch(var(--s)/var(--tw-text-opacity))); 1944 + } 1945 + 1921 1946 .badge-outline.badge-accent { 1922 1947 --tw-text-opacity: 1; 1923 1948 color: var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity))); 1949 + } 1950 + 1951 + .badge-outline.badge-info { 1952 + --tw-text-opacity: 1; 1953 + color: var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity))); 1924 1954 } 1925 1955 1926 1956 .badge-outline.badge-success { ··· 3290 3320 .my-4 { 3291 3321 margin-top: 1rem; 3292 3322 margin-bottom: 1rem; 3323 + } 3324 + 3325 + .my-1 { 3326 + margin-top: 0.25rem; 3327 + margin-bottom: 0.25rem; 3328 + } 3329 + 3330 + .my-2 { 3331 + margin-top: 0.5rem; 3332 + margin-bottom: 0.5rem; 3293 3333 } 3294 3334 3295 3335 .mb-1 {