Skip to content

Commit d179db3

Browse files
committed
Added meeting.agenda_info_note. Commit ready for merge.
- Legacy-Id: 15550
1 parent c9e1474 commit d179db3

7 files changed

Lines changed: 66 additions & 1 deletion

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.16 on 2018-10-09 14:07
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('meeting', '0008_rename_meeting_agenda_note'),
12+
]
13+
14+
operations = [
15+
migrations.AddField(
16+
model_name='meeting',
17+
name='agenda_info_note',
18+
field=models.TextField(blank=True, help_text=b'Text in this field will be placed at the top of the html agenda page for the meeting. HTML can be used, but will not be validated.'),
19+
),
20+
migrations.AlterField(
21+
model_name='meeting',
22+
name='agenda_warning_note',
23+
field=models.TextField(blank=True, help_text=b'Text in this field will be placed more prominently at the top of the html agenda page for the meeting. HTML can be used, but will not be validated.'),
24+
),
25+
]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.16 on 2018-10-09 14:23
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations
6+
7+
def forward(apps,schema_editor):
8+
Meeting = apps.get_model('meeting','Meeting')
9+
Meeting.objects.filter(number=103).update(agenda_info_note=
10+
'To see the list of unofficial side meetings, or to reserve meeting '
11+
'space, please see the '
12+
'<a href="https://trac.ietf.org/trac/ietf/meeting/wiki/103sidemeetings">'
13+
'meeting wiki</a>.'
14+
)
15+
16+
def reverse(apps,schema_editor):
17+
Meeting = apps.get_model('meeting','Meeting')
18+
Meeting.objects.filter(number=103).update(agenda_info_note="")
19+
20+
class Migration(migrations.Migration):
21+
22+
dependencies = [
23+
('meeting', '0009_add_agenda_info_note'),
24+
]
25+
26+
operations = [
27+
migrations.RunPython(forward,reverse),
28+
]

ietf/meeting/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ class Meeting(models.Model):
9393
venue_addr = models.TextField(blank=True)
9494
break_area = models.CharField(blank=True, max_length=255)
9595
reg_area = models.CharField(blank=True, max_length=255)
96-
agenda_warning_note = models.TextField(blank=True, help_text="Text in this field will be placed at the top of the html agenda page for the meeting. HTML can be used, but will not be validated.")
96+
agenda_info_note = models.TextField(blank=True, help_text="Text in this field will be placed at the top of the html agenda page for the meeting. HTML can be used, but will not be validated.")
97+
agenda_warning_note = models.TextField(blank=True, help_text="Text in this field will be placed more prominently at the top of the html agenda page for the meeting. HTML can be used, but will not be validated.")
9798
agenda = ForeignKey('Schedule',null=True,blank=True, related_name='+')
9899
session_request_lock_message = models.CharField(blank=True,max_length=255) # locked if not empty
99100
proceedings_final = models.BooleanField(default=False, help_text=u"Are the proceedings for this meeting complete?")

ietf/meeting/resources.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Meta:
4040
"venue_addr": ALL,
4141
"break_area": ALL,
4242
"reg_area": ALL,
43+
"agenda_info_note": ALL,
4344
"agenda_warning_note": ALL,
4445
"session_request_lock_message": ALL,
4546
"type": ALL_WITH_RELATIONS,

ietf/templates/meeting/agenda.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ <h1>Agenda</h1>
5454
<b>Note:</b> IETF agendas are subject to change, up to and during a meeting.
5555
</p>
5656

57+
{% if schedule.meeting.agenda_info_note %}
58+
<p class="alert alert-info">
59+
{{ schedule.meeting.agenda_info_note|removetags:"h1"|safe }}
60+
</p>
61+
{% endif %}
62+
5763

5864
<div class="panel-group" id="accordion">
5965
<div class="panel panel-default">

ietf/templates/meeting/agenda.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
{% filter center:72 %} Agenda of the {{ schedule.meeting.number|ordinal }} IETF Meeting {% endfilter %}
44
{% if schedule.meeting.agenda_warning_note %}
55
{% filter center:72 %}{{ schedule.meeting.agenda_warning_note|striptags|wordwrap:72|safe }}{% endfilter %}
6+
{% endif %}{% if schedule.meeting.agenda_info_note %}
7+
{% filter center:72 %}{{ schedule.meeting.agenda_info_note|striptags|wordwrap:72|safe }}{% endfilter %}
68
{% endif %}
79
{% filter center:72 %}{{ schedule.meeting.date|date:"F j" }}-{% if schedule.meeting.date.month != schedule.meeting.end_date.month %}{{ schedule.meeting.end_date|date:"F " }}{% endif %}{{ schedule.meeting.end_date|date:"j, Y" }}{% endfilter %}
810
{% filter center:72 %}Updated {{ updated|date:"Y-m-d H:i:s T" }}{% endfilter %}

ietf/templates/meeting/no-agenda.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
{% filter center:72 %} Agenda of the {{ meeting.number|ordinal }} IETF Meeting {% endfilter %}
44
{% if meeting.agenda_warning_note %}
55
{% filter center:72 %}{{ meeting.agenda_warning_note|striptags|wordwrap:72|safe }}{% endfilter %}
6+
{% endif %}{% if meeting.agenda_info_note %}
7+
{% filter center:72 %}{{ meeting.agenda_info_note|striptags|wordwrap:72|safe }}{% endfilter %}
68
{% endif %}
79
{% filter center:72 %}{{ meeting.date|date:"F j" }}-{% if meeting.date.month != meeting.end_date.month %}{{ meeting.end_date|date:"F " }}{% endif %}{{ meeting.end_date|date:"j, Y" }}{% endfilter %}
810

0 commit comments

Comments
 (0)