one step back
This commit is contained in:
parent
a52b464da5
commit
22b4d69570
|
@ -2,18 +2,18 @@
|
||||||
|
|
||||||
// Setting up route
|
// Setting up route
|
||||||
angular.module('forms').config([
|
angular.module('forms').config([
|
||||||
'$stateProvider', '$templateCache',
|
'$stateProvider',
|
||||||
|
|
||||||
function($stateProvider, $templateCache) {
|
function($stateProvider) {
|
||||||
// Forms state routing
|
// Forms state routing
|
||||||
$stateProvider.
|
$stateProvider.
|
||||||
state('listForms', {
|
state('listForms', {
|
||||||
url: '/forms',
|
url: '/forms',
|
||||||
template: $templateCache.get('modules/forms/views/list-forms.client.view.html')
|
templateUrl: 'modules/forms/views/list-forms.client.view.html'
|
||||||
}).
|
}).
|
||||||
state('submitForm', {
|
state('submitForm', {
|
||||||
url: '/forms/:formId',
|
url: '/forms/:formId',
|
||||||
template: $templateCache.get('modules/forms/views/submit-form.client.view.html'),
|
templateUrl: 'modules/forms/views/submit-form.client.view.html',
|
||||||
data: {
|
data: {
|
||||||
hideNav: true,
|
hideNav: true,
|
||||||
},
|
},
|
||||||
|
@ -27,7 +27,7 @@ angular.module('forms').config([
|
||||||
controllerAs: 'ctrl'
|
controllerAs: 'ctrl'
|
||||||
}).state('viewForm', {
|
}).state('viewForm', {
|
||||||
url: '/forms/:formId/admin',
|
url: '/forms/:formId/admin',
|
||||||
template: $templateCache.get('modules/forms/views/admin-form.client.view.html'),
|
templateUrl: 'modules/forms/views/admin-form.client.view.html',
|
||||||
data: {
|
data: {
|
||||||
permissions: [ 'editForm' ]
|
permissions: [ 'editForm' ]
|
||||||
},
|
},
|
||||||
|
@ -40,16 +40,16 @@ angular.module('forms').config([
|
||||||
controller: 'AdminFormController'
|
controller: 'AdminFormController'
|
||||||
}).state('viewForm.configure', {
|
}).state('viewForm.configure', {
|
||||||
url: '/configure',
|
url: '/configure',
|
||||||
template: $templateCache.get('modules/forms/views/adminTabs/configure.html')
|
templateUrl: 'modules/forms/views/adminTabs/configure.html'
|
||||||
}).state('viewForm.design', {
|
}).state('viewForm.design', {
|
||||||
url: '/design',
|
url: '/design',
|
||||||
template: $templateCache.get('modules/forms/views/adminTabs/design.html')
|
templateUrl: 'modules/forms/views/adminTabs/design.html'
|
||||||
}).state('viewForm.analyze', {
|
}).state('viewForm.analyze', {
|
||||||
url: '/analyze',
|
url: '/analyze',
|
||||||
template: $templateCache.get('modules/forms/views/adminTabs/analyze.html')
|
templateUrl: 'modules/forms/views/adminTabs/analyze.html'
|
||||||
}).state('viewForm.create', {
|
}).state('viewForm.create', {
|
||||||
url: '/create',
|
url: '/create',
|
||||||
template: $templateCache.get('modules/forms/views/adminTabs/create.html')
|
templateUrl: 'modules/forms/views/adminTabs/create.html'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('forms').directive('configureFormDirective', [
|
angular.module('forms').directive('configureFormDirective', [
|
||||||
'$rootScope', '$http', 'Upload', 'CurrentForm', '$templateCache',
|
'$rootScope', '$http', 'Upload', 'CurrentForm',
|
||||||
function ($rootScope, $http, Upload, CurrentForm, $templateCache) {
|
function ($rootScope, $http, Upload, CurrentForm) {
|
||||||
return {
|
return {
|
||||||
template: $templateCache.get('modules/forms/views/directiveViews/form/configure-form.client.view.html'),
|
templateUrl: 'modules/forms/views/directiveViews/form/configure-form.client.view.html',
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
scope: {
|
scope: {
|
||||||
myform:'=',
|
myform:'=',
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('forms').directive('editFormDirective', [
|
angular.module('forms').directive('editFormDirective', [
|
||||||
'$rootScope', 'FormFields', '$templateCache',
|
'$rootScope', 'FormFields',
|
||||||
function ($rootScope, FormFields, $templateCache) {
|
function ($rootScope, FormFields) {
|
||||||
return {
|
return {
|
||||||
template: $templateCache.get('modules/forms/views/directiveViews/form/edit-form.client.view.html'),
|
templateUrl: 'modules/forms/views/directiveViews/form/edit-form.client.view.html',
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
scope: {
|
scope: {
|
||||||
myform:'=',
|
myform:'=',
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('forms').directive('editSubmissionsFormDirective', [
|
angular.module('forms').directive('editSubmissionsFormDirective', [
|
||||||
'$rootScope', '$http', '$templateCache',
|
'$rootScope', '$http',
|
||||||
function ($rootScope, $http, $templateCache) {
|
function ($rootScope, $http) {
|
||||||
return {
|
return {
|
||||||
template: $templateCache.get('modules/forms/views/directiveViews/form/edit-submissions-form.client.view.html'),
|
templateUrl: 'modules/forms/views/directiveViews/form/edit-submissions-form.client.view.html',
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
scope: {
|
scope: {
|
||||||
myform:'=',
|
myform:'=',
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('forms').directive('submitFormDirective', ['$http', 'TimeCounter', '$filter', '$rootScope', 'Auth', '$templateCache',
|
angular.module('forms').directive('submitFormDirective', ['$http', 'TimeCounter', '$filter', '$rootScope', 'Auth',
|
||||||
function ($http, TimeCounter, $filter, $rootScope, Auth, $templateCache) {
|
function ($http, TimeCounter, $filter, $rootScope, Auth) {
|
||||||
return {
|
return {
|
||||||
template: $templateCache.get('modules/forms/views/directiveViews/form/submit-form.client.view.html'),
|
templateUrl: 'modules/forms/views/directiveViews/form/submit-form.client.view.html',
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
scope: {
|
scope: {
|
||||||
myform:'='
|
myform:'='
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
// Setting up route
|
// Setting up route
|
||||||
angular.module('users').config([
|
angular.module('users').config([
|
||||||
'$stateProvider', '$templateCache',
|
'$stateProvider',
|
||||||
function($stateProvider, $templateCache) {
|
function($stateProvider) {
|
||||||
|
|
||||||
var checkLoggedin = function($q, $timeout, $state, User, Auth) {
|
var checkLoggedin = function($q, $timeout, $state, User, Auth) {
|
||||||
var deferred = $q.defer();
|
var deferred = $q.defer();
|
||||||
|
@ -35,64 +35,64 @@ angular.module('users').config([
|
||||||
loggedin: checkLoggedin
|
loggedin: checkLoggedin
|
||||||
},
|
},
|
||||||
url: '/settings/profile',
|
url: '/settings/profile',
|
||||||
template: $templateCache.get('modules/users/views/settings/edit-profile.client.view.html')
|
templateUrl: 'modules/users/views/settings/edit-profile.client.view.html'
|
||||||
}).
|
}).
|
||||||
state('password', {
|
state('password', {
|
||||||
resolve: {
|
resolve: {
|
||||||
loggedin: checkLoggedin
|
loggedin: checkLoggedin
|
||||||
},
|
},
|
||||||
url: '/settings/password',
|
url: '/settings/password',
|
||||||
template: $templateCache.get('modules/users/views/settings/change-password.client.view.html')
|
templateUrl: 'modules/users/views/settings/change-password.client.view.html'
|
||||||
}).
|
}).
|
||||||
state('accounts', {
|
state('accounts', {
|
||||||
resolve: {
|
resolve: {
|
||||||
loggedin: checkLoggedin
|
loggedin: checkLoggedin
|
||||||
},
|
},
|
||||||
url: '/settings/accounts',
|
url: '/settings/accounts',
|
||||||
template: $templateCache.get('modules/users/views/settings/social-accounts.client.view.html')
|
templateUrl: 'modules/users/views/settings/social-accounts.client.view.html'
|
||||||
}).
|
}).
|
||||||
|
|
||||||
state('signup', {
|
state('signup', {
|
||||||
url: '/signup',
|
url: '/signup',
|
||||||
template: $templateCache.get('modules/users/views/authentication/signup.client.view.html')
|
templateUrl: 'modules/users/views/authentication/signup.client.view.html'
|
||||||
}).
|
}).
|
||||||
state('signup-success', {
|
state('signup-success', {
|
||||||
url: '/signup-success',
|
url: '/signup-success',
|
||||||
template: $templateCache.get('modules/users/views/authentication/signup-success.client.view.html')
|
templateUrl: 'modules/users/views/authentication/signup-success.client.view.html'
|
||||||
}).
|
}).
|
||||||
state('signin', {
|
state('signin', {
|
||||||
url: '/signin',
|
url: '/signin',
|
||||||
template: $templateCache.get('modules/users/views/authentication/signin.client.view.html')
|
templateUrl: 'modules/users/views/authentication/signin.client.view.html'
|
||||||
}).
|
}).
|
||||||
state('access_denied', {
|
state('access_denied', {
|
||||||
url: '/access_denied',
|
url: '/access_denied',
|
||||||
template: $templateCache.get('modules/users/views/authentication/access-denied.client.view.html')
|
templateUrl: 'modules/users/views/authentication/access-denied.client.view.html'
|
||||||
}).
|
}).
|
||||||
|
|
||||||
state('resendVerifyEmail', {
|
state('resendVerifyEmail', {
|
||||||
url: '/verify',
|
url: '/verify',
|
||||||
template: $templateCache.get('modules/users/views/verify/resend-verify-email.client.view.html')
|
templateUrl: 'modules/users/views/verify/resend-verify-email.client.view.html'
|
||||||
}).
|
}).
|
||||||
state('verify', {
|
state('verify', {
|
||||||
url: '/verify/:token',
|
url: '/verify/:token',
|
||||||
template: $templateCache.get('modules/users/views/verify/verify-account.client.view.html')
|
templateUrl: 'modules/users/views/verify/verify-account.client.view.html'
|
||||||
}).
|
}).
|
||||||
|
|
||||||
state('forgot', {
|
state('forgot', {
|
||||||
url: '/password/forgot',
|
url: '/password/forgot',
|
||||||
template: $templateCache.get('modules/users/views/password/forgot-password.client.view.html')
|
templateUrl: 'modules/users/views/password/forgot-password.client.view.html'
|
||||||
}).
|
}).
|
||||||
state('reset-invalid', {
|
state('reset-invalid', {
|
||||||
url: '/password/reset/invalid',
|
url: '/password/reset/invalid',
|
||||||
template: $templateCache.get('modules/users/views/password/reset-password-invalid.client.view.html')
|
templateUrl: 'modules/users/views/password/reset-password-invalid.client.view.html'
|
||||||
}).
|
}).
|
||||||
state('reset-success', {
|
state('reset-success', {
|
||||||
url: '/password/reset/success',
|
url: '/password/reset/success',
|
||||||
template: $templateCache.get('modules/users/views/password/reset-password-success.client.view.html')
|
templateUrl: 'modules/users/views/password/reset-password-success.client.view.html'
|
||||||
}).
|
}).
|
||||||
state('reset', {
|
state('reset', {
|
||||||
url: '/password/reset/:token',
|
url: '/password/reset/:token',
|
||||||
template: $templateCache.get('modules/users/views/password/reset-password.client.view.html')
|
templateUrl: 'modules/users/views/password/reset-password.client.view.html'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue