tellform/public/modules/forms/admin/views/directiveViews/form/edit-submissions-form.client.view.html

142 lines
3.6 KiB
HTML
Raw Normal View History

<div class="submissions-table row container" ng-init="initFormSubmissions()">
2016-06-07 00:37:09 +00:00
<div class="row">
<div class="col-xs-4">
2016-06-16 00:38:22 +00:00
{{ 'TOTAL_VIEWS' | translate }}: {{myform.analytics.views}}
2016-06-07 00:37:09 +00:00
</div>
<div class="col-xs-4">
2016-06-16 00:38:22 +00:00
{{ 'SUBMISSIONS' | translate }}: {{myform.analytics.submissions}}
2016-06-07 00:37:09 +00:00
</div>
<div class="col-xs-4">
2016-06-16 00:38:22 +00:00
{{ 'CONVERSION_RATE' | translate }}: {{myform.analytics.conversionRate}}%
2016-06-07 00:37:09 +00:00
</div>
</div>
<br>
<div class="row">
<div class="col-xs-12">
<div class="col-xs-2">
2016-06-16 00:38:22 +00:00
<strong>{{ 'FIELD_TITLE' | translate }}</strong>
2016-06-07 00:37:09 +00:00
</div>
<div class="col-xs-2">
2016-06-16 00:38:22 +00:00
<strong>{{ 'FIELD_VIEWS' | translate }}</strong>
2016-06-07 00:37:09 +00:00
</div>
<div class="col-xs-4">
2016-06-16 00:38:22 +00:00
<strong>{{ 'FIELD_DROPOFF' | translate }}</strong>
2016-06-07 00:37:09 +00:00
</div>
</div>
<div class="col-xs-12" ng-repeat="fieldStats in myform.analytics.fields">
2015-08-18 21:44:36 +00:00
2016-06-07 00:37:09 +00:00
<div class="col-xs-2">
{{fieldStats.field.title}}
</div>
<div class="col-xs-2">
{{fieldStats.totalViews}}
</div>
<div class="col-xs-4">
{{fieldStats.dropoffRate}}%
</div>
</div>
</div>
<br>
2015-08-18 21:44:36 +00:00
<div class="row">
<div class="col-xs-2">
<button class="btn btn-danger" ng-click="deleteSelectedSubmissions()" ng-disabled="!isAtLeastOneChecked();">
2016-06-16 00:38:22 +00:00
<i class="fa fa-trash-o"></i> {{ 'DELETE_SELECTED' | translate }}
2015-08-18 21:44:36 +00:00
</button>
</div>
<div class="col-xs-2 col-xs-offset-4 text-right">
2016-05-17 00:47:34 +00:00
<button class="btn btn-default" ng-click="exportSubmissions('xml')">
2016-06-16 00:38:22 +00:00
<small>{{ 'EXPORT_TO_EXCEL' | translate }}</small>
2015-08-18 21:44:36 +00:00
</button>
</div>
<div class="col-md-2 text-right">
<button class="btn btn-default" ng-click="exportSubmissions('csv')">
2016-06-16 00:38:22 +00:00
<small>{{ 'EXPORT_TO_CSV' | translate }}</small>
2015-08-18 21:44:36 +00:00
</button>
</div>
<div class="col-md-2 text-right">
<button class="btn btn-default" ng-click="exportSubmissions('json')">
2016-06-16 00:38:22 +00:00
<small>{{ 'EXPORT_TO_JSON' | translate }}</small>
2015-08-18 21:44:36 +00:00
</button>
</div>
</div>
<div class="row table-outer">
<div class="col-xs-12">
<table id="table-submission-data" class="table table-striped table-hover table-condensed">
<thead>
<tr>
<th>
<input ng-model="table.masterChecker" ng-change="toggleAllCheckers()" type="checkbox"/>
</th>
<th>#</th>
<th data-ng-repeat="(key, value) in myform.form_fields">
{{value.title}}
</th>
<th>
2016-06-16 00:38:22 +00:00
{{ 'PERCENTAGE_COMPLETE' | translate }}
2015-08-18 21:44:36 +00:00
</th>
<th>
2016-06-16 00:38:22 +00:00
{{ 'TIME_ELAPSED' | translate }}
2015-08-18 21:44:36 +00:00
</th>
<th>
2016-06-16 00:38:22 +00:00
{{ 'DEVICE' | translate }}
</th>
<th>
2016-06-16 00:38:22 +00:00
{{ 'LOCATION' | translate }}
</th>
<th>
2016-06-16 00:38:22 +00:00
{{ 'IP_ADDRESS' | translate }}
</th>
2015-08-18 21:44:36 +00:00
<th>
2016-06-16 00:38:22 +00:00
{{ 'DATE_SUBMITTED' | translate }} (UTC)
2015-08-18 21:44:36 +00:00
</th>
<th ng-if="myform.autofillPDFs">
2016-06-16 00:38:22 +00:00
{{ 'GENERATED_PDF' | translate }}
2015-08-18 21:44:36 +00:00
</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="row in table.rows" ng-click="rowClicked($index)" ng-class="{selected: row.selected === true}">
<td>
<input ng-model="row.selected" type="checkbox"/>
</td>
<th class="scope">
{{$index+1}}
</th>
<td data-ng-repeat="field in row.form_fields">
2016-06-07 20:19:19 +00:00
{{field.fieldValue}}
2015-08-18 21:44:36 +00:00
</td>
<td>
{{row.percentageComplete}}%
</td>
<td>
{{row.timeElapsed}}
</td>
<td>
{{row.device.name}}, {{row.device.type}}
</td>
<td>
{{row.geoLocation.city}}, {{row.geoLocation.country}}
</td>
<td>
{{row.ipAddr}}
</td>
2015-08-18 21:44:36 +00:00
<td>
{{row.created | date:'yyyy-MM-dd HH:mm:ss'}}
</td>
<td ng-if="row.pdf">
2016-06-16 00:38:22 +00:00
<a href="{{row.pdfFilePath}}" download="{{row.pdf.name}}" target="_self">{{ 'GENERATED_PDF' | translate }}</a>
2015-08-18 21:44:36 +00:00
</td>
</tr>
</tbody>
</table>
</div>
</div>
2016-05-17 00:47:34 +00:00
</div>