got admin-form to work
This commit is contained in:
parent
3cd4c2395c
commit
cd83a8a558
|
@ -33,7 +33,7 @@
|
|||
"angular-input-stars": "https://github.com/whitef0x0/angular-input-stars.git#master",
|
||||
"raven-js": "^3.0.4",
|
||||
"tableExport.jquery.plugin": "^1.5.1",
|
||||
"angular-translate": "~2.11.0"
|
||||
"angular-translate": "~2.11.0",
|
||||
"js-yaml": "^3.6.1",
|
||||
"angular-ui-select": "whitef0x0/ui-select#compiled"
|
||||
},
|
||||
|
|
|
@ -12,7 +12,6 @@ var _ = require('lodash'),
|
|||
var exists = require('path-exists').sync;
|
||||
|
||||
var minBowerFiles = function(type){
|
||||
console.log(type);
|
||||
return bowerFiles(type).map( function(path, index, arr) {
|
||||
var newPath = path.replace(/.([^.]+)$/g, '.min.$1');
|
||||
return exists( newPath ) ? newPath : path;
|
||||
|
|
19
config/env/all.js
vendored
19
config/env/all.js
vendored
|
@ -72,9 +72,9 @@ module.exports = {
|
|||
assets: {
|
||||
css: [
|
||||
'public/modules/**/css/*.css',
|
||||
'public/modules/**/demo/**/*.css',
|
||||
'public/modules/**/dist/**/*.css',
|
||||
'public/modules/**/node_modules/**/*.css'
|
||||
'!public/modules/**/demo/**/*.css',
|
||||
'!public/modules/**/dist/**/*.css',
|
||||
'!public/modules/**/node_modules/**/*.css'
|
||||
],
|
||||
js: [
|
||||
'public/dist/populate_template_cache.js',
|
||||
|
@ -83,10 +83,19 @@ module.exports = {
|
|||
'public/*.js',
|
||||
'public/modules/*/*.js',
|
||||
'public/modules/*/*/*.js',
|
||||
'public/modules/**/*.js'
|
||||
'public/modules/*/*/*/*.js',
|
||||
'!public/modules/**/gruntfile.js',
|
||||
'!public/modules/**/demo/**/*.js',
|
||||
'!public/modules/**/dist/**/*.js',
|
||||
'!public/modules/**/node_modules/**/*.js',
|
||||
'!public/modules/**/tests/**/*.js'
|
||||
],
|
||||
views: [
|
||||
'public/modules/**/*.html'
|
||||
'public/modules/**/*.html',
|
||||
'!public/modules/**/demo/**/*.html',
|
||||
'!public/modules/**/dist/**/*.html',
|
||||
'!public/modules/**/node_modules/**/*.html',
|
||||
'!public/modules/**/tests/**/*.html'
|
||||
],
|
||||
unit_tests: [
|
||||
'public/lib/angular-mocks/angular-mocks.js',
|
||||
|
|
|
@ -99,6 +99,7 @@ angular.module('forms').directive('fieldDirective', ['$http', '$compile', '$root
|
|||
fieldType = 'textfield';
|
||||
}
|
||||
var template = getTemplateUrl(fieldType);
|
||||
console.log(template);
|
||||
element.html(template).show();
|
||||
var output = $compile(element.contents())(scope);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
angular.module('forms').directive('submitFormDirective', ['$http', 'TimeCounter', '$filter', '$rootScope', 'Auth', 'SendVisitorData',
|
||||
function ($http, TimeCounter, $filter, $rootScope, Auth, SendVisitorData) {
|
||||
return {
|
||||
templateUrl: 'modules/forms/base/views/directiveViews/form/submit-form.client.view.html', restrict: 'E',
|
||||
templateUrl: 'modules/forms/base/views/directiveViews/form/submit-form.client.view.html',
|
||||
restrict: 'E',
|
||||
scope: {
|
||||
myform:'='
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue