app/soc/templates/soc/student_proposal/review.html
author Pawel Solyga <Pawel.Solyga@gmail.com>
Mon, 06 Apr 2009 10:11:44 +0000
changeset 2091 dd3eb2770205
parent 2088 353d73af0ba6
child 2102 5bc22dd22ecb
permissions -rw-r--r--
Make "Mark as Ineligible" reversable and make this feature available for mentors too. Now also with every click on "Mark as Ineligible" or "Mark as Eligible" button a private comment is posted with message "Marked Student Proposal as Ineligible/Eligible" which will help keep track of the changes made by mentors/org admins. Patch by: Pawel Solyga 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 %}
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    54
  {% readonly_field_as_twoline_table_row entity.fields.abstract.label entity.abstract %}
1715
3ec1a9518452 Added the review capability to the student_proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1666
diff changeset
    55
  {% readonly_safe_field_as_twoline_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 />
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    63
<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
    64
<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
    65
2085
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
    66
<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
    67
  <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
    68
    <!-- 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
    69
    <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
    70
      <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
    71
        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
    72
      </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
    73
      <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
    74
        <select id="commenttypeselector" onchange="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
    75
          <option value="Public">Public Comment</option>
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
          <option value="Private">Private Comment</option>
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
         {% if is_org_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
    78
          <option value="Admin">Admin Comment</option>
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
         {% endif %} 
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>
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
    81
      </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
    82
    </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
    83
    <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
    84
      {% 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
    85
        {% 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
    86
      {% 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
    87
    </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
    88
    <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
    89
      {% 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
    90
        {% 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
    91
      {% 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
    92
    </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
    93
    <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
    94
      {% 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
    95
        {% 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
    96
      {% 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
    97
    </tbody>
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    98
  </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
    99
</div>
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   100
 <table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   101
  <tr>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   102
   <td colspan="4">&nbsp;</td>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   103
  </tr>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   104
  <tr>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   105
   <td> 
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   106
    <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
   107
   </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
   108
  </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
   109
  <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
   110
  <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
   111
  </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
   112
  <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
   113
   {% if add_me_as_mentor %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   114
   <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
   115
   <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
   116
     onclick="location.href='?mentor=1'"/>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   117
   </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
   118
   {% 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
   119
     {% 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
   120
     <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
   121
       <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
   122
       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
   123
     </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
   124
     {% endif %}
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   125
   {% 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
   126
   {% 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
   127
     {% 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
   128
     <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
   129
       <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
   130
       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
   131
     </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
   132
     {% 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
   133
     <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
   134
       <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
   135
       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
   136
     </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
   137
     {% 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
   138
   {% 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
   139
   </tr>
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   140
 </table>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   141
</form>
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   142
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
   143
<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
   144
<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
   145
{% 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
   146
  {% 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
   147
{% 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
   148
<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
   149
<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
   150
{% 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
   151
  {% 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
   152
{% 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
   153
<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
   154
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
   155
{% 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
   156
  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
   157
{% 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
   158
<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
   159
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
   160
  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
   161
  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
   162
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
  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
   164
  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
   165
  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
   166
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 publicCheckbox = document.getElementById("id_public");
2085
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   168
  var cssString = "studentproposalcomment-";
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   169
  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
   170
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
  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
   172
    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
   173
      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
   174
      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
   175
      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
   176
      publicCheckbox.checked = true;
2085
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   177
      cssString += "public";
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   178
      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
   179
      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
   180
    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
   181
      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
   182
      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
   183
      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
   184
      publicCheckbox.checked = false;
2085
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   185
      cssString += "private";
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   186
      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
   187
      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
   188
    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
   189
      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
   190
      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
   191
      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
   192
      publicCheckbox.checked = false;
2085
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   193
      cssString += "private";
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   194
      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
   195
      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
   196
    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
   197
      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
   198
      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
   199
      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
   200
  }
2085
2f04b8ec3b96 Use different colors for public/private comment widget
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2051
diff changeset
   201
  $($('#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
   202
}
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
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
// 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
   205
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
   206
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
   207
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
   208
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
   209
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
   210
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
// 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
   212
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
   213
</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
   214
1613
59e5cc89e509 Added student proposal review page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
   215
{% endblock %}