Added default Survey list templates for ProjectSurvey and GradingProjectSurvey.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/grading_project_survey/list/heading.html Thu Jul 02 18:35:57 2009 +0200
@@ -0,0 +1,9 @@
+<tr align="left">
+ <th>Path</th>
+ <th>Title</th>
+ <th>Link ID</th>
+ <th>Featured</th>
+ <th>Created By</th>
+ <th>Created On</th>
+ <th>Modified</th>
+</tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/grading_project_survey/list/results_heading.html Thu Jul 02 18:35:57 2009 +0200
@@ -0,0 +1,16 @@
+<tr align="left">
+ {% for property in properties %}
+ <th>{{ property }}</th>
+ {% endfor %}
+ <th>Taken By</th>
+
+ <th>Created On</th>
+
+ <th>Last Modified</th>
+
+ <th>Answer</th>
+
+ {% if grades %}
+ <th>Grade</th>
+ {% endif %}
+</tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/grading_project_survey/list/results_row.html Thu Jul 02 18:35:57 2009 +0200
@@ -0,0 +1,51 @@
+<tr class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
+onclick="return false; document.location.href='{{ list.redirect }}'" name="name">
+
+ {% for value in list.item.getValues %}
+ <td>
+ <div class="{{ value }}">
+ {{ value }}
+ </div>
+ </td>
+ {% endfor %}
+
+ <td>
+ <div class="author">
+ {{ list.item.user.link_id }}
+ </div>
+ </td>
+
+ <td>
+ <div class="created">
+ {{ list.item.created|date:"Y-m-d H:i" }}
+ </div>
+ </td>
+
+ <td>
+ <div class="modified">
+ {{ list.item.modified|date:"Y-m-d H:i" }}
+ </div>
+ </td>
+
+ <td>
+ <a class="fetch_answers" id="results_for_{{ list.item.user.link_id }}">View</a>
+ </td>
+
+ {% if grades %}
+ <td>
+ <div class="grade">
+ <select id="id_survey__{{ list.item.user.link_id }}__selection__grade"
+ name="id_survey__{{ list.item.user.link_id }}__selection__grade">
+
+ <option value='' {% ifequal list.item.grade '' %} selected="selected" {% endifequal %} >
+ None</option>
+ <option value='pass' {% ifequal list.item.grade 'Pass' %} selected="selected" {% endifequal %} >
+ Pass</option>
+ <option value='fail' {% ifequal list.item.grade 'Fail' %} selected="selected" {% endifequal %} >
+ Fail</option>
+
+ </select>
+ </div>
+ </td>
+ {% endif %}
+</tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/grading_project_survey/list/row.html Thu Jul 02 18:35:57 2009 +0200
@@ -0,0 +1,15 @@
+<tr class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
+ onclick="document.location.href='{{ list.redirect }}'" name="name">
+ <td align="right">
+ <div class="title">
+ <a class="noul"
+ href="{{ list.redirect }}">{{ list.item.scope_path}}/{{ list.item.link_id }}</a>
+ </div>
+ </td>
+ <td><div class="title">{{ list.item.title }}</div></td>
+ <td><div class="link_id">{{ list.item.link_id }}</div></td>
+ <td><div class="featured">{{ list.item.is_featured }}</div></td>
+ <td><div class="author">{{ list.item.author.link_id }}</div></td>
+ <td><div class="created">{{ list.item.created }}</div></td>
+ <td><div class="modified">{{ list.item.modified }}</div></td>
+</tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/project_survey/list/heading.html Thu Jul 02 18:35:57 2009 +0200
@@ -0,0 +1,9 @@
+<tr align="left">
+ <th>Path</th>
+ <th>Title</th>
+ <th>Link ID</th>
+ <th>Featured</th>
+ <th>Created By</th>
+ <th>Created On</th>
+ <th>Modified</th>
+</tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/project_survey/list/results_heading.html Thu Jul 02 18:35:57 2009 +0200
@@ -0,0 +1,16 @@
+<tr align="left">
+ {% for property in properties %}
+ <th>{{ property }}</th>
+ {% endfor %}
+ <th>Taken By</th>
+
+ <th>Created On</th>
+
+ <th>Last Modified</th>
+
+ <th>Answer</th>
+
+ {% if grades %}
+ <th>Grade</th>
+ {% endif %}
+</tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/project_survey/list/results_row.html Thu Jul 02 18:35:57 2009 +0200
@@ -0,0 +1,51 @@
+<tr class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
+onclick="return false; document.location.href='{{ list.redirect }}'" name="name">
+
+ {% for value in list.item.getValues %}
+ <td>
+ <div class="{{ value }}">
+ {{ value }}
+ </div>
+ </td>
+ {% endfor %}
+
+ <td>
+ <div class="author">
+ {{ list.item.user.link_id }}
+ </div>
+ </td>
+
+ <td>
+ <div class="created">
+ {{ list.item.created|date:"Y-m-d H:i" }}
+ </div>
+ </td>
+
+ <td>
+ <div class="modified">
+ {{ list.item.modified|date:"Y-m-d H:i" }}
+ </div>
+ </td>
+
+ <td>
+ <a class="fetch_answers" id="results_for_{{ list.item.user.link_id }}">View</a>
+ </td>
+
+ {% if grades %}
+ <td>
+ <div class="grade">
+ <select id="id_survey__{{ list.item.user.link_id }}__selection__grade"
+ name="id_survey__{{ list.item.user.link_id }}__selection__grade">
+
+ <option value='' {% ifequal list.item.grade '' %} selected="selected" {% endifequal %} >
+ None</option>
+ <option value='pass' {% ifequal list.item.grade 'Pass' %} selected="selected" {% endifequal %} >
+ Pass</option>
+ <option value='fail' {% ifequal list.item.grade 'Fail' %} selected="selected" {% endifequal %} >
+ Fail</option>
+
+ </select>
+ </div>
+ </td>
+ {% endif %}
+</tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/project_survey/list/row.html Thu Jul 02 18:35:57 2009 +0200
@@ -0,0 +1,15 @@
+<tr class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
+ onclick="document.location.href='{{ list.redirect }}'" name="name">
+ <td align="right">
+ <div class="title">
+ <a class="noul"
+ href="{{ list.redirect }}">{{ list.item.scope_path}}/{{ list.item.link_id }}</a>
+ </div>
+ </td>
+ <td><div class="title">{{ list.item.title }}</div></td>
+ <td><div class="link_id">{{ list.item.link_id }}</div></td>
+ <td><div class="featured">{{ list.item.is_featured }}</div></td>
+ <td><div class="author">{{ list.item.author.link_id }}</div></td>
+ <td><div class="created">{{ list.item.created }}</div></td>
+ <td><div class="modified">{{ list.item.modified }}</div></td>
+</tr>