app/soc/templates/soc/student_proposal/review.html
author Lennard de Rijk <ljvderijk@gmail.com>
Sun, 12 Apr 2009 16:09:00 +0000
changeset 2173 27731db8ab1e
parent 2135 cafa4caec14f
permissions -rw-r--r--
Added overview of private reviews to the Student Proposal review page. Addresses Issue 496. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     1
{% extends "soc/base.html" %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     2
{% comment %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     3
Licensed under the Apache License, Version 2.0 (the "License");
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     4
you may not use this file except in compliance with the License.
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     5
You may obtain a copy of the License at
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     6
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     7
  http://www.apache.org/licenses/LICENSE-2.0
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     8
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     9
Unless required by applicable law or agreed to in writing, software
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    10
distributed under the License is distributed on an "AS IS" BASIS,
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    12
See the License for the specific language governing permissions and
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    13
limitations under the License.
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    14
{% endcomment %}
1739
19f1bb7ae615 Some style fixes for the student proposal review template.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1715
diff changeset
    15
{% load comments_helpers %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    16
{% load forms_helpers %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    17
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    18
{% block header_title %}
2012
852418be1719 Student Proposal Review template now has the right header_title.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2010
diff changeset
    19
{{ page_name }} (Score: {{ entity.score }})
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    20
{% endblock %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    21
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    22
{% block body %}
1914
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    23
<table>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    24
 {% if is_subscribed_public %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    25
 <td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    26
   <input style="font-weight: bold" type="button" value="Unsubscribe from public updates"
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    27
     onclick="location.href='?public_subscription=off'"/>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    28
 </td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    29
 {% else %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    30
 <td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    31
   <input style="font-weight: bold" type="button" value="Subscribe to public updates"
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    32
     onclick="location.href='?public_subscription=on'"/>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    33
 </td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    34
 {% endif %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    35
 {% if is_subscribed_private %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    36
 <td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    37
   <input style="font-weight: bold" type="button" value="Unsubscribe from private updates"
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    38
     onclick="location.href='?private_subscription=off'"/>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    39
 </td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    40
 {% else %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    41
 <td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    42
   <input style="font-weight: bold" type="button" value="Subscribe to private updates"
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    43
     onclick="location.href='?private_subscription=on'"/>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    44
 </td>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    45
 {% endif %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    46
</table>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    47
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    48
<p>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    49
 <table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    50
  {% readonly_field_as_table_row entity.fields.title.label entity.title %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    51
  {% readonly_field_as_table_row "Student" student_name %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    52
  {% readonly_field_as_table_row "Mentor" mentor_name %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    53
  {% readonly_field_as_table_row "Possible Mentors" possible_mentors %}
2102
5bc22dd22ecb Fixed wrong usage of twoline_field in proposal view
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2091
diff changeset
    54
  {% readonly_field_as_table_row entity.fields.abstract.label entity.abstract %}
5bc22dd22ecb Fixed wrong usage of twoline_field in proposal view
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2091
diff changeset
    55
  {% readonly_safe_field_as_table_row entity.fields.content.label entity.content %}
2007
56da71f13f3a Show additional info link on Student Proposal pages.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1914
diff changeset
    56
  {% readonly_url_field_as_table_row entity.fields.additional_info.label entity.additional_info %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    57
  {% readonly_field_as_table_row "Created on" entity.created_on %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    58
  {% readonly_field_as_table_row "Last Modified on" entity.last_modified_on %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    59
 </table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    60
</p>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    61
1914
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
    62
<hr />
2173
27731db8ab1e Added overview of private reviews to the Student Proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2135
diff changeset
    63
<b>Summary of Reviews</b>:
27731db8ab1e Added overview of private reviews to the Student Proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2135
diff changeset
    64
{% for key, value in review_summary.items %}
27731db8ab1e Added overview of private reviews to the Student Proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2135
diff changeset
    65
    <li>{{ value.name }} ({{ value.total_comments }} posts, {{ value.total_score }} points)</li>
27731db8ab1e Added overview of private reviews to the Student Proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2135
diff changeset
    66
{% endfor %}
27731db8ab1e Added overview of private reviews to the Student Proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2135
diff changeset
    67
27731db8ab1e Added overview of private reviews to the Student Proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2135
diff changeset
    68
<hr />
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    69
<form method="POST">
2051
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    70
<b>Score and Review</b>
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    71
2085
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
    72
<div class="box">
2051
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    73
  <table id="commentcommon">
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    74
    <!-- By default this is not displayed, so that all options work on non-javascript browsers -->
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    75
    <tr style="display: none;">
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    76
      <td class="formfieldlabel">
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    77
        Comment Type:
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    78
      </td>
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    79
      <td class="formfieldvalue" colspan=3>
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    80
        <select id="commenttypeselector" onchange="commentType();">
2135
cafa4caec14f Make "Private Comment" first in the selection box on Student Proposal review page.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2110
diff changeset
    81
          <option value="Private">Private Comment</option>
cafa4caec14f Make "Private Comment" first in the selection box on Student Proposal review page.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2110
diff changeset
    82
          {% if is_org_admin %}
cafa4caec14f Make "Private Comment" first in the selection box on Student Proposal review page.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2110
diff changeset
    83
           <option value="Admin">Admin Comment</option>
cafa4caec14f Make "Private Comment" first in the selection box on Student Proposal review page.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2110
diff changeset
    84
          {% endif %}
2110
ac91ff4fc313 Change the dropdown menu to state Comment Visible to Student.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2102
diff changeset
    85
          <option value="Public">Comment Visible to Student</option>
2051
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    86
        </select>
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    87
      </td>
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    88
    </tr>
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    89
    <tbody id="commentpublic">
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    90
      {% block comment_public_form_table %}
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    91
        {% as_table comment_public %}
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    92
      {% endblock %}
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    93
    </tbody>
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    94
    <tbody id="commentprivate">
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    95
      {% block comment_private_form_table %}
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    96
        {% as_table comment_private %}
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    97
      {% endblock %}
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    98
    </tbody>
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
    99
    <tbody id="commentadmin">
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   100
      {% block comment_admin_form_table %}
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   101
        {% as_table comment_admin %}
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   102
      {% endblock %}
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   103
    </tbody>
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   104
  </table>
2051
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   105
</div>
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   106
 <table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   107
  <tr>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   108
   <td colspan="4">&nbsp;</td>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   109
  </tr>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   110
  <tr>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   111
   <td> 
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   112
    <input style="font-weight: bold" type="submit" value="Submit"/></span>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   113
   </td>
2010
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
   114
  </tr>
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
   115
  <tr>
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
   116
  <td><b>Other Options:</b></td>
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
   117
  </tr>
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
   118
  <tr>
1666
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
   119
   {% if add_me_as_mentor %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   120
   <td>
1666
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
   121
   <input style="font-weight: bold" type="button" value="I am willing to mentor this student"
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   122
     onclick="location.href='?mentor=1'"/>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   123
   </td>
1666
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
   124
   {% else %} 
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
   125
     {% if remove_me_as_mentor %}
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
   126
     <td>
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
   127
       <input style="font-weight: bold" type="button" value="I am no longer willing to mentor this student"
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
   128
       onclick="location.href='?mentor=0'"/>
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
   129
     </td>
cdb7e5581694 Mentor buttons only show up depending on if you are already on the possible mentors list.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1613
diff changeset
   130
     {% endif %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   131
   {% endif %}
2091
dd3eb2770205 Make "Mark as Ineligible" reversable and make this feature available for mentors too.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2088
diff changeset
   132
   {% if is_org_admin or is_mentor %}
dd3eb2770205 Make "Mark as Ineligible" reversable and make this feature available for mentors too.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2088
diff changeset
   133
     {% ifequal entity.status "invalid" %}
dd3eb2770205 Make "Mark as Ineligible" reversable and make this feature available for mentors too.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2088
diff changeset
   134
     <td>
dd3eb2770205 Make "Mark as Ineligible" reversable and make this feature available for mentors too.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2088
diff changeset
   135
       <input style="font-weight: bold" type="button" value="Mark as Eligible"
dd3eb2770205 Make "Mark as Ineligible" reversable and make this feature available for mentors too.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2088
diff changeset
   136
       onclick="if (confirm('Are you sure you want to mark this proposal as eligible?')) { location.href='?ineligible=0'; }"/>
dd3eb2770205 Make "Mark as Ineligible" reversable and make this feature available for mentors too.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2088
diff changeset
   137
     </td>
dd3eb2770205 Make "Mark as Ineligible" reversable and make this feature available for mentors too.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2088
diff changeset
   138
     {% else %}
1779
cdd11aa8dbc7 Org admins can mark a StudentProposal as invalid if they for any reason find it ineligible.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1739
diff changeset
   139
     <td>
cdd11aa8dbc7 Org admins can mark a StudentProposal as invalid if they for any reason find it ineligible.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1739
diff changeset
   140
       <input style="font-weight: bold" type="button" value="Mark as Ineligible"
2091
dd3eb2770205 Make "Mark as Ineligible" reversable and make this feature available for mentors too.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2088
diff changeset
   141
       onclick="if (confirm('Are you sure you want to mark this proposal as ineligible?')) { location.href='?ineligible=1'; }"/>
1779
cdd11aa8dbc7 Org admins can mark a StudentProposal as invalid if they for any reason find it ineligible.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1739
diff changeset
   142
     </td>
2091
dd3eb2770205 Make "Mark as Ineligible" reversable and make this feature available for mentors too.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2088
diff changeset
   143
     {% endifequal %}
1779
cdd11aa8dbc7 Org admins can mark a StudentProposal as invalid if they for any reason find it ineligible.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1739
diff changeset
   144
   {% endif %}
2010
b380c64085ef Made the Student Proposal review page more clear by separating the submit button from the other buttons.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2007
diff changeset
   145
   </tr>
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   146
 </table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   147
</form>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   148
1914
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   149
<hr />
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   150
<b>Public Reviews</b>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   151
{% for review in public_reviews %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   152
  {% as_student_proposal_review review student %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   153
{% endfor %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   154
<hr />
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   155
<b>Private Reviews</b>
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   156
{% for review in private_reviews %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   157
  {% as_student_proposal_review review student %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   158
{% endfor %}
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   159
<hr />
b779c7b109ff Moved subscription buttons to the top and comment placing to the bottom for StudentProposal review and public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1898
diff changeset
   160
2051
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   161
{% comment %}
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   162
  TODO(pawel.solyga): Put this javascript into separate file
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   163
{% endcomment %}
2088
353d73af0ba6 Fix posting public comments as private in student proposals review.html template.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2085
diff changeset
   164
<script type="text/javascript">
2051
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   165
function commentType() {
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   166
  var commentTypeSelector = document.getElementById("commenttypeselector");
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   167
  var type = commentTypeSelector[commentTypeSelector.options.selectedIndex].value;
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   168
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   169
  var commentPublic = document.getElementById("commentpublic");
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   170
  var commentPrivate = document.getElementById("commentprivate");
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   171
  var commentAdmin = document.getElementById("commentadmin");
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   172
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   173
  var publicCheckbox = document.getElementById("id_public");
2085
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   174
  var cssString = "studentproposalcomment-";
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   175
  var cssRemoveString = "studentproposalcomment-";
2051
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   176
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   177
  switch (type) {
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   178
    case "Public":
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   179
      commentPublic.style.display = "";
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   180
      commentPrivate.style.display = "none";
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   181
      commentAdmin.style.display = "none";
2088
353d73af0ba6 Fix posting public comments as private in student proposals review.html template.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2085
diff changeset
   182
      publicCheckbox.checked = true;
2085
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   183
      cssString += "public";
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   184
      cssRemoveString += "private";
2051
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   185
      break;
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   186
    case "Private":
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   187
      commentPublic.style.display = "";
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   188
      commentPrivate.style.display = "";
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   189
      commentAdmin.style.display = "none";
2088
353d73af0ba6 Fix posting public comments as private in student proposals review.html template.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2085
diff changeset
   190
      publicCheckbox.checked = false;
2085
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   191
      cssString += "private";
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   192
      cssRemoveString += "public";
2051
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   193
      break;
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   194
    case "Admin":
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   195
      commentPublic.style.display = "";
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   196
      commentPrivate.style.display = "";
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   197
      commentAdmin.style.display = "";
2088
353d73af0ba6 Fix posting public comments as private in student proposals review.html template.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2085
diff changeset
   198
      publicCheckbox.checked = false;
2085
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   199
      cssString += "private";
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   200
      cssRemoveString += "public";
2051
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   201
      break;
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   202
    default:
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   203
      alert("Unknown value");
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   204
      alert(type);
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   205
      break;
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   206
  }
2085
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   207
  $($('#commenttypeselector').parents('.box').get(0)).removeClass(cssRemoveString).addClass(cssString);
2051
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   208
}
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   209
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   210
// Set the comment type selector to be displayed
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   211
var commentTypeSelector = document.getElementById("commenttypeselector");
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   212
commentTypeSelector.parentNode.parentNode.style.display = "";
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   213
commentTypeSelector.options.selectedIndex = 0;
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   214
var publicCheckbox = document.getElementById("id_public");
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   215
publicCheckbox.parentNode.parentNode.style.display = "none";
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   216
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   217
// Set the comment view to default to what ever is selected
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   218
commentType();
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   219
</script>
cecbef1289a5 Make the mentor and organization admin comment submission on student proposal nicer. Now drop down box allows you to select comment type and based on selected type and your current Role shows you available comment options. Left TODO to put inline JS into separate JS file.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2028
diff changeset
   220
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   221
{% endblock %}