got submit-form-view to work
This commit is contained in:
parent
cd83a8a558
commit
7f790648ee
3
config/env/all.js
vendored
3
config/env/all.js
vendored
|
@ -77,10 +77,9 @@ module.exports = {
|
|||
'!public/modules/**/node_modules/**/*.css'
|
||||
],
|
||||
js: [
|
||||
'public/dist/populate_template_cache.js',
|
||||
'public/config.js',
|
||||
'public/application.js',
|
||||
'public/*.js',
|
||||
'public/dist/populate_template_cache.js',
|
||||
'public/modules/*/*.js',
|
||||
'public/modules/*/*/*.js',
|
||||
'public/modules/*/*/*/*.js',
|
||||
|
|
3338
public/dist/application.js
vendored
3338
public/dist/application.js
vendored
File diff suppressed because one or more lines are too long
10
public/dist/application.min.js
vendored
10
public/dist/application.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -9,6 +9,8 @@ angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormField
|
|||
myform:'='
|
||||
},
|
||||
controller: function($scope){
|
||||
|
||||
console.log($scope.myform);
|
||||
var field_ids = _($scope.myform.form_fields).pluck('_id');
|
||||
for(var i=0; i<field_ids.length; i++){
|
||||
$scope.myform.plugins.oscarhost.settings.fieldMap[field_ids[i]] = null;
|
||||
|
|
|
@ -30,10 +30,13 @@ angular.module('forms').directive('fieldDirective', ['$http', '$compile', '$root
|
|||
'natural'
|
||||
];
|
||||
if (__indexOf.call(supported_fields, type) >= 0) {
|
||||
var templateUrl = 'modules/forms/views/directiveViews/field/';
|
||||
var templateUrl = 'modules/forms/base/views/directiveViews/field/';
|
||||
templateUrl = templateUrl+type+'.html';
|
||||
}
|
||||
return $templateCache.get(templateUrl);
|
||||
|
||||
console.log(templateUrl);
|
||||
return $templateCache.get(templateUrl);
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
return {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue