Skip to content

Commit

Permalink
Merge branch 'next' into main-css
Browse files Browse the repository at this point in the history
  • Loading branch information
atjn authored Sep 14, 2024
2 parents 35de0a4 + 1960480 commit 3e43690
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 25 deletions.
1 change: 1 addition & 0 deletions stregsystem/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ def process_submitted(cls, submitted_data, admin_user: User):
processed_mobile_payment.status = row['status']
processed_mobile_payment.member = Member.objects.get(id=row['member'].id)
processed_mobile_payment.submit_processed_mobile_payment(admin_user)
processed_mobile_payment.save()

# Return how many records were modified.
return len(mobile_payment_ids)
Expand Down
16 changes: 16 additions & 0 deletions stregsystem/static/stregsystem/stregsystem.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ body {
background-color: white;
}

header {
display: grid;
grid-template-columns: 1fr auto 1fr;
padding: 3px 4vw;
column-gap: 4vw;
text-align: center;
place-items: center;

& .left {
justify-self: start;
}
& .right {
justify-self: end;
}
}

main {
padding: 1em;

Expand Down
39 changes: 15 additions & 24 deletions stregsystem/templates/stregsystem/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
var media_url = "{% get_media_prefix %}";
</script>
</head>
<body onLoad='if (document.focusform) {document.focusform.quickbuy.focus()}'>
<body>
{% comment %}
<pre>{% filter escape %}{% debug %}{% endfilter %}</pre>

Expand All @@ -28,29 +28,20 @@
<div id="canvas-container"></div>
<img id="rocket" src="{% static "/stregsystem/rocket.png" %}">
<script src="{% static "/stregsystem/fireworks.js" %}"></script>

<table width="100%">
<tr>
<td>
<center>
<input type="button" onclick="location.href='/{{room.id}}';" value="Genstart" tabindex="10" accesskey="q">
</center>
</td>
<td align=center>
<h1>{% block heading %}TREOENs STREGSYSTEM
{% if room.id != 1 %}
: {{room.description}}
{% endif %}
{% endblock %}</h1>
</td>
<td>
<center>
<input type="button" onclick="location.href='/{{room.id}}';" value="Menu" tabindex="11" />
<input type="button" onclick="location.href='/signup'" value="Tilmeld" tabindex="12"/>
</center>
</td>
</tr>
</table>
<header>
<div class="left">
<input type="button" onclick="location.href='/{{room.id}}';" value="Genstart" tabindex="10" accesskey="q">
</div>
<h1>
{% block heading %}
TREOENs STREGSYSTEM {% if room.id != 1 %} : {{room.description}} {% endif %}
{% endblock %}
</h1>
<div class="right">
<input type="button" onclick="location.href='/{{room.id}}';" value="Menu" tabindex="11" />
<input type="button" onclick="location.href='/signup'" value="Tilmeld" tabindex="12"/>
</div>
</header>
<hr>

{% block content %}{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion treo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

CSRF_COOKIE_SECURE = cfg.getboolean("debug", "CSRF_COOKIE_SECURE")
CSRF_COOKIE_HTTPONLY = cfg.getboolean("debug", "CSRF_COOKIE_HTTPONLY")
CSRF_TRUSTED_ORIGINS = ["https://fappen.fklub.dk"]
CSRF_TRUSTED_ORIGINS = ["https://fappen.fklub.dk", "https://stregsystem.fklub.dk"]
SESSION_COOKIE_SECURE = cfg.getboolean("debug", "SESSION_COOKIT_SECURE")

SECURE_BROWSER_XSS_FILTER = cfg.getboolean("debug", "SECURE_BROWSER_XSS_FILTER")
Expand Down

0 comments on commit 3e43690

Please sign in to comment.