Added meeting.agenda_info_note. Commit ready for merge.

- Legacy-Id: 15550
This commit is contained in:
Robert Sparks 2018-10-09 22:08:45 +00:00
parent c9e1474076
commit d179db39d4
7 changed files with 66 additions and 1 deletions

View file

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-10-09 14:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('meeting', '0008_rename_meeting_agenda_note'),
]
operations = [
migrations.AddField(
model_name='meeting',
name='agenda_info_note',
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.'),
),
migrations.AlterField(
model_name='meeting',
name='agenda_warning_note',
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.'),
),
]

View file

@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-10-09 14:23
from __future__ import unicode_literals
from django.db import migrations
def forward(apps,schema_editor):
Meeting = apps.get_model('meeting','Meeting')
Meeting.objects.filter(number=103).update(agenda_info_note=
'To see the list of unofficial side meetings, or to reserve meeting '
'space, please see the '
'<a href="https://trac.ietf.org/trac/ietf/meeting/wiki/103sidemeetings">'
'meeting wiki</a>.'
)
def reverse(apps,schema_editor):
Meeting = apps.get_model('meeting','Meeting')
Meeting.objects.filter(number=103).update(agenda_info_note="")
class Migration(migrations.Migration):
dependencies = [
('meeting', '0009_add_agenda_info_note'),
]
operations = [
migrations.RunPython(forward,reverse),
]

View file

@ -93,7 +93,8 @@ class Meeting(models.Model):
venue_addr = models.TextField(blank=True)
break_area = models.CharField(blank=True, max_length=255)
reg_area = models.CharField(blank=True, max_length=255)
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.")
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.")
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.")
agenda = ForeignKey('Schedule',null=True,blank=True, related_name='+')
session_request_lock_message = models.CharField(blank=True,max_length=255) # locked if not empty
proceedings_final = models.BooleanField(default=False, help_text=u"Are the proceedings for this meeting complete?")

View file

@ -40,6 +40,7 @@ class MeetingResource(ModelResource):
"venue_addr": ALL,
"break_area": ALL,
"reg_area": ALL,
"agenda_info_note": ALL,
"agenda_warning_note": ALL,
"session_request_lock_message": ALL,
"type": ALL_WITH_RELATIONS,

View file

@ -54,6 +54,12 @@
<b>Note:</b> IETF agendas are subject to change, up to and during a meeting.
</p>
{% if schedule.meeting.agenda_info_note %}
<p class="alert alert-info">
{{ schedule.meeting.agenda_info_note|removetags:"h1"|safe }}
</p>
{% endif %}
<div class="panel-group" id="accordion">
<div class="panel panel-default">

View file

@ -3,6 +3,8 @@
{% filter center:72 %} Agenda of the {{ schedule.meeting.number|ordinal }} IETF Meeting {% endfilter %}
{% if schedule.meeting.agenda_warning_note %}
{% filter center:72 %}{{ schedule.meeting.agenda_warning_note|striptags|wordwrap:72|safe }}{% endfilter %}
{% endif %}{% if schedule.meeting.agenda_info_note %}
{% filter center:72 %}{{ schedule.meeting.agenda_info_note|striptags|wordwrap:72|safe }}{% endfilter %}
{% endif %}
{% 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 %}
{% filter center:72 %}Updated {{ updated|date:"Y-m-d H:i:s T" }}{% endfilter %}

View file

@ -3,6 +3,8 @@
{% filter center:72 %} Agenda of the {{ meeting.number|ordinal }} IETF Meeting {% endfilter %}
{% if meeting.agenda_warning_note %}
{% filter center:72 %}{{ meeting.agenda_warning_note|striptags|wordwrap:72|safe }}{% endfilter %}
{% endif %}{% if meeting.agenda_info_note %}
{% filter center:72 %}{{ meeting.agenda_info_note|striptags|wordwrap:72|safe }}{% endfilter %}
{% endif %}
{% 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 %}