Commit 299442f6 authored by Evren Kutar's avatar Evren Kutar

tag 0.0.9

parent 2f19f508
0.7.2 0.0.9
\ No newline at end of file \ No newline at end of file
...@@ -74,18 +74,18 @@ angular.module( ...@@ -74,18 +74,18 @@ angular.module(
return {url: backendurl}; return {url: backendurl};
})()) })())
.service('DESIGN', function ($routeParams, $cookies, $log) { // .service('DESIGN', function ($routeParams, $cookies, $log) {
// use route param to change cookie for design // // use route param to change cookie for design
// this is a config as a service added for designer can work without backend // // this is a config as a service added for designer can work without backend
try { // try {
if (angular.isDefined($routeParams.design) || location.hash.split('?')[1].split('=')[1]) { // if (angular.isDefined($routeParams.design) || location.hash.split('?')[1].split('=')[1]) {
$cookies.put('design', $routeParams.design || location.hash.split('?')[1].split('=')[1]); // $cookies.put('design', $routeParams.design || location.hash.split('?')[1].split('=')[1]);
} // }
} catch (e){ // } catch (e){
$log.error("Error for design parameter", e); // $log.error("Error for design parameter", e);
} // }
return $cookies.get('design') === 'true' ? {switch: true} : {switch: false}; // return $cookies.get('design') === 'true' ? {switch: true} : {switch: false};
}) // })
.constant('toastr', window.toastr) .constant('toastr', window.toastr)
.constant('WS', window.WebSocket) .constant('WS', window.WebSocket)
.config(function ($logProvider) { .config(function ($logProvider) {
......
...@@ -34,10 +34,9 @@ angular.module('ulakbus.crud') ...@@ -34,10 +34,9 @@ angular.module('ulakbus.crud')
$scope.generateTitleMap = function (kw) { $scope.generateTitleMap = function (kw) {
var searchData = { var searchData = {
form_params: { form_params: {
view: $scope.node.quick_add_view,
model: $scope.node.quick_add_model, model: $scope.node.quick_add_model,
wf: 'crud', query: kw
query: kw,
cmd: 'object_search'
} }
}; };
if (angular.isDefined($scope.$parent.form_params.param)){ if (angular.isDefined($scope.$parent.form_params.param)){
......
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
<ng-include src="'components/dashboard/user-templates/student.html'" ng-if="$root.current_user.is_student"></ng-include> <ng-include src="'components/dashboard/user-templates/student.html'" ng-if="$root.current_user.is_student"></ng-include>
<ng-include src="'components/dashboard/user-templates/staff.html'" ng-if="!$root.current_user.is_student"></ng-include> <ng-include src="'components/dashboard/user-templates/staff.html'" ng-if="!$root.current_user.is_student"></ng-include>
<ng-include src="'components/dashboard/user-templates/academician.html'" ng-if="$root.current_user.is_staff && $root.current_user.is_academic"></ng-include> <ng-include src="'components/dashboard/user-templates/academician.html'" ng-if="$root.current_user.is_staff && $root.current_user.is_academic"></ng-include>
<user-tasks></user-tasks> <!-- <user-tasks></user-tasks> -->
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -5,4 +5,4 @@ angular.module('ulakbus.version', [ ...@@ -5,4 +5,4 @@ angular.module('ulakbus.version', [
'ulakbus.version.version-directive' 'ulakbus.version.version-directive'
]) ])
.value('version', '0.8.0'); .value('version', '0.0.9');
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,7 @@ describe('ulakbus.version module', function() { ...@@ -5,7 +5,7 @@ describe('ulakbus.version module', function() {
describe('version service', function() { describe('version service', function() {
it('should return current version', inject(function(version) { it('should return current version', inject(function(version) {
expect(version).toEqual('0.8.0'); expect(version).toEqual('0.0.9');
})); }));
}); });
}); });
\ No newline at end of file
...@@ -111,6 +111,7 @@ ...@@ -111,6 +111,7 @@
<script src="shared/directives.js"></script> <script src="shared/directives.js"></script>
<script src="zetalib/interceptors.js"></script> <script src="zetalib/interceptors.js"></script>
<script src="zetalib/form_service.js"></script> <script src="zetalib/form_service.js"></script>
<script src="zetalib/form_constraints.js"></script>
<script src="zetalib/action_service.js"></script> <script src="zetalib/action_service.js"></script>
<script src="zetalib/error_service.js"></script> <script src="zetalib/error_service.js"></script>
<script src="zetalib/socket.js"></script> <script src="zetalib/socket.js"></script>
......
...@@ -119,6 +119,7 @@ ...@@ -119,6 +119,7 @@
<script src="shared/directives.js"></script> <script src="shared/directives.js"></script>
<script src="zetalib/interceptors.js"></script> <script src="zetalib/interceptors.js"></script>
<script src="zetalib/form_service.js"></script> <script src="zetalib/form_service.js"></script>
<script src="zetalib/form_constraints.js"></script>
<script src="zetalib/action_service.js"></script> <script src="zetalib/action_service.js"></script>
<script src="zetalib/error_service.js"></script> <script src="zetalib/error_service.js"></script>
<script src="zetalib/socket.js"></script> <script src="zetalib/socket.js"></script>
......
...@@ -79,18 +79,18 @@ angular.module( ...@@ -79,18 +79,18 @@ angular.module(
return {url: backendurl}; return {url: backendurl};
})()) })())
.service('DESIGN', function ($routeParams, $cookies, $log) { // .service('DESIGN', function ($routeParams, $cookies, $log) {
// use route param to change cookie for design // // use route param to change cookie for design
// this is a config as a service added for designer can work without backend // // this is a config as a service added for designer can work without backend
try { // try {
if (angular.isDefined($routeParams.design) || location.hash.split('?')[1].split('=')[1]) { // if (angular.isDefined($routeParams.design) || location.hash.split('?')[1].split('=')[1]) {
$cookies.put('design', $routeParams.design || location.hash.split('?')[1].split('=')[1]); // $cookies.put('design', $routeParams.design || location.hash.split('?')[1].split('=')[1]);
} // }
} catch (e){ // } catch (e){
$log.error("Error for design parameter", e); // $log.error("Error for design parameter", e);
} // }
return $cookies.get('design') === 'true' ? {switch: true} : {switch: false}; // return $cookies.get('design') === 'true' ? {switch: true} : {switch: false};
}) // })
.constant('toastr', window.toastr) .constant('toastr', window.toastr)
.constant('WS', window.WebSocket) .constant('WS', window.WebSocket)
.config(function ($logProvider) { .config(function ($logProvider) {
......
...@@ -306,7 +306,7 @@ angular.module('ulakbus') ...@@ -306,7 +306,7 @@ angular.module('ulakbus')
restrict: 'E', restrict: 'E',
replace: true, replace: true,
scope: {}, scope: {},
controller: function ($scope, $rootScope, $cookies, $route, AuthService, WSOps, RESTURL, DESIGN, $log, $location, $window, $timeout) { controller: function ($scope, $rootScope, $cookies, $route, AuthService, WSOps, RESTURL, $log, $location, $window, $timeout) {
$scope.prepareMenu = function (menuItems) { $scope.prepareMenu = function (menuItems) {
var newMenuItems = {}; var newMenuItems = {};
angular.forEach(menuItems, function (value, key) { angular.forEach(menuItems, function (value, key) {
......
/**
* Copyright (C) 2015 ZetaOps Inc.
*
* This file is licensed under the GNU General Public License v3
* (GPLv3). See LICENSE.txt for details.
*
* @author Evren Kutar
*/
angular.module('ulakbus')
.factory('FormConstraints', function ($q, $timeout) {
// Generic functions
/**
* gets expression and returns reject/resolve promise
* @param condition {Expression}
* @returns {Promise}
*/
var cond = function (condition) {
return !condition;
};
var cond_generator = function () {
return {
lt: function (a, b) {
return !(a < b);
},
gt: function (a, b) {
return !(a > b);
}
}
};
/**
*
* @param va1 {String} value of input
* @param val2 {Array} values of other inputs
* @param condition {String}
*/
var cond_multiple = function (val1, val2, condition) {
var valid = true;
angular.forEach(val2, function (value, key) {
inputval = angular.element(document.querySelector('#' + value)).val();
if (cond_generator()[condition](val1, inputval)) {
valid = false;
}
});
return valid;
};
var fo_co = {};
/**
* lesser than
* @param value {String,Number}
* @param ref_val {String,Number}
* @param type {String}
* @returns {Promise}
*/
fo_co.lt = function (value, ref_val) {
return cond(value > ref_val);
};
/**
* lesser than date
* @param value {String,Number}
* @param ref_val {String,Number}
* @param type {String}
* @returns {Promise}
*/
fo_co.lt_date = function (value, ref_val) {
return cond(value > ref_val);
};
/**
* lesser than multiple
* @param value {String,Number}
* @param ref_vals {Array}
* @param type {String}
* @returns {Promise}
*/
fo_co.ltm = function (value, ref_vals) {
return cond_multiple(value, ref_vals, 'lt');
};
/**
* greater than
* @param value {String,Number}
* @param ref_val {String,Number}
* @param type {String}
* @returns {Promise}
*/
fo_co.gt = function (value, ref_val) {
return cond(value < ref_val);
};
/**
* greater than date
* @param value {String,Number}
* @param ref_val {String,Number}
* @param type {String}
* @returns {Promise}
*/
fo_co.gt_date = function (value, ref_val) {
return cond(value < ref_val);
};
/**
* greater than multiple
* @param value {String,Number}
* @param ref_vals {Array}
* @param type {String}
* @returns {Promise}
*/
fo_co.gtm = function (value, ref_vals) {
return cond_multiple(value, ref_vals, 'gt');
};
/**
* disable fields when input has value
* @param value {String,Number}
* @param fields {Array} they must be schemaform schema property items
* @param type {String}
*/
fo_co.disable_fields = function (value, fields) {
$timeout(function () {
if (value.length > 0) {
// todo: test and make it work
fields.style = 'hidden';
} else {
fields.style = 'show';
}
})
};
return fo_co;
});
\ No newline at end of file
...@@ -29,7 +29,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap']) ...@@ -29,7 +29,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
* @name Generator * @name Generator
* @description form service's Generator factory service handles all generic form operations * @description form service's Generator factory service handles all generic form operations
*/ */
.factory('Generator', function ($http, $q, $timeout, $sce, $location, $route, $compile, $log, RESTURL, $rootScope, Moment, WSOps) { .factory('Generator', function ($http, $q, $timeout, $sce, $location, $route, $compile, $log, RESTURL, $rootScope, Moment, WSOps, FormConstraints) {
var generator = {}; var generator = {};
/** /**
* @memberof ulakbus.formService * @memberof ulakbus.formService
...@@ -190,6 +190,84 @@ angular.module('ulakbus.formService', ['ui.bootstrap']) ...@@ -190,6 +190,84 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
scope.form = newForm.concat(scope.form); scope.form = newForm.concat(scope.form);
return scope; return scope;
}; };
/**
* @description generates form constraints as async validators
* async validators defined in form_constraints.js
* keys are input names
* @example
* `
* forms.constraints = {
*
* // date field type constraint to greater than certain date
* 'birth_date': {
* cons: 'gt_date',
* val: '22.10.1988',
* val_msg: 'Birthdate must be greater than 22.10.1988'
* },
* // a number field lesser than a certain number
* 'number': {
* cons: 'lt',
* val: 50,
* val_msg: 'number must be lesser than 50'
* },
* // a field lesser than multiple fields' values
* 'some_input': {
* cons: 'lt_m',
* val: ['this', 'and', 'that', 'inputs'],
* val_msg: 'some_input must be lesser than this, and, that, inputs'
* },
* // a field shows some other fields
* 'some_input2': {
* cons: 'selectbox_fields',
* val: [
* {'val1': ['this', 'and']},
* {'val2': ['this2', 'and2']}]
* val_msg: 'some_input2 disables this, and, this, inputs'
* },
* // a field hides some other fields
* 'some_input3': {
* cons: 'checkbox_fields',
* val: [
* {'val1': ['this', 'and']},
* {'val2': ['this2', 'and2']}]
* val_msg: 'some_input2 disables this, and, this, inputs'
* },
* // todo: a field change changes other field or fields values
* }
* `
* @param scope
*/
generator.constraints = function (scope) {
angular.forEach(scope.form, function (v, k) {
try {
var cons = scope.forms.constraints[v] || scope.forms.constraints[v.key];
if (angular.isDefined(cons)) {
if (v.constructor === String) {
scope.form[k] = {
key: v,
validationMessage: {'form_cons': cons.val_msg},
$validators: {
form_cons: function (value) {
return FormConstraints[cons.cons](value, cons.val);
}
}
};
} else {
v.key = v.key;
v.validationMessage = angular.extend({'form_cons': cons.val_msg}, v.validationMessage);
v.$asyncValidators = angular.extend({
form_cons: function (value) {
return FormConstraints[cons.cons](value, cons.val)
}
}, v.$asyncValidators);
}
}
} catch (e) {
$log.error(e.message);
}
});
return generator.group(scope);
};
/** /**
* @memberof ulakbus.formService * @memberof ulakbus.formService
* @ngdoc function * @ngdoc function
...@@ -236,7 +314,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap']) ...@@ -236,7 +314,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
scope.form[scope.form.indexOf(k)] = { scope.form[scope.form.indexOf(k)] = {
type: v.type, type: v.type,
title: v.title, title: v.title,
style: (v.style || "btn-danger")+" hide " + buttonClass, style: (v.style || "btn-danger") + " hide " + buttonClass,
onClick: function () { onClick: function () {
delete scope.form_params.cmd; delete scope.form_params.cmd;
delete scope.form_params.flow; delete scope.form_params.flow;
...@@ -273,6 +351,8 @@ angular.module('ulakbus.formService', ['ui.bootstrap']) ...@@ -273,6 +351,8 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
} }
} }
}; };
// ADD CONSTRAINTS if cons
// replace buttons according to their position values // replace buttons according to their position values
$timeout(function () { $timeout(function () {
var selectorBottom = '.buttons-on-bottom' + workOnDiv; var selectorBottom = '.buttons-on-bottom' + workOnDiv;
...@@ -311,8 +391,9 @@ angular.module('ulakbus.formService', ['ui.bootstrap']) ...@@ -311,8 +391,9 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
url: scope.url, url: scope.url,
wf: v.wf || scope.wf, wf: v.wf || scope.wf,
quick_add: v.quick_add, quick_add: v.quick_add,
quick_add_field: v.quick_add_field, quick_add_view: v.quick_add_view,
quick_add_model: v.quick_add_model, quick_add_model: v.quick_add_model,
quick_add_field: v.quick_add_field,
nodeModelChange: function (item) { nodeModelChange: function (item) {
} }
...@@ -596,11 +677,11 @@ angular.module('ulakbus.formService', ['ui.bootstrap']) ...@@ -596,11 +677,11 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
}, },
int: {default: _numbers}, int: {default: _numbers},
boolean: { boolean: {
default: function () { default: function (scope, v, k) {
} }
}, },
string: { string: {
default: function () { default: function (scope, v, k) {
} }
}, },
typeahead: { typeahead: {
...@@ -745,8 +826,16 @@ angular.module('ulakbus.formService', ['ui.bootstrap']) ...@@ -745,8 +826,16 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
} }
}; };
// todo: delete after constraints done
scope.forms = scope.forms || {};
scope.forms.constraints = {
"erkek_kardes_sayisi": {
"cons": "ltm",
"val": ["kiz_kardes_sayisi"],
"val_msg": "Erkek kardes sayisi kiz kardes sayisindan az olamaz."
}
};
angular.forEach(scope.schema.properties, function (v, k) { angular.forEach(scope.schema.properties, function (v, k) {
// generically change _id fields model value // generically change _id fields model value
if ('form_params' in scope) { if ('form_params' in scope) {
if (k == scope.form_params.param) { if (k == scope.form_params.param) {
...@@ -766,7 +855,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap']) ...@@ -766,7 +855,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
}); });
$log.debug('scope at after prepareformitems', scope); $log.debug('scope at after prepareformitems', scope);
return generator.group(scope); generator.constraints(scope);
}; };
/** /**
* @memberof ulakbus.formService * @memberof ulakbus.formService
...@@ -1293,7 +1382,8 @@ angular.module('ulakbus.formService', ['ui.bootstrap']) ...@@ -1293,7 +1382,8 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
scope.node.schema.wf = scope.node.url; scope.node.schema.wf = scope.node.url;
angular.forEach(scope.node.schema.properties, function (value, key) { angular.forEach(scope.node.schema.properties, function (value, key) {
if (angular.isDefined(scope.node.schema.properties[key].wf)){} if (angular.isDefined(scope.node.schema.properties[key].wf)) {
}
else { else {
scope.node.schema.properties[key].wf = scope.node.url; scope.node.schema.properties[key].wf = scope.node.url;
} }
......
...@@ -145,8 +145,8 @@ angular.module('ulakbus') ...@@ -145,8 +145,8 @@ angular.module('ulakbus')
// do_action is the dispatcher function for incoming events // do_action is the dispatcher function for incoming events
var do_action = function (options) { var do_action = function (options) {
// remove mask from crud here // remove mask from crud here
togglePageReadyMask(0); // togglePageReadyMask(0);
$log.info("togglePageReadyMask off"); // $log.info("togglePageReadyMask off");
var args = [].slice.call(arguments, 0), var args = [].slice.call(arguments, 0),
initialized = false, initialized = false,
action = 'init'; action = 'init';
...@@ -182,8 +182,8 @@ angular.module('ulakbus') ...@@ -182,8 +182,8 @@ angular.module('ulakbus')
wsOps.callbacks[request.callbackID] = deferred; wsOps.callbacks[request.callbackID] = deferred;
websocket.send(angular.toJson(request)); websocket.send(angular.toJson(request));
$log.info('SENT:', data); $log.info('SENT:', data);
togglePageReadyMask(1); // togglePageReadyMask(1);
$log.info("togglePageReadyMask on"); // $log.info("togglePageReadyMask on");
// //
// todo: add success & error promises // todo: add success & error promises
return deferred.promise.then(function (response) { return deferred.promise.then(function (response) {
......
{ {
"name": "ulakbus-ui", "name": "ulakbus-ui",
"description": "UI for Ulakbüs", "description": "UI for Ulakbüs",
"version": "0.4.0", "version": "0.1.0",
"homepage": "https://github.com/zetaops/ulakbus-ui", "homepage": "https://github.com/zetaops/ulakbus-ui",
"license": "GPL", "license": "GPL",
"private": false, "private": false,
...@@ -13,13 +13,14 @@ ...@@ -13,13 +13,14 @@
"angular-animate": "1.4.7", "angular-animate": "1.4.7",
"angular-route": "1.4.7", "angular-route": "1.4.7",
"angular-resource": "1.4.7", "angular-resource": "1.4.7",
"angular-sanitize": "1.4.7",
"angular-cookies": "1.4.7", "angular-cookies": "1.4.7",
"angular-bootstrap": "0.14.3", "angular-bootstrap": "0.14.3",
"angular-i18n": "1.4.7", "angular-i18n": "1.4.7",
"angular-markdown-filter": "1.3.2", "angular-markdown-filter": "1.3.2",
"font-awesome": "4.3.0", "font-awesome": "4.3.0",
"angular-schema-form": "0.8.3", "angular-schema-form": "0.8.3",
"angular-loading-bar": "~0.8.0", "angular-loading-bar": "0.9.0",
"angular-toggle-switch": "~1.2.1", "angular-toggle-switch": "~1.2.1",
"metisMenu": "~1.1.3", "metisMenu": "~1.1.3",
"angular-chart.js": "~0.5.2", "angular-chart.js": "~0.5.2",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
angular.module('templates-prod', ['components/admin/bpmn_manager.html', 'components/auth/login.html', 'components/crud/templates/crud-preload.html', 'components/crud/templates/crud.html', 'components/crud/templates/filter.html', 'components/crud/templates/form.html', 'components/crud/templates/inline_edit.html', 'components/crud/templates/list.html', 'components/crud/templates/nodeTable.html', 'components/crud/templates/quick_add.html', 'components/crud/templates/show.html', 'components/dashboard/dashboard.html', 'components/dashboard/directives/academic-calendar.html', 'components/dashboard/directives/calendar-popover.html', 'components/dashboard/directives/user-tasks.html', 'components/dashboard/user-info.html', 'components/dashboard/user-templates/academician.html', 'components/dashboard/user-templates/staff.html', 'components/dashboard/user-templates/student.html', 'components/debug/debug.html', 'components/devSettings/devSettings.html', 'components/error_pages/404.html', 'components/error_pages/500.html', 'components/uitemplates/404.html', 'components/uitemplates/500.html', 'components/uitemplates/academician.html', 'components/uitemplates/base.html', 'components/uitemplates/staff.html', 'components/uitemplates/student.html', 'shared/templates/actionsModalContent.html', 'shared/templates/add.html', 'shared/templates/confirm.html', 'shared/templates/datefield.html', 'shared/templates/directives/alert.html', 'shared/templates/directives/chat.html', 'shared/templates/directives/guide-help.html', 'shared/templates/directives/header-breadcrumb.html', 'shared/templates/directives/header-notification.html', 'shared/templates/directives/header-sub-menu.html', 'shared/templates/directives/menuCollapse.html', 'shared/templates/directives/msgbox.html', 'shared/templates/directives/notifications.html', 'shared/templates/directives/right-sidebar.html', 'shared/templates/directives/search.html', 'shared/templates/directives/selected-user.html', 'shared/templates/directives/selectedUserPopover.html', 'shared/templates/directives/sidebar-search.html', 'shared/templates/directives/sidebar.html', 'shared/templates/directives/sort.html', 'shared/templates/directives/stats.html', 'shared/templates/directives/timeline.html', 'shared/templates/fieldset.html', 'shared/templates/filefield.html', 'shared/templates/foreignKey.html', 'shared/templates/linkedModelModalContent.html', 'shared/templates/listnodeModalContent.html', 'shared/templates/modalContent.html', 'shared/templates/multiselect.html', 'shared/templates/notificationsModalContent.html', 'shared/templates/select.html', 'shared/templates/translate.html', 'shared/templates/typeahead.html']); angular.module('templates-prod', ['components/admin/bpmn_manager.html', 'components/auth/login.html', 'components/crud/templates/crud-preload.html', 'components/crud/templates/crud.html', 'components/crud/templates/filter.html', 'components/crud/templates/form.html', 'components/crud/templates/inline_edit.html', 'components/crud/templates/list.html', 'components/crud/templates/nodeTable.html', 'components/crud/templates/quick_add.html', 'components/crud/templates/show.html', 'components/dashboard/dashboard.html', 'components/dashboard/directives/academic-calendar.html', 'components/dashboard/directives/calendar-popover.html', 'components/dashboard/directives/user-tasks.html', 'components/dashboard/user-info.html', 'components/dashboard/user-templates/academician.html', 'components/dashboard/user-templates/staff.html', 'components/dashboard/user-templates/student.html', 'components/debug/debug.html', 'components/devSettings/devSettings.html', 'components/error_pages/404.html', 'components/error_pages/500.html', 'components/uitemplates/404.html', 'components/uitemplates/500.html', 'components/uitemplates/academician.html', 'components/uitemplates/base.html', 'components/uitemplates/form_service_pg.html', 'components/uitemplates/staff.html', 'components/uitemplates/student.html', 'shared/templates/actionsModalContent.html', 'shared/templates/add.html', 'shared/templates/confirm.html', 'shared/templates/datefield.html', 'shared/templates/directives/alert.html', 'shared/templates/directives/chat.html', 'shared/templates/directives/guide-help.html', 'shared/templates/directives/header-breadcrumb.html', 'shared/templates/directives/header-notification.html', 'shared/templates/directives/header-sub-menu.html', 'shared/templates/directives/menuCollapse.html', 'shared/templates/directives/msgbox.html', 'shared/templates/directives/notifications.html', 'shared/templates/directives/right-sidebar.html', 'shared/templates/directives/search.html', 'shared/templates/directives/selected-user.html', 'shared/templates/directives/selectedUserPopover.html', 'shared/templates/directives/sidebar-search.html', 'shared/templates/directives/sidebar.html', 'shared/templates/directives/sort.html', 'shared/templates/directives/stats.html', 'shared/templates/directives/timeline.html', 'shared/templates/fieldset.html', 'shared/templates/filefield.html', 'shared/templates/foreignKey.html', 'shared/templates/linkedModelModalContent.html', 'shared/templates/listnodeModalContent.html', 'shared/templates/modalContent.html', 'shared/templates/multiselect.html', 'shared/templates/notificationsModalContent.html', 'shared/templates/select.html', 'shared/templates/translate.html', 'shared/templates/typeahead.html']);
angular.module("components/admin/bpmn_manager.html", []).run(["$templateCache", function($templateCache) { angular.module("components/admin/bpmn_manager.html", []).run(["$templateCache", function($templateCache) {
$templateCache.put("components/admin/bpmn_manager.html", $templateCache.put("components/admin/bpmn_manager.html",
...@@ -488,7 +488,7 @@ angular.module("components/dashboard/dashboard.html", []).run(["$templateCache", ...@@ -488,7 +488,7 @@ angular.module("components/dashboard/dashboard.html", []).run(["$templateCache",
" <ng-include src=\"'components/dashboard/user-templates/student.html'\" ng-if=\"$root.current_user.is_student\"></ng-include>\n" + " <ng-include src=\"'components/dashboard/user-templates/student.html'\" ng-if=\"$root.current_user.is_student\"></ng-include>\n" +
" <ng-include src=\"'components/dashboard/user-templates/staff.html'\" ng-if=\"!$root.current_user.is_student\"></ng-include>\n" + " <ng-include src=\"'components/dashboard/user-templates/staff.html'\" ng-if=\"!$root.current_user.is_student\"></ng-include>\n" +
" <ng-include src=\"'components/dashboard/user-templates/academician.html'\" ng-if=\"$root.current_user.is_staff && $root.current_user.is_academic\"></ng-include>\n" + " <ng-include src=\"'components/dashboard/user-templates/academician.html'\" ng-if=\"$root.current_user.is_staff && $root.current_user.is_academic\"></ng-include>\n" +
" <user-tasks></user-tasks>\n" + " <!-- <user-tasks></user-tasks> -->\n" +
" </div>\n" + " </div>\n" +
"</div>"); "</div>");
}]); }]);
...@@ -1473,6 +1473,16 @@ angular.module("components/uitemplates/base.html", []).run(["$templateCache", fu ...@@ -1473,6 +1473,16 @@ angular.module("components/uitemplates/base.html", []).run(["$templateCache", fu
"</div>"); "</div>");
}]); }]);
angular.module("components/uitemplates/form_service_pg.html", []).run(["$templateCache", function($templateCache) {
$templateCache.put("components/uitemplates/form_service_pg.html",
"<div>\n" +
" <select ng-model=\"selection\" ng-options=\"forms.indexOf(form) as form.name for form in forms\" ng-change=\"selectform(selection)\">\n" +
" </select>\n" +
"\n" +
" <form sf-schema=\"schema\" sf-form=\"form\" sf-model=\"model\"></form>\n" +
"</div>");
}]);
angular.module("components/uitemplates/staff.html", []).run(["$templateCache", function($templateCache) { angular.module("components/uitemplates/staff.html", []).run(["$templateCache", function($templateCache) {
$templateCache.put("components/uitemplates/staff.html", $templateCache.put("components/uitemplates/staff.html",
"<div class=\"dashboard-main-search clearfix\">\n" + "<div class=\"dashboard-main-search clearfix\">\n" +
......
{ {
"name": "ulakbus-ui", "name": "ulakbus-ui",
"private": true, "private": true,
"version": "0.0.1", "version": "0.1.0",
"description": "", "description": "",
"repository": "https://github.com/zetaops/ulakbus-ui", "repository": "https://github.com/zetaops/ulakbus-ui",
"license": "GPL", "license": "GPL",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment