app/soc/templates/soc/student_proposal/public.html
author Lennard de Rijk <ljvderijk@gmail.com>
Wed, 25 Mar 2009 15:16:50 +0000
changeset 2007 56da71f13f3a
parent 1914 b779c7b109ff
child 2102 5bc22dd22ecb
permissions -rw-r--r--
Show additional info link on Student Proposal pages. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1423
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     1
{% extends "soc/base.html" %}
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     2
{% comment %}
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     3
Licensed under the Apache License, Version 2.0 (the "License");
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     4
you may not use this file except in compliance with the License.
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     5
You may obtain a copy of the License at
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     6
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     7
  http://www.apache.org/licenses/LICENSE-2.0
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     8
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     9
Unless required by applicable law or agreed to in writing, software
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    10
distributed under the License is distributed on an "AS IS" BASIS,
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    12
See the License for the specific language governing permissions and
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    13
limitations under the License.
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    14
{% endcomment %}
1741
0da1285f5bc0 Public reviews are now shown on the public page for the student proposal.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1738
diff changeset
    15
{% load comments_helpers %}
1423
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    16
{% load forms_helpers %}
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    17
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    18
{% block header_title %}
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    19
{{ page_name }} "{{ entity.title }}" from {{ student_name }}
1840
bf2c705ead19 Changed the workflow for students regarding their proposals.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1752
diff changeset
    20
{% if edit_link %}
bf2c705ead19 Changed the workflow for students regarding their proposals.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1752
diff changeset
    21
<a href='{{ edit_link }}'>(Edit my Proposal)</a>
bf2c705ead19 Changed the workflow for students regarding their proposals.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1752
diff changeset
    22
{% endif %}
1423
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    23
{% endblock %}
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    24
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    25
{% 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
    26
<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
    27
   {% if is_subscribed %}
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
     <input style="font-weight: bold" type="button" value="Unsubscribe from 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
    30
       onclick="location.href='?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
    31
   </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
    32
   {% 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
    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
     <input style="font-weight: bold" type="button" value="Subscribe to 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
    35
       onclick="location.href='?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
    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
   {% 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
    38
</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
    39
1423
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    40
<p>
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    41
 <table>
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    42
  {% readonly_field_as_table_row entity.fields.title.label entity.title %}
1465
f3805525efda Updated student proposal templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1423
diff changeset
    43
  {% readonly_field_as_table_row "Student" student_name %}
1423
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    44
  {% readonly_field_as_twoline_table_row entity.fields.abstract.label entity.abstract %}
1738
452f16ebe8d2 Proposal public page now properly renders HTML content.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1465
diff changeset
    45
  {% 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
    46
  {% readonly_url_field_as_table_row entity.fields.additional_info.label entity.additional_info %}
1423
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    47
  {% readonly_field_as_table_row "Created on" entity.created_on %}
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    48
  {% readonly_field_as_table_row "Last Modified on" entity.last_modified_on %}
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    49
 </table>
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    50
</p>
1741
0da1285f5bc0 Public reviews are now shown on the public page for the student proposal.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1738
diff changeset
    51
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
    52
<hr />
1752
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    53
<form method="POST">
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    54
  <table>
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    55
    {% block form_table %}
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    56
      {% as_table form %}
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    57
    {% endblock %}
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    58
  </table>
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    59
 <table>
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    60
  <tr>
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    61
   <td colspan="4">&nbsp;</td>
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    62
  </tr>
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    63
  <tr>
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    64
   <td> 
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    65
    <input style="font-weight: bold" type="submit" value="Submit"/></span>
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    66
   </td>
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    67
  </tr>
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    68
 </table>
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    69
</form>
255117ccd6a0 The student proposal public page can now be used to place a public comment.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1741
diff changeset
    70
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
    71
<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
    72
<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
    73
{% 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
    74
  {% 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
    75
{% 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
    76
<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
    77
1423
54960277c85d Added student proposal view templates.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    78
{% endblock %}