2010-09-08 12:35:43 +02:00
<div id= "userforms-submissions" >
2008-09-29 07:33:43 +02:00
2009-04-15 06:23:43 +02:00
<% if Submissions %>
2010-09-08 12:35:43 +02:00
<ul class= "userforms-submission-actions" >
2009-04-15 06:23:43 +02:00
<li><a href= "{$Top.Link}/export/?id={$RecordID}" ><% _t ( 'EXPORTSUBMISSIONS ', 'Export submissions to CSV ' ) %></a></li>
2010-10-12 05:21:48 +02:00
<li><a href= "{$Top.Link}/deletesubmissions/?id={$RecordID}" class= "deleteAllSubmissions" ><% _t ( 'DELETEALLSUBMISSIONS ', 'Delete All Submissions ' ) %></a></li>
2009-04-15 06:23:43 +02:00
</ul>
2012-05-07 12:00:18 +02:00
<% loop Submissions %>
2010-09-08 12:35:43 +02:00
<div class= "userform-submission" >
<h4><% _t ( 'SUBMITTED ', 'Submitted at ' ) %> $Created . Nice . <a href= "{$Top.Link}/deletesubmission/?id={$ID}" class= "deleteSubmission" ><% _t ( 'DELETESUBMISSION ', 'Delete Submission ' ) %></a></h4>
2009-04-15 06:23:43 +02:00
<table>
2012-05-07 12:00:18 +02:00
<% loop Values %>
2009-04-15 06:23:43 +02:00
<tr>
<td class= "field" >$Title</td>
2010-05-16 05:55:03 +02:00
<td class= "value" >$FormattedValue</td>
2009-04-15 06:23:43 +02:00
</tr>
2012-05-07 12:00:18 +02:00
<% end_loop %>
2009-04-15 06:23:43 +02:00
</table>
</div>
2012-05-07 12:00:18 +02:00
<% end_loop %>
2010-09-08 12:35:43 +02:00
2009-07-02 23:18:16 +02:00
<% if Submissions . MoreThanOnePage %>
2010-09-08 12:35:43 +02:00
<div class= "userforms-submissions-pagination" >
2009-07-02 23:18:16 +02:00
<% if Submissions . NotFirstPage %>
2012-05-07 12:00:18 +02:00
<a class= "prev" href= "javascript:void(0)" onclick= "jQuery('#userforms-submissions').parent().load(jQuery('base').get(0).href+'/{$Top.Link}/getMoreSubmissions/?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 %>
2012-05-07 12:00:18 +02:00
<a class= "next" href= "javascript:void(0)" onclick= "jQuery('#userforms-submissions').parent().load(jQuery('base').get(0).href+'/{$Top.Link}/getMoreSubmissions/?start={$Submissions.NextStart}');" title= "View the next page" >Next page</a>
2009-07-02 23:18:16 +02:00
<% end_if %>
</div>
<% end_if %>
2012-05-07 12:00:18 +02:00
<% else %>
<p class= "userforms-nosubmissions" <% if Submissions %>style= "display: none" <% end_if %>><% _t ( 'NOSUBMISSIONS ', 'No Submissions ' ) %></p>
2009-04-15 06:23:43 +02:00
<% end_if %>
2010-10-12 05:21:48 +02:00
</div>