one step back
This commit is contained in:
parent
a52b464da5
commit
22b4d69570
|
@ -2,18 +2,18 @@
|
|||
|
||||
// Setting up route
|
||||
angular.module('forms').config([
|
||||
'$stateProvider', '$templateCache',
|
||||
'$stateProvider',
|
||||
|
||||
function($stateProvider, $templateCache) {
|
||||
function($stateProvider) {
|
||||
// Forms state routing
|
||||
$stateProvider.
|
||||
state('listForms', {
|
||||
url: '/forms',
|
||||
template: $templateCache.get('modules/forms/views/list-forms.client.view.html')
|
||||
templateUrl: 'modules/forms/views/list-forms.client.view.html'
|
||||
}).
|
||||
state('submitForm', {
|
||||
url: '/forms/:formId',
|
||||
template: $templateCache.get('modules/forms/views/submit-form.client.view.html'),
|
||||
templateUrl: 'modules/forms/views/submit-form.client.view.html',
|
||||
data: {
|
||||
hideNav: true,
|
||||
},
|
||||
|
@ -27,7 +27,7 @@ angular.module('forms').config([
|
|||
controllerAs: 'ctrl'
|
||||
}).state('viewForm', {
|
||||
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: {
|
||||
permissions: [ 'editForm' ]
|
||||
},
|
||||
|
@ -40,16 +40,16 @@ angular.module('forms').config([
|
|||
controller: 'AdminFormController'
|
||||
}).state('viewForm.configure', {
|
||||
url: '/configure',
|
||||
template: $templateCache.get('modules/forms/views/adminTabs/configure.html')
|
||||
templateUrl: 'modules/forms/views/adminTabs/configure.html'
|
||||
}).state('viewForm.design', {
|
||||
url: '/design',
|
||||
template: $templateCache.get('modules/forms/views/adminTabs/design.html')
|
||||
templateUrl: 'modules/forms/views/adminTabs/design.html'
|
||||
}).state('viewForm.analyze', {
|
||||
url: '/analyze',
|
||||
template: $templateCache.get('modules/forms/views/adminTabs/analyze.html')
|
||||
templateUrl: 'modules/forms/views/adminTabs/analyze.html'
|
||||
}).state('viewForm.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';
|
||||
|
||||
angular.module('forms').directive('configureFormDirective', [
|
||||
'$rootScope', '$http', 'Upload', 'CurrentForm', '$templateCache',
|
||||
function ($rootScope, $http, Upload, CurrentForm, $templateCache) {
|
||||
'$rootScope', '$http', 'Upload', 'CurrentForm',
|
||||
function ($rootScope, $http, Upload, CurrentForm) {
|
||||
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',
|
||||
scope: {
|
||||
myform:'=',
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('forms').directive('editFormDirective', [
|
||||
'$rootScope', 'FormFields', '$templateCache',
|
||||
function ($rootScope, FormFields, $templateCache) {
|
||||
'$rootScope', 'FormFields',
|
||||
function ($rootScope, FormFields) {
|
||||
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',
|
||||
scope: {
|
||||
myform:'=',
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('forms').directive('editSubmissionsFormDirective', [
|
||||
'$rootScope', '$http', '$templateCache',
|
||||
function ($rootScope, $http, $templateCache) {
|
||||
'$rootScope', '$http',
|
||||
function ($rootScope, $http) {
|
||||
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',
|
||||
scope: {
|
||||
myform:'=',
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('forms').directive('submitFormDirective', ['$http', 'TimeCounter', '$filter', '$rootScope', 'Auth', '$templateCache',
|
||||
function ($http, TimeCounter, $filter, $rootScope, Auth, $templateCache) {
|
||||
angular.module('forms').directive('submitFormDirective', ['$http', 'TimeCounter', '$filter', '$rootScope', 'Auth',
|
||||
function ($http, TimeCounter, $filter, $rootScope, Auth) {
|
||||
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',
|
||||
scope: {
|
||||
myform:'='
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
// Setting up route
|
||||
angular.module('users').config([
|
||||
'$stateProvider', '$templateCache',
|
||||
function($stateProvider, $templateCache) {
|
||||
'$stateProvider',
|
||||
function($stateProvider) {
|
||||
|
||||
var checkLoggedin = function($q, $timeout, $state, User, Auth) {
|
||||
var deferred = $q.defer();
|
||||
|
@ -35,64 +35,64 @@ angular.module('users').config([
|
|||
loggedin: checkLoggedin
|
||||
},
|
||||
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', {
|
||||
resolve: {
|
||||
loggedin: checkLoggedin
|
||||
},
|
||||
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', {
|
||||
resolve: {
|
||||
loggedin: checkLoggedin
|
||||
},
|
||||
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', {
|
||||
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', {
|
||||
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', {
|
||||
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', {
|
||||
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', {
|
||||
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', {
|
||||
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', {
|
||||
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', {
|
||||
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', {
|
||||
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', {
|
||||
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