-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
batadasen/migrations/0015_alter_person_options_alter_emaillist_alias_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 4.1.4 on 2024-10-01 11:22 | ||
|
||
import batadasen.models | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('batadasen', '0014_person_email_active'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='person', | ||
options={'ordering': ['member_number'], 'permissions': [('view_private_info', 'Kan se all personinfo oavsett personens inställningar'), ('view_performances', 'Kan se loggade föreställnigar')], 'verbose_name': 'person', 'verbose_name_plural': 'personer'}, | ||
), | ||
migrations.AlterField( | ||
model_name='emaillist', | ||
name='alias', | ||
field=batadasen.models.EmailField(help_text='Namnet på listan, det som står framför @', max_length=50, primary_key=True, serialize=False, verbose_name='alias'), | ||
), | ||
migrations.AlterField( | ||
model_name='person', | ||
name='privacy_setting', | ||
field=models.CharField(choices=[('PVT', 'Privat'), ('OPN', 'Öppen')], default='OPN', help_text='Privat: endast administratörer kan se dina kontaktuppgifter. Öppen: andra inloggade kan se all din information. Inga personuppgifter kommer någonsin vara synliga för icke-inloggade. Medlemsnummer och namn kommer alltid vara synligt för inloggade.', max_length=3, verbose_name='sekretessnivå'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% extends 'base.html' %} | ||
{% load i18n %} | ||
|
||
{% block title %}Medlemmar{% endblock %} | ||
|
||
{% block content %} | ||
<h2>100-klubben</h2> | ||
<table class="table table-sm"> | ||
<tr> | ||
<th>Medlemsnummer</th> | ||
<th>Namn</th> | ||
</tr> | ||
{% for person in object_list|dictsort:"member_number" %} | ||
{% if person.hundred_club %} | ||
<tr> | ||
<td><a href="{% url 'batadasen:person_detail' person.member_number %}">{{ person.member_number }}</a></td> | ||
<td>{{ person.first_name }} {% if person.spex_name %}"{{ person.spex_name }}" {% endif %}{{ person.last_name }}</td> | ||
</tr> | ||
{% endif %} | ||
{% endfor %} | ||
</table> | ||
{% if perms.batadasen.view_performances %} | ||
<h2>Kandidater</h2> | ||
<table class="table table-sm"> | ||
<tr> | ||
<th>Medlemsnummer</th> | ||
<th>Namn</th> | ||
<th>Rapporterade föreställningar</th> | ||
</tr> | ||
{% for person in object_list|dictsort:"member_number" %} | ||
{% if not person.hundred_club %} | ||
<tr> | ||
<td><a href="{% url 'batadasen:person_detail' person.member_number %}">{{ person.member_number }}</a></td> | ||
<td>{{ person.first_name }} {% if person.spex_name %}"{{ person.spex_name }}" {% endif %}{{ person.last_name }}</td> | ||
<td>{{ person.performances_count }}</td> | ||
</tr> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters