tellform/public/modules/forms/admin/directives/configure-form.client.directive.js

25 lines
759 B
JavaScript
Raw Normal View History

2015-07-03 23:47:14 +00:00
'use strict';
2015-11-12 22:24:26 +00:00
angular.module('forms').directive('configureFormDirective', ['$rootScope', '$http', 'Upload', 'CurrentForm',
function ($rootScope, $http, Upload, CurrentForm) {
2015-07-03 23:47:14 +00:00
return {
2016-05-05 19:12:40 +00:00
templateUrl: 'modules/forms/admin/views/directiveViews/form/configure-form.client.view.html',
2015-08-04 21:06:16 +00:00
restrict: 'E',
scope: {
myform:'=',
user:'=',
pdfFields:'@',
formFields:'@'
},
2015-07-03 23:47:14 +00:00
controller: function($scope){
$scope.log = '';
$scope.languages = $rootScope.languages;
2016-04-29 02:48:02 +00:00
2015-07-06 04:29:05 +00:00
$scope.resetForm = $rootScope.resetForm;
$scope.update = $rootScope.update;
2015-07-04 04:57:06 +00:00
2015-07-03 23:47:14 +00:00
}
};
}
2016-04-29 02:48:02 +00:00
]);