From 7f918b00da0a60faef3f7c70e4ec1cb7dff66211 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Wed, 15 Dec 2021 20:38:28 +0000 Subject: [PATCH] More test fixes - Legacy-Id: 19784 --- ietf/group/tests_info.py | 2 - ietf/static/js/edit-milestones.js | 4 +- ietf/static/js/list.js | 7 +- ietf/templates/group/meetings-row.html | 110 ++++++++++++++---------- ietf/templates/group/meetings.html | 113 +++++++++++++++---------- 5 files changed, 138 insertions(+), 98 deletions(-) diff --git a/ietf/group/tests_info.py b/ietf/group/tests_info.py index 712dd305c..de073e257 100644 --- a/ietf/group/tests_info.py +++ b/ietf/group/tests_info.py @@ -1167,7 +1167,6 @@ class MilestoneTests(TestCase): 'm-1-desc': "Test 3", 'm-1-due': due.strftime("%B %Y"), 'm-1-resolved': "", - 'm-1-docs': "", 'action': "save", }) self.assertEqual(r.status_code, 302) @@ -1404,7 +1403,6 @@ class DatelessMilestoneTests(TestCase): 'm-1-desc': "Test 3", 'm-1-order': 1, 'm-1-resolved': "", - 'm-1-docs': "", 'action': "save", }) self.assertEqual(r.status_code, 302) diff --git a/ietf/static/js/edit-milestones.js b/ietf/static/js/edit-milestones.js index 40633692d..e5e3c703e 100644 --- a/ietf/static/js/edit-milestones.js +++ b/ietf/static/js/edit-milestones.js @@ -142,12 +142,12 @@ $(document) .closest(".edit-milestone") .find("[name$=resolved]"); if (resolved) { - reason.closest(".form-group") + reason.closest(".row") .removeClass("visually-hidden"); if (!reason.val()) reason.val(reason.data("default")); } else { - reason.closest(".form-group") + reason.closest(".row") .addClass("visually-hidden"); reason.val(""); } diff --git a/ietf/static/js/list.js b/ietf/static/js/list.js index dbd45988c..dde92c3df 100644 --- a/ietf/static/js/list.js +++ b/ietf/static/js/list.js @@ -20,7 +20,8 @@ function replace_with_internal(table, internal_table, i) { .replaceWith(internal_table[i] .children("table") .children("tbody") - .clone());} + .clone()); +} function field_magic(i, e, fields) { if (fields[i] == "date" || fields[i] == "num") { @@ -172,10 +173,12 @@ $(document) } list_instance.push( - new List(hook, { + new List(hook, pagination ? { valueNames: fields, pagination: pagination, page: items_per_page + } : { + valueNames: fields })); }); diff --git a/ietf/templates/group/meetings-row.html b/ietf/templates/group/meetings-row.html index 330eaab4e..5544409e8 100644 --- a/ietf/templates/group/meetings-row.html +++ b/ietf/templates/group/meetings-row.html @@ -1,47 +1,65 @@ - - - {% for s in sessions %} - - - - - - - + + - {% endfor %} - -
- {% ifchanged s.meeting %} - {% if s.meeting.type.slug == 'ietf' %} - IETF {{s.meeting.number}} - {% else %} - {{s.meeting.number}} - {% endif %} - {% endifchanged %} - - {% if s.name %}{{ s.name }}
{% endif %} - {% if s.current_status == "sched" %} - {{s.time|date:"D"}}   {{s.time|date:"Y-m-d"}} - {% else %} - {{s.current_status_name}} - {% endif %} - {% if show_request and s.meeting.type_id == 'ietf' %} - {% if can_edit %} -
- Edit Session Request - {% endif %} - {% endif %} -
- {% if show_ical %} - {% if s.meeting.type_id == 'ietf' %} - {{s.time|date:"H:i"}} -   - {% else %} -   - {% endif %} - {% endif %} - {% if s.agenda %}Agenda{% endif %}{% if s.minutes %}Minutes{% endif %} - - {% if can_always_edit or can_edit_materials %}Edit {% endif %}Materials +{# bs5ok #} +{% for s in sessions %} +
+ {% if s.meeting.type.slug == 'ietf' %} + IETF {{ s.meeting.number }} + {% else %} + {{ s.meeting.number }} + {% endif %} + + {% if s.name %}{{ s.name }}{% endif %} + {% if s.current_status == "sched" %} + {{ s.time|date:"Y-m-d" }} + {% else %} + {{ s.current_status_name }} + {% endif %} + {% if show_request and s.meeting.type_id == 'ietf' %} + {% if can_edit %} + + Edit Session Request -
\ No newline at end of file + {% endif %} + {% endif %} + + + {% if s.current_status == "sched" %}{{ s.time|date:"D" }}{% endif %} + + + {% if show_ical %} + {% if s.meeting.type_id == 'ietf' %} + {{ s.time|date:"H:i" }} + + + + {% else %} + + + + {% endif %} + {% endif %} + + Agenda + + + Minutes + + + Materials + + {% if can_always_edit or can_edit_materials %} + + Edit Materials + + {% endif %} + + +{% endfor %} diff --git a/ietf/templates/group/meetings.html b/ietf/templates/group/meetings.html index e0793e0be..c805d7359 100644 --- a/ietf/templates/group/meetings.html +++ b/ietf/templates/group/meetings.html @@ -1,67 +1,88 @@ +{# bs5ok #} {% extends "group/group_base.html" %} {# Copyright The IETF Trust 2015, All Rights Reserved #} {% load origin %} - -{% block title %}Meetings{% if group %} for {{group.acronym}}{% endif %}{% endblock %} - +{% block title %} + Meetings + {% if group %}for {{ group.acronym }}{% endif %} +{% endblock %} {% block buttonlist %} {{ block.super }} -
- Session requests + Session requests {% if can_edit or can_always_edit %} Request a session - Request an interim meeting + + Request an interim meeting + {% endif %} {% endblock buttonlist %} - {% block group_content %} {% origin %} - {% if in_progress %} -
-
- Meetings in progress -
-
- {% with sessions=in_progress show_request=True show_ical=True can_edit_materials=can_edit %} +

Meetings in progress

+ {% with sessions=in_progress show_request=True show_ical=True can_edit_materials=can_edit %} + + + + + + + + + + {% include "group/meetings-row.html" %} - {% endwith %} - - + +
MeetingDateMaterials
+ {% endwith %} {% endif %} - {% if future %} -
-
- Future Meetings - -
-
+

+ Future Meetings + + + + + + + + + + + + {% with sessions=future show_request=True show_ical=True can_edit_materials=can_edit %} - {% include "group/meetings-row.html" %} + + {% include "group/meetings-row.html" %} + {% endwith %} - - - {% endif %} - - {% if past or recent %} -
-
- Past Meetings -
-
- {% if can_edit %} +
MeetingDateMaterials
+ {% endif %} + {% if past or recent %} +

Past Meetings

+ + + + + + + + + + {% with sessions=recent can_edit_materials=can_edit %} {% include "group/meetings-row.html" %} {% endwith %} + {% with sessions=past can_edit_materials=False %} + {% include "group/meetings-row.html" %} + {% endwith %} + +
MeetingDateMaterials
{% endif %} - {% with sessions=past can_edit_materials=False %} - {% include "group/meetings-row.html" %} - {% endwith %} -
-
- {% endif %} - -

This page shows meetings within the last four years. For earlier meetings, please see the proceedings.

- -{% endblock %} \ No newline at end of file +

+ This page shows meetings within the last four years. For earlier meetings, please see the proceedings. +

+ {% endblock %} \ No newline at end of file