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' '!public/modules/**/node_modules/**/*.css'
], ],
js: [ js: [
'public/dist/populate_template_cache.js',
'public/config.js', 'public/config.js',
'public/application.js', 'public/application.js',
'public/*.js', 'public/dist/populate_template_cache.js',
'public/modules/*/*.js', 'public/modules/*/*.js',
'public/modules/*/*/*.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:'=' myform:'='
}, },
controller: function($scope){ controller: function($scope){
console.log($scope.myform);
var field_ids = _($scope.myform.form_fields).pluck('_id'); var field_ids = _($scope.myform.form_fields).pluck('_id');
for(var i=0; i<field_ids.length; i++){ for(var i=0; i<field_ids.length; i++){
$scope.myform.plugins.oscarhost.settings.fieldMap[field_ids[i]] = null; $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' 'natural'
]; ];
if (__indexOf.call(supported_fields, type) >= 0) { 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'; templateUrl = templateUrl+type+'.html';
}
return $templateCache.get(templateUrl); console.log(templateUrl);
return $templateCache.get(templateUrl);
}
return null;
}; };
return { return {

File diff suppressed because one or more lines are too long