2015-07-02 02:49:35 +00:00
|
|
|
<section data-ng-controller="ViewFormController" data-ng-init="findOne()" class="container admin-form">
|
|
|
|
<div class="page-header row" style="padding-bottom: 0px;">
|
2015-07-07 01:21:43 +00:00
|
|
|
<div class="col-xs-6">
|
2015-07-07 02:52:55 +00:00
|
|
|
<h1 data-ng-bind="myform.title" style="margin-bottom: 0px;"></h1>
|
2015-07-02 02:49:35 +00:00
|
|
|
</div>
|
2015-07-07 02:52:55 +00:00
|
|
|
<div class="col-xs-2 col-xs-offset-2">
|
2015-07-02 02:49:35 +00:00
|
|
|
<small class=" pull-right">
|
2015-07-07 02:52:55 +00:00
|
|
|
<button class="btn btn-danger" ng-click="remove()"><i class="fa fa-trash-o"></i> Delete Form</button>
|
2015-07-07 01:21:43 +00:00
|
|
|
</small>
|
|
|
|
</div>
|
2015-07-07 02:52:55 +00:00
|
|
|
<div class="col-xs-2">
|
2015-07-07 01:21:43 +00:00
|
|
|
<small class=" pull-right">
|
2015-07-21 23:25:45 +00:00
|
|
|
<a class="btn btn-default" href="/#!/forms/{{myform._id}}">
|
2015-07-07 01:21:43 +00:00
|
|
|
<span ng-show="myform.isLive">View Live</span> <span ng-hide="myform.isLive">Preview</span> Form
|
|
|
|
<i class="status-light status-light-on fa fa-dot-circle-o" ng-show="myform.isLive"></i>
|
|
|
|
<i class="status-light status-light-off fa fa-dot-circle-o" ng-hide="myform.isLive"></i>
|
2015-07-02 02:49:35 +00:00
|
|
|
<!-- <i class="fa fa-sign-out"></i> -->
|
|
|
|
</a>
|
|
|
|
</small>
|
|
|
|
</div>
|
2015-06-29 22:51:29 +00:00
|
|
|
</div>
|
2015-07-02 02:49:35 +00:00
|
|
|
|
|
|
|
<div class="row">
|
2015-07-03 23:47:14 +00:00
|
|
|
<!-- <div > -->
|
|
|
|
<tabset class="col-xs-12">
|
|
|
|
<tab>
|
|
|
|
<tab-heading>
|
|
|
|
Edit Form Fields
|
|
|
|
</tab-heading>
|
2015-07-07 02:52:55 +00:00
|
|
|
<edit-form-directive myform="myform" user="user"></edit-form-directive>
|
2015-07-03 23:47:14 +00:00
|
|
|
</tab>
|
2015-07-04 03:25:25 +00:00
|
|
|
<tab disabled="true">
|
|
|
|
<tab-heading >
|
2015-07-03 23:47:14 +00:00
|
|
|
Edit Design
|
|
|
|
</tab-heading>
|
2015-07-07 02:52:55 +00:00
|
|
|
<edit-form-directive myform="myform" user="user"></edit-form-directive>
|
2015-07-03 23:47:14 +00:00
|
|
|
</tab>
|
|
|
|
<tab>
|
|
|
|
<tab-heading>
|
|
|
|
Configure
|
|
|
|
</tab-heading>
|
2015-07-07 02:52:55 +00:00
|
|
|
<configure-form-directive myform="myform" user="user"></configure-form-directive>
|
2015-07-03 23:47:14 +00:00
|
|
|
</tab>
|
|
|
|
<tab data-ng-click="showSubmissions()">
|
|
|
|
<tab-heading>
|
|
|
|
View Submissions
|
|
|
|
</tab-heading>
|
|
|
|
<div class="submissions-table" ng-show="viewSubmissions">
|
2015-07-27 18:11:43 +00:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-1">
|
|
|
|
<button class="btn btn-danger" ng-click="deleteSelectedSubmissions()" ng-disabled="!isAtLeastOneChecked();"><i class="fa fa-trash-o"></i> Delete Selected</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2015-07-03 23:47:14 +00:00
|
|
|
<table class="table table-striped table-hover table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<input ng-model="table.masterChecker" ng-change="toggleAllCheckers()" type="checkbox"/>
|
|
|
|
</th>
|
|
|
|
<th>#</th>
|
2015-07-21 23:25:45 +00:00
|
|
|
<th data-ng-repeat="(key, value) in myform.form_fields">
|
2015-07-03 23:47:14 +00:00
|
|
|
{{value.title}}
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Time Elapsed
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Date Submitted (UTC)
|
|
|
|
</th>
|
2015-07-07 01:21:43 +00:00
|
|
|
<th ng-if="myform.autofillPDFs">
|
2015-07-03 23:47:14 +00:00
|
|
|
Generated PDF
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr data-ng-repeat="row in table.rows" ng-click="rowClicked(row)">
|
|
|
|
<td>
|
2015-07-21 23:25:45 +00:00
|
|
|
<input ng-model="row.selected" type="checkbox"/>
|
2015-07-03 23:47:14 +00:00
|
|
|
</td>
|
|
|
|
<th class="scope">{{$index+1}}</th>
|
|
|
|
<td data-ng-repeat="(key, value) in row.form_fields">
|
|
|
|
{{value.fieldValue}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{row.timeElapsed}}
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
{{row.created | date:'yyyy-MM-dd HH:mm:ss'}}
|
|
|
|
</td>
|
|
|
|
<td ng-if="row.pdf">
|
2015-07-27 18:11:43 +00:00
|
|
|
<a href="{{row.pdfFilePath}}" download="{{row.pdf.name}}" target="_self">Generated PDF</a>
|
2015-07-03 23:47:14 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</tab>
|
|
|
|
</tabset>
|
|
|
|
<!-- </div> -->
|
|
|
|
</div>
|
2015-06-29 22:51:29 +00:00
|
|
|
</section>
|