* feat: Use session.id to specify session for api_set_session_video_url * feat: Use session.id to specify session for api_upload_bluesheet * refactor: Add audio/video stream and onsite tool URLs to Session model * refactor: Get onsite tool/stream URLs for agenda from Session * refactor: Use Session methods for onsite tool/stream a few more places * refactor: Move hard-coded meetecho URLs into settings.py * feat: Add has_onsite_flag to Session * chore: Set has_onsite_tool for sessions that had meetecho UrlResources * fix: Only show onsite tool URLs when Session.has_onsite_tool is True * test: Update test_api_upload_bluesheet to test deprecated version * fix: Fix test failure in api_upload_bluesheet view * test: Add test of new api_upload_bluesheet view * style: Apply Black style to test_api_upload_bluesheet * fix: Fix test failures in api_upload_bluesheet() * test: Update test_api_set_session_video_url to test deprecated version * fix: Fix test failure in api_set_session_video_url view * test: Add test of new api_set_session_video_url view * style: Apply Black styling to new test * fix: Fix test failures in api_set_session_video_url view * test: Fix test_meeting_agenda; set has_onsite_tool in SessionFactory * feat: Add has_onsite_tool to Session list in admin * feat: Add has_onsite_tool flag to SessionDetailsForm * feat: Add has_onsite_tool flag to sreq * feat: Show has_onsite_tool flag on secr view for a submitted request * feat: Only prompt for has_onsite_tool in sreq for non-wg type groups * fix: Clean up styling of sreq view a bit * chore: Renumber migrations
42 lines
2.2 KiB
HTML
42 lines
2.2 KiB
HTML
{# Copyright The IETF Trust 2007-2020, All Rights Reserved #}
|
|
<div class="session-details-form my-3" data-prefix="{{ form.prefix }}">
|
|
{% if hidden %}
|
|
{{ form.name.as_hidden }}{{ form.purpose.as_hidden }}{{ form.type.as_hidden }}{{ form.requested_duration.as_hidden }}
|
|
{{ form.has_onsite_tool.as_hidden }}
|
|
{% else %}
|
|
<table>
|
|
<tbody>
|
|
{% comment %}
|
|
The form-group class is used by session_details_form.js to identify the correct element
|
|
to hide the name / purpose / type fields when not needed. This is a bootstrap class - the
|
|
secr app does not use it, so this (and the hidden class, also needed by session_details_form.js)
|
|
are defined in edit.html and new.html as a kludge to make this work.
|
|
{% endcomment %}
|
|
<tr class="form-group">
|
|
<th scope="row">{{ form.name.label_tag }}</th>
|
|
<td>{{ form.name }}{{ form.purpose.errors }}</td>
|
|
</tr>
|
|
<tr class="form-group">
|
|
<th scope="row">{{ form.purpose.label_tag }}</th>
|
|
<td>
|
|
{{ form.purpose }} <div class="form-group">{{ form.type }}</div>
|
|
{{ form.purpose.errors }}{{ form.type.errors }}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{{ form.requested_duration.label_tag }}</th>
|
|
<td>{{ form.requested_duration }}{{ form.requested_duration.errors }}</td>
|
|
</tr>
|
|
{% if not hide_onsite_tool_prompt %}
|
|
<tr>
|
|
<th scope="row">{{ form.has_onsite_tool.label_tag }}</th>
|
|
<td>{{ form.has_onsite_tool }}{{ form.has_onsite_tool.errors }}</td>
|
|
</tr>
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
{% if hide_onsite_tool_prompt %}{{ form.has_onsite_tool.as_hidden }}{% endif %}
|
|
{% endif %}
|
|
{# hidden fields included whether or not the whole form is hidden #}
|
|
{{ form.attendees.as_hidden }}{{ form.comments.as_hidden }}{{ form.id.as_hidden }}{{ form.on_agenda.as_hidden }}{{ form.DELETE.as_hidden }}{{ form.remote_instructions.as_hidden }}{{ form.short.as_hidden }}{{ form.agenda_note.as_hidden }}
|
|
</div> |