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

150 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">
Total Views: {{myform.analytics.views}}
</div>
<div class="col-xs-4">
Submissions: {{myform.analytics.submissions}}
</div>
<div class="col-xs-4">
Conversion Rate: {{myform.analytics.conversionRate}}%
</div>
</div>
<br>
<div class="row">
<div class="col-xs-12">
<div class="col-xs-2">
<strong>Field Title</strong>
</div>
<div class="col-xs-2">
<strong>Field Views</strong>
</div>
<div class="col-xs-4">
<strong>User dropoff rate at this field</strong>
</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();">
<i class="fa fa-trash-o"></i> Delete Selected
</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')">
2015-08-18 21:44:36 +00:00
<small>Export to Excel</small>
</button>
</div>
<div class="col-md-2 text-right">
<button class="btn btn-default" ng-click="exportSubmissions('csv')">
<small>Export to CSV</small>
</button>
</div>
<div class="col-md-2 text-right">
<button class="btn btn-default" ng-click="exportSubmissions('json')">
<small>Export to JSON</small>
</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>
2015-10-30 21:40:22 +00:00
<th ng-if="myform.plugins.oscarhost.baseUrl">
OscarEMR User Profile
</th>
2015-08-18 21:44:36 +00:00
<th>
Percentage Complete
</th>
<th>
Time Elapsed
</th>
<th>
Device
</th>
<th>
Location
</th>
<th>
IP Address
</th>
2015-08-18 21:44:36 +00:00
<th>
Date Submitted (UTC)
</th>
<th ng-if="myform.autofillPDFs">
Generated PDF
</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>
2015-10-30 21:40:22 +00:00
<td ng-if="myform.plugins.oscarhost.baseUrl">
<a href="{{myform.plugins.oscarhost.baseUrl.split('ws')[0]}}demographic/demographiccontrol.jsp?demographic_no={{row.oscarDemoNum}}&displaymode=edit">
User Profile #{{row.oscarDemoNum}}
</a>
</td>
2015-08-18 21:44:36 +00:00
<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">
<a href="{{row.pdfFilePath}}" download="{{row.pdf.name}}" target="_self">Generated PDF</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
2016-05-17 00:47:34 +00:00
</div>