got submit-form-view to work

This commit is contained in:
David Baldwynn 2016-06-08 16:12:48 -07:00
parent cd83a8a558
commit 7f790648ee
6 changed files with 142 additions and 3543 deletions

3
config/env/all.js vendored
View file

@ -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',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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;

View file

@ -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