removed PDF settings

This commit is contained in:
David Baldwynn 2016-07-04 21:10:29 -04:00
parent 3930f11273
commit 9a87031385
3 changed files with 4 additions and 154 deletions

View file

@ -1703,7 +1703,7 @@ angular.module('forms').controller('AdminFormController', ['$rootScope', '$scope
CurrentForm.setForm($scope.myform);
$scope.formURL = $scope.myform.admin.username + '.' + window.location.host;
$scope.formURL = $scope.myform.admin.username + '.tellform.com';
$scope.tabData = [
{

File diff suppressed because one or more lines are too long

View file

@ -1,158 +1,8 @@
<div class="config-form container">
<div class="row">
<!-- PDF Generation/EMR Settings -->
<div class="col-md-6 col-sm-12 container">
<div class="row">
<div class="col-sm-12">
<h2 class="hidden-sm hidden-xs">{{ 'PDF Generation/EMR' | translate }}</h2>
<h3 class="hidden-lg hidden-md">{{ 'PDF Generation/EMR' | translate }}</h3>
</div>
</div>
<!-- autofillPDFs yes/no field -->
<div class="row field">
<div class="field-title col-sm-6">
<h5>{{ 'SAVE_PDF_SUBMISSIONS' | translate }}</h5>
</div>
<div class="field-input col-sm-6">
<label>
<input type="radio" data-ng-value="true" ng-model="myform.autofillPDFs" ng-required="true" />
&nbsp;<span>{{ 'YES' | translate }}</span>
</label>
<label>
<input type="radio" data-ng-value="false" ng-model="myform.autofillPDFs" ng-required="true" />
&nbsp;<span>{{ 'NO' | translate }}</span>
</label>
</div>
</div>
<!-- Upload PDF Field -->
<div class="row field" ng-if="myform.autofillPDFs || myform.isGenerated">
<div class="col-sm-6 field-title">
<h5>{{ 'UPLOAD_YOUR_PDF' | translate }}</h5>
</div>
<div class="col-sm-6 field-input">
<div class="input-group ">
<div tabindex="-1" class="form-control file-caption">
<span class="file-caption-ellipsis" ng-if="!myform.pdf"></span>
<div class="file-caption-name" ng-if="myform.pdf">
{{myform.pdf.name}}
</div>
</div>
<div class="input-group-btn">
<button type="button" ng-if="myform.pdf" ng-click="removePDF();"
title="Clear selected files"
class="btn btn-danger fileinput-remove fileinput-remove-button">
<i class="glyphicon glyphicon-trash" ></i>
Delete
</button>
<button type="button" ng-if="pdfLoading" title="Abort ongoing upload" class="btn btn-default" ng-click="cancelUpload()">
<i class="glyphicon glyphicon-ban-circle"></i>
Cancel
</button>
<div class="btn btn-success btn-file" ngf-select="uploadPDF($file)">
<i class="glyphicon glyphicon-upload"></i>
{{ 'UPLOAD_YOUR_PDF' | translate }}
</div>
</div>
</div>
</div>
</div>
<!-- Generate form from PDF yes/no field -->
<div class="row field">
<div class="col-sm-6 field-title">
<h5>{{ 'Autogenerate Form?' | translate }}</h5>
</div>
<div class="col-sm-6 field-input">
<label>
<input type="radio" data-ng-value="true" ng-model="myform.isGenerated" ng-required="true" />
&nbsp;<span>Yes</span>
</label>
<label>
<input type="radio" data-ng-value="false" ng-model="myform.isGenerated" ng-required="true" />
&nbsp;<span>No</span>
</label>
</div>
</div>
<!-- Generate typeform from TellForm yes/no field -->
<!-- <div class="row field">
<div class="col-sm-6 field-title">
<h5>Autogenerate into Typeform?</h5>
</div>
<div class="col-sm-6 field-input">
<label>
<input type="radio" data-ng-value="true" ng-model="myform.Typeform.isGenerated" ng-required="true" />
&nbsp;<span>Yes</span>
</label>
<label>
<input type="radio" data-ng-value="false" ng-model="myform.Typeform.isGenerated" ng-required="true" />
&nbsp;<span>No</span>
</label>
</div>
</div>
<div class="row field" ng-if="myform.Typeform.isGenerated">
<div class="field-title col-sm-4">
<h5>Typeform.IO Build API Key</h5>
</div>
<div class="col-sm-8">
<input type="text"
ng-model="myform.Typeform.build_api_key"
value="{{myform.Typeform.build_api_key}}"
style="width: 100%;">
</div>
</div>
<div class="row field" ng-if="myform.Typeform.isGenerated">
<div class="field-title col-sm-4">
<h5>Generated Typeform URL</h5>
</div>
<div class="col-sm-8">
<span type="text" ng-bind="myform.Typeform.url"></span>
</div>
</div> -->
<!-- !!!!!!DAVID: TODO: Finish this so we can upload pdfFieldMap!!!!!!!!! -->
<!-- Map form inputs to PDF inputs Field -->
<!-- <div class="textfield field row" ng-if="myform.pdf">
<div class="col-xs-2 field-title field-title">Map Form Fields to PDF Fields </div>
<div class="col-xs-4 field-input field-input">
<div class="row" ng-repeat="field in formFields">
<div class="col-xs-4">
{{field.name}}
</div>
<div class="col-xs-8">
<label style="display:inline" ng-repeat="unbindedPdfField in getUnbindedPdfFields[{{field.fieldType}}]">
<input type="radio" value="unbindedPdfField._id" ng-model="field"/>
&nbsp;<span ng-bind="field.pdfField"></span>
</label>
</div>
</div>
</div>
</div> -->
</div>
<div class="col-sm-12 hidden-md hidden-lg">
<br>
<hr>
</div>
<!-- Advanced Settings -->
<div class="col-md-5 col-md-offset-1 col-sm-12 container">
<!-- Settings -->
<div class="col-sm-12 container-fluid">
<div class="row">
<div class="col-sm-12">
<h2 class="hidden-sm hidden-xs">{{ 'ADVANCED_SETTINGS' | translate }}</h2>