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 = '';
|
2015-07-07 02:52:55 +00:00
|
|
|
$scope.languages = $rootScope.languages;
|
2016-04-29 02:48:02 +00:00
|
|
|
|
2015-07-06 04:29:05 +00:00
|
|
|
$scope.resetForm = $rootScope.resetForm;
|
2015-07-21 23:25:45 +00:00
|
|
|
$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
|
|
|
]);
|