-
-
Notifications
You must be signed in to change notification settings - Fork 995
Help text for foundation Meeting model fields #1945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 5.1.5 on 2025-03-05 10:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('foundation', '0006_hardcode_currency_choices'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='business', | ||
name='body', | ||
field=models.TextField(help_text="Supports reStructuredText. See <a href='https://www.djangoproject.com/styleguide/content/'>supported formatting</a>."), | ||
), | ||
migrations.AlterField( | ||
model_name='meeting', | ||
name='board_attendees', | ||
field=models.ManyToManyField(help_text='Make sure to choose the correct year', related_name='meetings_attended', to='foundation.boardmember'), | ||
), | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends "admin/change_form.html" %} {% load i18n %} \ {% block extrastyle %} | ||
{{ block.super }} | ||
<style> | ||
.meeting-warning { | ||
background: #fff3cd; | ||
border: 2px solid #ffeeba; | ||
border-radius: 4px; | ||
color: #856404; | ||
margin: 1em 0; | ||
padding: 1em; | ||
font-size: 1.1em; | ||
font-weight: 500; | ||
} | ||
.meeting-warning::before { | ||
content: "⚠️ "; | ||
} | ||
Comment on lines
+4
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we have this in the dedicated style folder instead? or this will not work? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That will not work because I am overriding the admin template form.For it to work, I think I will have to add compiled SCSS to the base admin template. That may break other styles as well because now, SCSS is compiled to one big output.css file. |
||
</style> | ||
{% endblock %} {% block content %} | ||
<div class="messagelist"> | ||
<div class="meeting-warning"> | ||
Note: Meeting notes go live and on RSS on Save, make sure to complete all | ||
relevant fields. | ||
</div> | ||
</div> | ||
{{ block.super }} {% endblock %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does it render in light theme?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.