2008-09-29 05:18:23 +02:00
<div class= "reports" id= "FormSubmissions" >
2008-09-29 07:33:43 +02:00
2009-04-15 06:23:43 +02:00
<% if Submissions %>
<ul class= "formSubmissionActions" >
<!-- @todo work out why url_handlers dont like /export/2 -->
<li><a href= "{$Top.Link}/export/?id={$RecordID}" ><% _t ( 'EXPORTSUBMISSIONS ', 'Export submissions to CSV ' ) %></a></li>
<li><a href= "{$Top.Link}/deletesubmissions/?id={$RecordID}" class= "deleteSubmission" ><% _t ( 'DELETEALLSUBMISSIONS ', 'Delete All Submissions ' ) %></a></li>
</ul>
<% control Submissions %>
<div class= "report" >
<h4 class= "submitted" ><% _t ( 'SUBMITTED ', 'Submitted at ' ) %> $Created . Nice . <a href= "{$Top.Link}/deletesubmission/?id={$ID}" class= "deleteSubmission" ><% _t ( 'DELETESUBMISSION ', 'Delete Submission ' ) %></a></h4>
<table>
<% control FieldValues %>
<tr>
<td class= "field" >$Title</td>
2009-04-20 01:22:22 +02:00
<td class= "value" >$Value . RAW</td>
2009-04-15 06:23:43 +02:00
</tr>
<% end_control %>
</table>
</div>
<% end_control %>
2009-07-02 23:18:16 +02:00
<% if Submissions . MoreThanOnePage %>
<div class= "pagination" >
<% if Submissions . NotFirstPage %>
2009-07-03 04:19:12 +02:00
<a class= "prev" href= "javascript:void(0)" onclick= "jQuery('.middleColumn').parent().load(jQuery('base').get(0).href+'/{$Top.Link}/getSubmissions/?start={$Submissions.PrevStart}');" title= "View the previous page" >Previous page</a>
2009-07-02 23:18:16 +02:00
<% end_if %>
<span>Viewing rows $Submissions . Start - $Submissions . StartPlusOffset of $Submissions . TotalCount rows</span>
<% if Submissions . NotLastPage %>
2009-07-03 04:19:12 +02:00
<a class= "next" href= "javascript:void(0)" onclick= "jQuery('#FormSubmissions').parent().load(jQuery('base').get(0).href+'/{$Top.Link}/getSubmissions/?start={$Submissions.NextStart}');" title= "View the next page" >Next page</a>
2009-07-02 23:18:16 +02:00
<% end_if %>
</div>
<% end_if %>
2009-04-15 06:23:43 +02:00
<% end_if %>
2009-07-27 01:23:45 +02:00
<p class= "noSubmissions" <% if Submissions %>style= "display: none" <% end_if %> " ><% _t ( 'NOSUBMISSIONS ', 'No Submissions ' ) %></p>
2008-09-29 05:18:23 +02:00
</div>