silverstripe-userforms/templates/SubmittedFormReportField.ss

45 lines
1.6 KiB
Scheme
Raw Normal View History

<div id="userforms-submissions">
<% if Submissions %>
<ul class="userforms-submission-actions">
2012-12-16 20:50:33 +01:00
<li><a href="$ExportLink"><% _t('EXPORTSUBMISSIONS', 'Export submissions to CSV') %></a></li>
<li><a href="$DeleteSubmissionsLink" class="deleteAllSubmissions"><% _t('DELETEALLSUBMISSIONS', 'Delete All Submissions') %></a></li>
</ul>
<h5>Name: $Name</h5>
<% loop Submissions %>
<div class="userform-submission">
<h5><% _t('SUBMITTED', 'Submitted at') %> {$Created.Nice} <a href="$DeleteLink($Up.Link)" class="deleteSubmission"><% _t('DELETESUBMISSION', 'Delete Submission') %></a></h5>
<% loop Values %>
<div id="Text_readonly" class="field readonly text">
<label class="left" for="Form_EditForm_Text_readonly">$Title</label>
<div class="middleColumn">
<span id="Form_EditForm_Text_readonly" class="readonly text">$FormattedValue</span>
</div>
</div>
<% end_loop %>
</div>
<% end_loop %>
<% if Submissions.MoreThanOnePage %>
<div class="userforms-submissions-pagination">
<span><% _t('PAGES', 'Pages') %>:</span>
<% loop Submissions.Pages() %>
<% if CurrentBool %>
$PageNum
<% else %>
<% if Link %>
<a href="{$Top.Link(getMoreSubmissions)}<% if $Top.LinkContainsParameter %>&<% else %>?<% end_if %>page=$PageNum">$PageNum</a>
<% else %>
...
<% end_if %>
<% end_if %>
<% end_loop %>
</div>
<% end_if %>
<% else %>
<p class="userforms-nosubmissions" <% if Submissions %>style="display: none"<% end_if %>><% _t('NOSUBMISSIONS', 'No Submissions') %></p>
<% end_if %>
</div>