2016-06-09 00:01:49 +00:00
<< << << < HEAD
2016-06-08 23:56:06 +00:00
"use strict" ; function removeDateFieldsFunc ( o ) { function eachObject ( v , k ) { "lastModified" !== k && "created" !== k || delete clone [ k ] } for ( var clone = _ . clone ( o ) , i = 0 ; i < clone . length ; i ++ ) _ . each ( clone [ i ] , eachObject ) ; return clone } var ApplicationConfiguration = function ( ) { var applicationModuleName = "NodeForm" , applicationModuleVendorDependencies = [ "duScroll" , "ui.select" , "cgBusy" , "ngSanitize" , "vButton" , "ngResource" , "NodeForm.templates" , "ui.router" , "ui.bootstrap" , "ui.utils" ] , registerModule = function ( moduleName , dependencies ) { angular . module ( moduleName , dependencies || [ ] ) , angular . module ( applicationModuleName ) . requires . push ( moduleName ) } ; return { applicationModuleName : applicationModuleName , applicationModuleVendorDependencies : applicationModuleVendorDependencies , registerModule : registerModule } } ( ) ; angular . module ( ApplicationConfiguration . applicationModuleName , ApplicationConfiguration . applicationModuleVendorDependencies ) , angular . module ( ApplicationConfiguration . applicationModuleName ) . config ( [ "$locationProvider" , function ( $locationProvider ) { $locationProvider . hashPrefix ( "!" ) } ] ) , angular . module ( ApplicationConfiguration . applicationModuleName ) . constant ( "APP_PERMISSIONS" , { viewAdminSettings : "viewAdminSettings" , editAdminSettings : "editAdminSettings" , editForm : "editForm" , viewPrivateForm : "viewPrivateForm" } ) , angular . module ( ApplicationConfiguration . applicationModuleName ) . constant ( "USER_ROLES" , { admin : "admin" , normal : "user" , superuser : "superuser" } ) , angular . module ( ApplicationConfiguration . applicationModuleName ) . constant ( "FORM_URL" , "/forms/:formId" ) , angular . module ( ApplicationConfiguration . applicationModuleName ) . run ( [ "$rootScope" , "Auth" , "$state" , "$stateParams" , function ( $rootScope , Auth , $state , $stateParams ) { $rootScope . $state = $state , $rootScope . $stateParams = $stateParams , $rootScope . $on ( "$stateChangeSuccess" , function ( event , toState , toParams , fromState ) { $state . previous = fromState ; var statesToIgnore = [ "home" , "signin" , "resendVerifyEmail" , "verify" , "signup" , "signup-success" , "forgot" , "reset-invalid" , "reset" , "reset-success" ] ; statesToIgnore . indexOf ( toState . name ) > 0 ? Auth . isAuthenticated ( ) && ( event . preventDefault ( ) , $state . go ( "listForms" ) ) : "access_denied" === toState . name || Auth . isAuthenticated ( ) || "submitForm" === toState . name || ( console . log ( "go to signup" ) , event . preventDefault ( ) , $state . go ( "listForms" ) ) } ) } ] ) , angular . module ( ApplicationConfiguration . applicationModuleName ) . run ( [ "$rootScope" , "Auth" , "User" , "Authorizer" , "$state" , "$stateParams" , function ( $rootScope , Auth , User , Authorizer , $state , $stateParams ) { $rootScope . $on ( "$stateChangeStart" , function ( event , next ) { var authenticator , permissions , user ; permissions = next && next . data && next . data . permissions ? next . data . permissions : null , Auth . ensureHasCurrentUser ( User ) , user = Auth . currentUser , user && ( authenticator = new Authorizer ( user ) , null != permissions && ( authenticator . canAccess ( permissions ) || ( event . preventDefault ( ) , $state . go ( "access_denied" ) ) ) ) } ) } ] ) , angular . element ( document ) . ready ( function ( ) { "#_=_" === window . location . hash && ( window . location . hash = "#!" ) , angular . bootstrap ( document , [ ApplicationConfiguration . applicationModuleName ] ) } ) , angular . module ( "NodeForm.templates" , [ ] ) . run ( [ "$templateCache" , function ( $templateCache ) { $templateCache . put ( "modules/core/views/header.client.view.html" , '<section class="navbar navbar-fixed-top navbar-inverse" data-ng-controller=HeaderController ng-hide=hideNav><div class=container><div class=navbar-header><button class=navbar-toggle type=button data-ng-click=toggleCollapsibleMenu()><span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span></button> <a href="https://www.tellform.com/#!/" class=navbar-brand><i class="fa fa-archive" style="padding-right: 0.3em"></i>Tell<span>Form</span></a></div><nav class="collapse navbar-collapse" collapse=!isCollapsed role=navigation><ul class="nav navbar-nav" data-ng-if=authentication.isAuthenticated()><li data-ng-repeat="item in menu.items | orderBy: \'position\' " data-ng-if=item.shouldRender(authentication.isAuthenticated()); ng-switch=item.menuItemType ui-route={{item.uiRoute}} class={{item.menuItemClass}} ng-class=" { active : ( $uiRoute ) } " dropdown=" item . menuIte
2016-06-07 21:30:15 +00:00
$templateCache . put ( "modules/forms/admin/views/directiveViews/form/edit-submissions-form.client.view.html" , '<div class="submissions-table row container" ng-init=initFormSubmissions()><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"><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><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"><button class="btn btn-default" ng-click="exportSubmissions(\'xml\')"><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><th ng-if=myform.plugins.oscarhost.baseUrl>OscarEMR User Profile</th><th>Percentage Complete</th><th>Time Elapsed</th><th>Device</th><th>Location</th><th>IP Address</th><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">{{field.fieldValue}}</td><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><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><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></div>' ) , $templateCache . put ( "modules/forms/base/views/directiveViews/entryPage/startPage.html" , '<div class="field row text-center"><div class="col-xs-12 text-center"><h1>{{pageData.introTitle}}</h1></div><div class="col-xs-10 col-xs-offset-1 text-left"><p style=color:#ddd>{{pageData.introParagraph}}</p></div></div><div class="row form-actions" style="padding-bottom:3em; padding-left: 1em; padding-right: 1em"><p ng-repeat="button in pageData.buttons" class=text-center style=display:inline><button class="btn btn-info" type=button ng-style="{\'background-color\':button.bgColor, \'color\':button.color}"><a href={{button.url}} style="font-size: 1.6em; text-decoration: none; color: inherit">{{button.text}}</a></button></p></div><div class="row form-actions"><p class="col-xs-3 col-xs-offset-3 text-center"><button class="btn btn-info" type=button><a ng-click=exitpageData() style="color:white; font-size: 1.6em; text-decoration: none">{{ \'CONTINUE_FORM\' | translate }}</a></button></p></div>' ) , $templateCache . put ( " modules / forms / base / views / direct
2016-06-08 23:56:06 +00:00
$templateCache . put ( "modules/users/views/settings/edit-profile.client.view.html" , '<section class="row auth" data-ng-controller=SettingsController><h3 class="col-xs-offset-1 col-xs-10 text-center">Edit your profile</h3><div class="col-xs-offset-3 col-xs-6"><form name=userForm data-ng-submit=updateUserProfile(userForm.$valid) class="signin form-horizontal" autocomplete=off><fieldset><div data-ng-show=success class="text-center text-success"><strong>Profile Saved Successfully</strong></div><div data-ng-show=error class="text-center text-danger">Couldn\'t Save Your Profile.<br>Error: <strong data-ng-bind=error></strong></div><div class="form-group row"><div class="col-xs-7 field-title"><b>First Name</b></div><div class="col-xs-12 field-input"><input id=firstName name=firstName class=form-control data-ng-model=user.firstName placeholder="First Name" ng-pattern="/^[a-zA-Z0-9 \\-.]*$/"></div></div><div class="form-group row"><div class="col-xs-7 field-title"><b>Last Name</b></div><div class="col-xs-12 field-input"><input id=lastName name=lastName class=form-control data-ng-model=user.lastName placeholder="Last Name" ng-pattern="/^[a-zA-Z0-9 \\-.]*$/"></div></div><div class=row><hr></div><div class="row form-group"><div class="col-xs-7 field-title"><b>Language</b></div><div class="col-xs-12 field-input"><select ng-model=user.language required><option ng-repeat="language in languages" ng-selected="language == user.language" value={{language}}>{{language}}</option></select></div></div><div class="row form-group"><div class="col-xs-7 field-title"><b>Email</b> <small>(also your username)</small></div><div class="col-xs-12 field-input"><input type=email id=email name=email class=form-control data-ng-model=user.email placeholder=Email></div></div><div class="text-center form-group"><button type=submit class="btn btn-large btn-primary" style=font-size:1.6em>Update Profile</button></div></fieldset></form></div></section>' ) , $templateCache . put ( "modules/users/views/settings/social-accounts.client.view.html" , '<section class="row auth" data-ng-controller=SettingsController><h3 class="col-md-12 text-center" data-ng-show=hasConnectedAdditionalSocialAccounts()>Connected social accounts:</h3><div class="col-md-12 text-center"><div data-ng-repeat="(providerName, providerData) in user.additionalProvidersData" class=remove-account-container><img ng-src=/modules/users/img/buttons/{{providerName}}.png> <a class="btn btn-danger btn-remove-account" data-ng-click=removeUserSocialAccount(providerName)><i class="glyphicon glyphicon-trash"></i></a></div></div><h3 class="col-md-12 text-center">Connect other social accounts:</h3><div class="col-md-12 text-center"><a href=/auth/facebook data-ng-hide="isConnectedSocialAccount(\'facebook\')" class=undecorated-link><img src=/modules/users/img/buttons/facebook.png></a> <a href=/auth/twitter data-ng-hide="isConnectedSocialAccount(\'twitter\')" class=undecorated-link><img src=/modules/users/img/buttons/twitter.png></a> <a href=/auth/google data-ng-hide="isConnectedSocialAccount(\'google\')" class=undecorated-link><img src=/modules/users/img/buttons/google.png></a> <a href=/auth/linkedin data-ng-hide="isConnectedSocialAccount(\'linkedin\')" class=undecorated-link><img src=/modules/users/img/buttons/linkedin.png></a> <a href=/auth/github data-ng-hide="isConnectedSocialAccount(\'github\')" class=undecorated-link><img src=/modules/users/img/buttons/github.png></a></div></section>' ) , $templateCache . put ( "modules/users/views/verify/resend-verify-email.client.view.html" , ' < section class = "auth row" data - ng - controller = VerifyController > < section ng - if = ! isResetSent > < h3 class = "col-md-12 text-center" > Resend your account verification email < / h 3 > < p c l a s s = " s m a l l t e x t - c e n t e r " > E n t e r y o u r a c c o u n t e m a i l . < / p > < d i v d a t a - n g - s h o w = e r r o r c l a s s = " t e x t - c e n t e r t e x t - d a n g e r " > < s t r o n g > { { e r r o r } } < / s t r o n g > < / d i v > < d i v c l a s s = " c o l - x s - o f f s e t - 2 c o l - x s - 8 c o l - m d - o f f s e t - 3 c o l - m d - 6 " > < f o r m d a t a - n g - s u b m i t = r e s e n d V e r i f y E m a i l ( ) c l a s s = " s i g n i n f o r m - h o r i z o n t a l " a u t o c o m p l e t e = o f f > < f i e l d s e t > < d i v c l a s s = f o r m - g r o u p > < i n p u t i d = u s e r n a m e n a m e = e m a i l c l a s s = f o r m - c o n t r o l d a t a - n g - m o d e l = c r e
2016-06-09 00:01:49 +00:00
console . error ( error ) } ) } } , $scope . update = $rootScope . update = function ( updateImmediately , cb ) { var continueUpdate = ! 0 ; if ( updateImmediately || ( continueUpdate = ! $rootScope . saveInProgress ) , continueUpdate ) { var err = null ; updateImmediately || ( $rootScope . saveInProgress = ! 0 ) , $scope . updatePromise = $http . put ( "/forms/" + $scope . myform . _id , { form : $scope . myform } ) . then ( function ( response ) { $rootScope . myform = $scope . myform = response . data } ) [ "catch" ] ( function ( response ) { console . log ( "Error occured during form UPDATE.\n" ) , err = response . data } ) [ "finally" ] ( function ( ) { return updateImmediately || ( $rootScope . saveInProgress = ! 1 ) , "function" == typeof cb ? cb ( err ) : void 0 } ) } } } ] ) , angular . module ( "forms" ) . controller ( "ListFormsController" , [ "$rootScope" , "$scope" , "$stateParams" , "$state" , "Forms" , "CurrentForm" , "$http" , function ( $rootScope , $scope , $stateParams , $state , Forms , CurrentForm , $http ) { $scope = $rootScope , $scope . forms = { } , $scope . showCreateModal = ! 1 , $scope . findAll = function ( ) { Forms . query ( function ( _forms ) { $scope . myforms = _forms } ) } , $scope . openCreateModal = function ( ) { $scope . showCreateModal || ( $scope . showCreateModal = ! 0 ) } , $scope . closeCreateModal = function ( ) { $scope . showCreateModal && ( $scope . showCreateModal = ! 1 ) } , $scope . setForm = function ( form ) { $scope . myform = form } , $scope . goToWithId = function ( route , id ) { $state . go ( route , { formId : id } , { reload : ! 0 } ) } , $scope . duplicateForm = function ( form _index ) { var form = _ . cloneDeep ( $scope . myforms [ form _index ] ) ; delete form . _id , $http . post ( "/forms" , { form : form } ) . success ( function ( data , status , headers ) { $scope . myforms . splice ( form _index + 1 , 0 , data ) } ) . error ( function ( errorResponse ) { console . error ( errorResponse ) , null === errorResponse && ( $scope . error = errorResponse . data . message ) } ) } , $scope . createNewForm = function ( ) { var form = { } ; form . title = $scope . forms . createForm . title . $modelValue , form . language = $scope . forms . createForm . language . $modelValue , $scope . forms . createForm . $valid && $scope . forms . createForm . $dirty && $http . post ( "/forms" , { form : form } ) . success ( function ( data , status , headers ) { console . log ( "new form created" ) , $scope . goToWithId ( "viewForm.create" , data . _id + "" ) } ) . error ( function ( errorResponse ) { console . error ( errorResponse ) , $scope . error = errorResponse . data . message } ) } , $scope . removeForm = function ( form _index ) { if ( form _index >= $scope . myforms . length || 0 > form _index ) throw new Error ( "Error: form_index in removeForm() must be between 0 and " + $scope . myforms . length - 1 ) ; $http [ "delete" ] ( "/forms/" + $scope . myforms [ form _index ] . _id ) . success ( function ( data , status , headers ) { console . log ( "form deleted successfully" ) , $scope . myforms . splice ( form _index , 1 ) } ) . error ( function ( error ) { console . log ( "ERROR: Form could not be deleted." ) , console . error ( error ) } ) } } ] ) , _ . mixin ( { removeDateFields : removeDateFieldsFunc } ) , angular . module ( "forms" ) . directive ( "autoSaveForm" , [ "$rootScope" , "$timeout" , function ( $rootScope , $timeout ) { return { require : [ "^form" ] , restrict : "AE" , link : function ( $scope , $element , $attrs , $ctrls ) { angular . element ( document ) . ready ( function ( ) { var $formCtrl = $ctrls [ 0 ] , savePromise = null ; $rootScope . finishedRender = ! 1 , $scope . $on ( "editFormFields Started" , function ( ngRepeatFinishedEvent ) { $rootScope . finishedRender = ! 1 } ) , $scope . $on ( "editFormFields Finished" , function ( ngRepeatFinishedEvent ) { $rootScope . finishedRender = ! 0 } ) , $scope . anyDirtyAndTouched = function ( form ) { var propCount = 0 ; for ( var prop in form ) if ( form . hasOwnProperty ( prop ) && "$" !== prop [ 0 ] && ( propCount ++ , form [ prop ] . $touched && form [ prop ] . $dirty ) ) return ! 0 ; return ! 1 } ; var debounceSave = function ( ) { $rootScope . saveInProgress = ! 0 , $rootScope [ $attrs . autoSaveCallback ] ( ! 0 , function ( err ) { err ? ( console . error ( "Error form data NOT persisted" ) , console . error ( err ) ) : ( $formCtrl . $setPristine ( ) , $formCtrl . $setUntouched ( ) ) } ) } ; $scope . $watch ( function ( newValue , oldValue ) { $rootScope . finishedRender && $scope . anyDirtyAndTouched ( $scope . editForm ) && ! $rootScope . saveInProgress && debounceSave ( ) } ) , $scope . $watch ( $attrs . autoSaveWatch , function ( newValue , oldValue ) { newValue = angular . copy ( newValue ) , oldValue = angular . copy ( oldValue ) , newValue . form _fields = _ . removeDateFields ( newValue . form _fields ) , oldValue . form _fields = _ . removeDateFields ( oldValue . form _fields ) ; var changedFields = ! _ . isEqual ( oldValue . form _fields , newValue . form _fields ) || ! _ . isEqual ( oldValue . startPage , newValue . startPage ) , changedFieldM
=== === =
2016-06-07 01:11:19 +00:00
function removeDateFieldsFunc ( o ) { function eachObject ( v , k ) { "lastModified" !== k && "created" !== k || delete clone [ k ] } for ( var clone = _ . clone ( o ) , i = 0 ; i < clone . length ; i ++ ) _ . each ( clone [ i ] , eachObject ) ; return clone } angular . module ( "NodeForm.templates" , [ ] ) . run ( [ "$templateCache" , function ( $templateCache ) { "use strict" ; $templateCache . put ( "../public/modules/core/views/header.client.view.html" , '<section class="navbar navbar-fixed-top navbar-inverse" data-ng-controller=HeaderController ng-hide=hideNav><div class=container><div class=navbar-header><button class=navbar-toggle type=button data-ng-click=toggleCollapsibleMenu()><span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span></button> <a href="https://www.tellform.com/#!/" class=navbar-brand><i class="fa fa-archive" style="padding-right: 0.3em"></i>Tell<span>Form</span></a></div><nav class="collapse navbar-collapse" collapse=!isCollapsed role=navigation><ul class="nav navbar-nav" data-ng-if=authentication.isAuthenticated()><li data-ng-repeat="item in menu.items | orderBy: \'position\'" data-ng-if=item.shouldRender(authentication.isAuthenticated()); ng-switch=item.menuItemType ui-route={{item.uiRoute}} class={{item.menuItemClass}} ng-class="{active: ($uiRoute)}" dropdown="item.menuItemType === \'dropdown\'"><a ng-switch-when=dropdown class=dropdown-toggle dropdown-toggle><span data-ng-bind=item.title></span> <b class=caret></b></a><ul ng-switch-when=dropdown class=dropdown-menu><li data-ng-repeat="subitem in item.items | orderBy: \'position\'" data-ng-if=subitem.shouldRender(authentication.isAuthenticated()); ui-route={{subitem.uiRoute}} ng-class="{active: $uiRoute}"><a href=/#!/{{subitem.link}} data-ng-bind=subitem.title></a></li></ul><a ng-switch-default href=/#!/{{item.link}} data-ng-bind=item.title></a></li></ul><ul class="nav navbar-nav navbar-right" data-ng-hide=authentication.isAuthenticated()><li ng-hide=$root.signupDisabled ui-route=/signup ng-class="{active: $uiRoute}"><a href=/#!/signup>Sign Up</a></li><li class=divider-vertical></li><li ui-route=/signin ng-class="{active: $uiRoute}"><a href=/#!/signin>Sign In</a></li></ul><ul class="nav navbar-nav navbar-right" data-ng-show=authentication.isAuthenticated()><li class=dropdown uib-dropdown><a href=# class=dropdown-toggle data-toggle=dropdown dropdown-toggle><span>My Settings</span> <b class=caret></b></a><ul class=dropdown-menu><li><a href=/#!/settings/profile>Edit Profile</a></li><li class=divider></li><li><a href=/#!/settings/password>Change Password</a></li><li data-ng-show="authentication.isAuthenticated().provider === \'local\'"><a href=/#!/settings/password>Change Password</a></li></ul></li><li ng-click=signout()><a>Signout</a></li></ul></nav></div></section>' ) , $templateCache . put ( "../public/modules/core/views/home.client.view.html" , ' < section data - ng - controller = HomeController class = hero - section style = overflow : hidden > < div class = opacity - background > < / d i v > < d i v c l a s s = i m a g e - b a c k g r o u n d > < / d i v > < d i v c l a s s = " j u m b o t r o n t e x t - c e n t e r " > < d i v c l a s s = c o n t a i n e r d a t a - n g - i f = ! a u t h e n t i c a t i o n . i s A u t h e n t i c a t e d ( ) > < d i v c l a s s = " r o w t e x t - c e n t e r l o g o " s t y l e = " b o r d e r - b o t t o m : 1 p x s o l i d r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , . 2 ) ; m a r g i n - b o t t o m : 3 0 p x " > < h 3 c l a s s = c o l - x s - 1 2 s t y l e = " c o l o r : # F A 7 8 7 E ; m a r g i n - b o t t o m : 0 p x " > < i c l a s s = " f a f a - a r c h i v e f a - 3 x " > < / i > < / h 3 > < h 2 c l a s s = c o l - x s - 1 2 s t y l e = m a r g i n - t o p : 0 p x > < s p a n > T e l l < s p a n s t y l e = " t e x t - d e c o r a t i o n : u n d e r l i n e ; c o l o r : # F A 7 8 7 E " > F o r m < / s p a n > < / s p a n > < / h 2 > < / d i v > < d i v c l a s s = r o w s t y l e = m a r g i n - t o p : 0 p x > < h 1 c l a s s = " l e a d c o l - m d - 1 0 c o l - m d - o f f s e t - 1 h i d d e n - x s h i d d e n - s m " s t y l e = f o n t - s i z e : 3 . 8 e m > C r a f t b e a u t i f u l f o r m s i n s e c o n d s . < / h 1 > < h 2 c l a s s = " l e a d c o l - s m - 1 2 t e x t - c e n t e r h i d d e n - m d h i d d e n - l g " s t y l e = f o n t - s i z e : 2 . 8 e m > C r a f t b e a u t i f u l f o r m s . < / h 2 > < p c l a s s = " l e a d h i d d e n - x s h i d d e n - s m c o l - m d - 1 0 c o l - m d - o f f s e t - 1 c o l - l g - 8 c o l - l g - o f f s e t - 2 " s t y l e = " f o n t - s i z e : 1 . 5 e m ; c o l o r : r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , . 7 5 ) " > < i > T e l l F o r m i s a n o p e n s o u r c e < b > a l t e r n a t i v e t o T y p e F o r m < / b > t h a t c a n c r e a t e s t u n n i n g f o r m s f r o m P D F s o r f r o m s c r a t c h < / i > < / p > < p c l a s s = " l e a d c o l - x s - 1 2 h i d d e n - m d h i d d e n - l g " s t y l e = " f o n t - s i z e : 1 . 5 e m ; c o l o r : r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , . 7 5 ) " > < i > T e l l F o r m
$templateCache . put ( "../public/modules/forms/views/directiveViews/form/edit-form.client.view.html" , '<form class="row container" name=editForm auto-save-form auto-save-watch=myform auto-save-callback=update><div class="col-xs-2 col-sm-4 col-md-5 add-field"><div class="row add-field-title"><h3 class="col-md-12 hidden-sm hidden-xs">Click to Add New Field</h3><h4 class="col-sm-12 hidden-xs hidden-md hidden-lg">Add New Field</h4><h5 class="col-sm-12 hidden-sm hidden-md hidden-lg">Add Field</h5></div><div class="panel-group row" class=draggable ng-model=addField.types><div class="col-xs-12 col-sm-12 col-md-6" ng-repeat="type in addField.types" style=padding-top:7.5px><div class="panel panel-default" style=background-color:#f5f5f5><div class=panel-heading ng-click="addNewField(true, type.name)" style="cursor: pointer; font-size:14px"><span><field-icon-directive type-name={{type.name}}></field-icon-directive></span> <span class=hidden-xs style=padding-left:0.3em>{{type.value}}</span></div></div></div></div></div><div class="col-xs-10 col-sm-8 col-md-7 current-fields container"><div class=row><div class="col-sm-12 col-md-10"><div class="panel panel-default startPage"><div class="panel-heading accordion-toggle collapsed" data-toggle=collapse data-target=#collapseStart><h4 class=text-center>Start Page <span class=pull-right><i class="fa fa-chevron-right" ng-hide=startPage.isOpen></i> <i class="fa fa-chevron-down" ng-show=startPage.isOpen></i></span></h4></div><div id=collapseStart class="panel-collapse collapse"><div class=panel-body><div class="row hidden-sm hidden-xs"><div class=col-md-12><h4>Preview Start Page</h4></div><ul class="col-md-12 container" style="list-style:none;border:2px lightgray solid"><div class="field row"><div class="col-xs-12 text-center" style="overflow-wrap: break-word"><h1>{{myform.startPage.introTitle}}</h1></div><div class="col-xs-10 col-xs-offset-1 text-left" style="overflow-wrap: break-word"><p style=color:#ddd>{{myform.startPage.introParagraph}}</p></div></div><div class="row form-actions" style="padding-bottom:3em; padding-left: 1em; padding-right: 1em"><p ng-repeat="button in myform.startPage.buttons" class=text-center style=display:inline><button class="btn btn-info" type=button ng-style="{\'background-color\':button.bgColor, \'color\' : button . color } "><a href={{button.url}} style=" font - size : 1.6 em ; text - decoration : none ; color : inherit ">{{button.text}}</a></button></p></div><div class=" row form - actions "><button ng-click=exitStartPage() class=" btn btn - info btn btn - info col - md - 6 col - md - offset - 3 col - lg - 6 col - lg - offset - 3 " type=button><span style=" color : white ; font - size : 1.6 em ; text - decoration : none ">{{myform.startPage.introButtonText}}</span></button></div></ul></div><div class=row><div class=col-xs-12><h4>Edit Start Page</h4><br></div></div><div class=" row question "><div class=" col - md - 4 col - sm - 12 ">Intro Title:</div><div class=" col - md - 8 col - sm - 12 "><input ng-model=myform.startPage.introTitle name=introTitleStartPage value={{myform.startPage.introTitle}} required></div></div><div class=" row question "><div class=" col - md - 4 col - sm - 12 ">Intro Paragraph:</div><div class=" col - md - 8 col - sm - 12 "><textarea type=text ng-model=myform.startPage.introParagraph name=" introParagraphStartPage ">\n </div>\n </div>\n \n <div class=" row question ">\n <div class=" col - md - 4 col - sm - 12 ">Intro Button:</div>\n <div class=" col - md - 8 col - sm - 12 ">\n <input ng-model=myform.startPage.introButtonText name=introButtonText value={{myform.startPage.introButtonText}} required>\n </div>\n </div>\n\n <div class=row><br><br></div>\n\n <div class=" row options buttons ">\n <div class=" col - md - 3 col - xs - 12 ">Buttons:</div>\n <div class=" col - md - 9 col - xs - 12 " > \ n < di
2016-06-07 04:59:24 +00:00
$templateCache . put ( "../public/modules/users/views/settings/edit-profile.client.view.html" , '<section class="row auth" data-ng-controller=SettingsController><h3 class="col-xs-offset-1 col-xs-10 text-center">Edit your profile</h3><div class="col-xs-offset-3 col-xs-6"><form name=userForm data-ng-submit=updateUserProfile(userForm.$valid) class="signin form-horizontal" autocomplete=off><fieldset><div data-ng-show=success class="text-center text-success"><strong>Profile Saved Successfully</strong></div><div data-ng-show=error class="text-center text-danger">Couldn\'t Save Your Profile.<br>Error: <strong data-ng-bind=error></strong></div><div class="form-group row"><div class="col-xs-7 field-title"><b>First Name</b></div><div class="col-xs-12 field-input"><input id=firstName name=firstName class=form-control data-ng-model=user.firstName placeholder="First Name" ng-pattern="/^[a-zA-Z0-9 \\-.]*$/"></div></div><div class="form-group row"><div class="col-xs-7 field-title"><b>Last Name</b></div><div class="col-xs-12 field-input"><input id=lastName name=lastName class=form-control data-ng-model=user.lastName placeholder="Last Name" ng-pattern="/^[a-zA-Z0-9 \\-.]*$/"></div></div><div class=row><hr></div><div class="row form-group"><div class="col-xs-7 field-title"><b>Language</b></div><div class="col-xs-12 field-input"><select ng-model=user.language required><option ng-repeat="language in languages" ng-selected="language == user.language" value={{language}}>{{language}}</option></select></div></div><div class="row form-group"><div class="col-xs-7 field-title"><b>Email</b> <small>(also your username)</small></div><div class="col-xs-12 field-input"><input type=email id=email name=email class=form-control data-ng-model=user.email placeholder=Email></div></div><div class="text-center form-group"><button type=submit class="btn btn-large btn-primary" style=font-size:1.6em>Update Profile</button></div></fieldset></form></div></section>' ) , $templateCache . put ( "../public/modules/users/views/settings/social-accounts.client.view.html" , '<section class="row auth" data-ng-controller=SettingsController><h3 class="col-md-12 text-center" data-ng-show=hasConnectedAdditionalSocialAccounts()>Connected social accounts:</h3><div class="col-md-12 text-center"><div data-ng-repeat="(providerName, providerData) in user.additionalProvidersData" class=remove-account-container><img ng-src=/modules/users/img/buttons/{{providerName}}.png> <a class="btn btn-danger btn-remove-account" data-ng-click=removeUserSocialAccount(providerName)><i class="glyphicon glyphicon-trash"></i></a></div></div><h3 class="col-md-12 text-center">Connect other social accounts:</h3><div class="col-md-12 text-center"><a href=/auth/facebook data-ng-hide="isConnectedSocialAccount(\'facebook\')" class=undecorated-link><img src=/modules/users/img/buttons/facebook.png></a> <a href=/auth/twitter data-ng-hide="isConnectedSocialAccount(\'twitter\')" class=undecorated-link><img src=/modules/users/img/buttons/twitter.png></a> <a href=/auth/google data-ng-hide="isConnectedSocialAccount(\'google\')" class=undecorated-link><img src=/modules/users/img/buttons/google.png></a> <a href=/auth/linkedin data-ng-hide="isConnectedSocialAccount(\'linkedin\')" class=undecorated-link><img src=/modules/users/img/buttons/linkedin.png></a> <a href=/auth/github data-ng-hide="isConnectedSocialAccount(\'github\')" class=undecorated-link><img src=/modules/users/img/buttons/github.png></a></div></section>' ) , $templateCache . put ( "../public/modules/users/views/verify/resend-verify-email.client.view.html" , ' < section class = "auth row" data - ng - controller = VerifyController > < section ng - if = ! isResetSent > < h3 class = "col-md-12 text-center" > Resend your account verification email < / h 3 > < p c l a s s = " s m a l l t e x t - c e n t e r " > E n t e r y o u r a c c o u n t e m a i l . < / p > < d i v d a t a - n g - s h o w = e r r o r c l a s s = " t e x t - c e n t e r t e x t - d a n g e r " > < s t r o n g > { { e r r o r } } < / s t r o n g > < / d i v > < d i v c l a s s = " c o l - x s - o f f s e t - 2 c o l - x s - 8 c o l - m d - o f f s e t - 3 c o l - m d - 6 " > < f o r m d a t a - n g - s u b m i t = r e s e n d V e r i f y E m a i l ( ) c l a s s = " s i g n i n f o r m - h o r i z o n t a l " a u t o c o m p l e t e = o f f > < f i e l d s e t > < d i v c l a s s = f o r m - g r o u p > < i n p u t i d = u s e r n a m e n a m e = e m a i l c l a s s =
2016-06-09 00:01:49 +00:00
link : "fa fa-link" , scale : "fa fa-sliders" , stripe : "fa fa-credit-card" , statement : "fa fa-quote-left" , yes _no : "fa fa-toggle-on" , number : "fa fa-slack" } ; $scope . typeIcon = iconTypeMap [ $scope . typeName ] } ] } } ) ; var _ _indexOf = [ ] . indexOf || function ( item ) { for ( var i = 0 , l = this . length ; l > i ; i ++ ) if ( i in this && this [ i ] === item ) return i ; return - 1 } ; angular . module ( "forms" ) . directive ( "fieldDirective" , [ "$http" , "$compile" , "$rootScope" , "$templateCache" , function ( $http , $compile , $rootScope , $templateCache ) { var getTemplateUrl = function ( fieldType ) { var type = fieldType , templateUrl = "modules/forms/views/directiveViews/field/" , supported _fields = [ "textfield" , "textarea" , "date" , "dropdown" , "hidden" , "password" , "radio" , "legal" , "statement" , "rating" , "yes_no" , "number" , "natural" ] ; return _ _indexOf . call ( supported _fields , type ) >= 0 && ( templateUrl = templateUrl + type + ".html" ) , $templateCache . get ( "../public/" + templateUrl ) } ; return { template : "<div>{{field.title}}</div>" , restrict : "E" , scope : { field : "=" , required : "&" , design : "=" , index : "=" , forms : "=" } , link : function ( scope , element ) { $rootScope . chooseDefaultOption = scope . chooseDefaultOption = function ( type ) { "yes_no" === type ? scope . field . fieldValue = "true" : "rating" === type ? scope . field . fieldValue = 0 : "radio" === scope . field . fieldType ? ( console . log ( scope . field ) , scope . field . fieldValue = scope . field . fieldOptions [ 0 ] . option _value , console . log ( scope . field . fieldValue ) ) : "legal" === type && ( scope . field . fieldValue = "true" , $rootScope . nextField ( ) ) } , scope . setActiveField = $rootScope . setActiveField , "date" === scope . field . fieldType && ( scope . dateOptions = { changeYear : ! 0 , changeMonth : ! 0 , altFormat : "mm/dd/yyyy" , yearRange : "1900:-0" , defaultDate : 0 } ) ; var fieldType = scope . field . fieldType ; if ( "number" === scope . field . fieldType || "textfield" === scope . field . fieldType || "email" === scope . field . fieldType || "link" === scope . field . fieldType ) { switch ( scope . field . fieldType ) { case "textfield" : scope . field . input _type = "text" ; break ; case "email" : scope . field . input _type = "email" , scope . field . placeholder = "joesmith@example.com" ; break ; case "number" : scope . field . input _type = "text" , scope . field . validateRegex = /^-?\d+$/ ; break ; default : scope . field . input _type = "url" , scope . field . placeholder = "http://example.com" } fieldType = "textfield" } var template = getTemplateUrl ( fieldType ) ; element . html ( template ) . show ( ) ; $compile ( element . contents ( ) ) ( scope ) } } } ] ) , angular . module ( "forms" ) . directive ( "keyToOption" , function ( ) { return { restrict : "A" , scope : { field : "=" } , link : function ( $scope , $element , $attrs , $select ) { $element . bind ( "keydown keypress" , function ( event ) { var keyCode = event . which || event . keyCode , index = parseInt ( String . fromCharCode ( keyCode ) ) - 1 ; index < $scope . field . fieldOptions . length && ( event . preventDefault ( ) , $scope . $apply ( function ( ) { $scope . field . fieldValue = $scope . field . fieldOptions [ index ] . option _value } ) ) } ) } } } ) , angular . module ( "forms" ) . directive ( "keyToTruthy" , [ "$rootScope" , function ( $rootScope ) { return { restrict : "A" , scope : { field : "=" } , link : function ( $scope , $element , $attrs ) { $element . bind ( "keydown keypress" , function ( event ) { var keyCode = event . which || event . keyCode , truthyKeyCode = $attrs . keyCharTruthy . charCodeAt ( 0 ) - 32 , falseyKeyCode = $attrs . keyCharFalsey . charCodeAt ( 0 ) - 32 ; keyCode === truthyKeyCode ? ( event . preventDefault ( ) , $scope . $apply ( function ( ) { $scope . field . fieldValue = "true" } ) ) : keyCode === falseyKeyCode && ( event . preventDefault ( ) , $scope . $apply ( function ( ) { $scope . field . fieldValue = "false" } ) ) } ) } } } ] ) , angular . module ( "forms" ) . directive ( "onEnterKey" , [ "$rootScope" , function ( $rootScope ) { return { restrict : "A" , link : function ( $scope , $element , $attrs ) { $element . bind ( "keydown keypress" , function ( event ) { var keyCode = event . which || event . keyCode , onEnterKeyDisabled = ! 1 ; null !== $attrs . onEnterKeyDisabled && ( onEnterKeyDisabled = $attrs . onEnterKeyDisabled ) , 13 !== keyCode || event . shiftKey || onEnterKeyDisabled || ( event . preventDefault ( ) , $rootScope . $apply ( function ( ) { $rootScope . $eval ( $attrs . onEnterKey ) } ) ) } ) } } } ] ) . directive ( "onTabKey" , [ "$rootScope" , function ( $rootScope ) { return { restrict : "A" , link : function ( $scope , $element , $attrs ) { $element . bind ( "keydown keypress" , function ( event ) { var keyCode = event . which || event . keyCode ; 9 !== keyCode || event . shiftKey || ( event . preventDefault ( ) , $rootScope . $apply ( function ( ) { $rootScope . $eval ( $attrs . onTabKey ) } ) ) } ) } } } ] ) . directive ( "onEnterOrTabKey" ,
>>> >>> > ffc615a26240cdaebe88ff1064508f7120f0f4d5