diff --git a/pyconde/proposals/templates/proposals/proposal_detail.html b/pyconde/proposals/templates/proposals/proposal_detail.html
index 59488cf..f19f49f 100644
--- a/pyconde/proposals/templates/proposals/proposal_detail.html
+++ b/pyconde/proposals/templates/proposals/proposal_detail.html
@@ -33,6 +33,12 @@
{% trans "Description" %}
{{ proposal.description|markdown:"safe" }}
+{% if proposal.notes %}
+
+
{% trans "Notes" %}
+ {{ proposal.notes|markdown:"safe" }}
+
+{% endif %}
{% if proposal.kind.accepts_proposals %}
diff --git a/pyconde/reviews/forms.py b/pyconde/reviews/forms.py
index 13c8b95..86243aa 100644
--- a/pyconde/reviews/forms.py
+++ b/pyconde/reviews/forms.py
@@ -73,6 +73,7 @@ def init_from_proposal(cls, proposal):
'duration': proposal.duration,
'audience_level': proposal.audience_level,
'available_timeslots': proposal.available_timeslots.all(),
+ 'notes': proposal.notes,
}, kind_instance=proposal.kind)
return form
@@ -86,14 +87,15 @@ def __init__(self, *args, **kwargs):
del self.fields['track']
-class UpdateTutorialProposalForm(UpdateProposalForm):
+class UpdateTrainingProposalForm(UpdateProposalForm):
class Meta(object):
model = models.ProposalVersion
- fields = ['title', 'abstract', 'description', 'audience_level', 'tags']
+ fields = ['title', 'abstract', 'description', 'audience_level',
+ 'tags', 'notes']
def __init__(self, *args, **kwargs):
- super(UpdateTutorialProposalForm, self).__init__(*args, **kwargs)
- proposal_forms.TutorialSubmissionForm().customize_fields(form=self)
+ super(UpdateTrainingProposalForm, self).__init__(*args, **kwargs)
+ proposal_forms.TrainingSubmissionForm().customize_fields(form=self)
self.helper.layout = Layout(
Fieldset(_('General'),
Field('title', autofocus='autofocus'),
@@ -103,12 +105,13 @@ def __init__(self, *args, **kwargs):
Fieldset(_('Details'),
Field('audience_level'),
Field('tags'),
+ Field('notes'),
),
ButtonHolder(Submit('save', _("Save"), css_class="btn-primary"))
)
def customize_save(self, instance):
- instance.duration = conference_models.SessionDuration.current_objects.get(slug='tutorial')
+ instance.duration = conference_models.SessionDuration.current_objects.get(slug='training')
class CommentForm(forms.ModelForm):
diff --git a/pyconde/reviews/settings.py b/pyconde/reviews/settings.py
index a29c11f..5f08e12 100644
--- a/pyconde/reviews/settings.py
+++ b/pyconde/reviews/settings.py
@@ -6,7 +6,7 @@
PROPOSAL_UPDATE_FORMS = getattr(settings, 'REVIEWS_PROPOSAL_UPDATE_FORMS', {
'talk': 'pyconde.reviews.forms.UpdateTalkProposalForm',
- 'tutorial': 'pyconde.reviews.forms.UpdateTutorialProposalForm',
+ 'training': 'pyconde.reviews.forms.UpdateTrainingProposalForm',
})
RATING_MAPPING = getattr(settings, 'REVIEW_RATING_MAPPING', {
diff --git a/pyconde/reviews/templates/reviews/proposal_details.html b/pyconde/reviews/templates/reviews/proposal_details.html
index 77cb4fe..207c296 100644
--- a/pyconde/reviews/templates/reviews/proposal_details.html
+++ b/pyconde/reviews/templates/reviews/proposal_details.html
@@ -22,6 +22,17 @@
{% trans "Description" %}
{{ proposal.description|markdown:"safe" }}
{% endif %}
+
+ {% if proposal_version and proposal_version.notes or proposal.notes %}
+ {% trans "Notes" %}
+
+ {% if proposal_version %}
+ {{ proposal_version.notes|markdown:"safe" }}
+ {% else %}
+ {{ proposal.notes|markdown:"safe" }}
+ {% endif %}
+
+ {% endif %}
{% if can_update %}
diff --git a/pyconde/reviews/templates/reviews/proposalversion_detail.html b/pyconde/reviews/templates/reviews/proposalversion_detail.html
index bd20afa..b9e8d85 100644
--- a/pyconde/reviews/templates/reviews/proposalversion_detail.html
+++ b/pyconde/reviews/templates/reviews/proposalversion_detail.html
@@ -14,9 +14,16 @@
{% trans "Description" %}
{{ version.description|markdown:"safe" }}
+
+ {% if version.notes %}
+
{% trans "Notes" %}
+
+ {{ version.notes|markdown:"safe" }}
+
+ {% endif %}
{% endblock %}
{% block sidebar %}
{{ block.super }}
{% include "reviews/partials/versions_box.html" %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}