Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ulakbus
ulakbus-ui
Commits
d9596de4
Commit
d9596de4
authored
Sep 16, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
listnode implementation to new data structure
parent
af63f0f7
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
102 additions
and
224 deletions
+102
-224
crud_controller.js
app/components/crud/crud_controller.js
+0
-2
directives.js
app/shared/directives.js
+1
-0
add.html
app/shared/templates/add.html
+4
-4
header-breadcrumb.html
app/shared/templates/directives/header-breadcrumb.html
+6
-0
header-notification.html
app/shared/templates/directives/header-notification.html
+3
-4
form_service.js
app/zetalib/forms/form_service.js
+85
-212
interceptors.js
app/zetalib/interceptors.js
+3
-2
No files found.
app/components/crud/crud_controller.js
View file @
d9596de4
...
...
@@ -33,8 +33,6 @@ crud.controller('CRUDAddEditCtrl', function ($scope, $rootScope, $location, $htt
$scope
.
onSubmit
=
function
(
form
)
{
$scope
.
$broadcast
(
'schemaFormValidate'
);
debugger
;
if
(
form
.
$valid
)
{
Generator
.
submit
(
$scope
)
.
success
(
function
(
data
){
...
...
app/shared/directives.js
View file @
d9596de4
...
...
@@ -58,6 +58,7 @@ app.directive('headerBreadcrumb', function ($location) {
link
:
function
(
$scope
){
$scope
.
$watch
(
'$routeUpdate'
,
function
(){
// todo: create actual links
//debugger;
$scope
.
links
=
$location
.
path
().
split
(
'/'
);
});
}
...
...
app/shared/templates/add.html
View file @
d9596de4
<h1>
{{ schema.title }}
</h1>
<form
id=
"formgenerated"
name=
"formgenerated"
sf-schema=
"schema"
sf-form=
"form"
sf-model=
"model"
></form>
<div
ng-repeat=
"node in
nodes
"
>
<div
ng-repeat=
"node in
Node
"
>
<h3>
{{ node.title }}
<span
ng-if=
"node.lengthModels < 1"
>
<a
href=
"javascript:void(0);"
add-modal-for-node=
{{node.title}}
>
<a
href=
"javascript:void(0);"
modal-for-nodes=
"{{node.title}},Node"
>
<i
class=
"fa fa-plus-circle fa-fw"
></i>
</a>
</span>
...
...
@@ -11,10 +11,10 @@
<ng-include
src=
"'shared/templates/nodeTable.html'"
ng-if=
"node.lengthModels > 0"
></ng-include>
<hr>
</div>
<div
ng-repeat=
"node in
listnodes
"
>
<div
ng-repeat=
"node in
ListNode
"
>
<h3>
{{ node.title }}
<span>
<a
href=
"javascript:void(0);"
add-modal-for-list-node=
{{node.title}}
>
<a
href=
"javascript:void(0);"
modal-for-nodes=
"{{node.title}},ListNode"
>
<i
class=
"fa fa-plus-circle fa-fw"
></i>
</a>
</span>
...
...
app/shared/templates/directives/header-breadcrumb.html
0 → 100644
View file @
d9596de4
<ul
class=
"breadcrumb"
>
<li
ng-repeat=
"link in links"
ng-class=
"{'active':$last}"
>
<a
href=
"#"
ng-if=
"!$last"
>
{{link}}
</a>
<span
ng-if=
"$last"
>
{{link}}
</span>
</li>
</ul>
\ No newline at end of file
app/shared/templates/directives/header-notification.html
View file @
d9596de4
...
...
@@ -194,13 +194,12 @@
<i
class=
"fa fa-user fa-fw"
></i>
<i
class=
"fa fa-caret-down"
></i>
</a>
<ul
class=
"dropdown-menu dropdown-user"
>
<li><a
href=
"#"
><i
class=
"fa fa-user fa-fw"
></i>
User Profile
</a>
<li><a
href=
"#"
><i
class=
"fa fa-user fa-fw"
></i>
Profil
</a>
</li>
<li><a
href=
"#"
><i
class=
"fa fa-gear fa-fw"
></i>
Settings
</a>
<li><a
href=
"#"
><i
class=
"fa fa-gear fa-fw"
></i>
Ayarlar
</a>
</li>
<li><a
href=
"http://www.strapui.com/"
><i
class=
"fa fa-eye fa-fw"
></i>
Premium Angular Themes
</a></li>
<li
class=
"divider"
></li>
<li><a
ui-sref=
"login"
href=
"javascript:void(0);"
logout
><i
class=
"fa fa-sign-out fa-fw"
></i>
Logout
</a>
<li><a
ui-sref=
"login"
href=
"javascript:void(0);"
logout
><i
class=
"fa fa-sign-out fa-fw"
></i>
Çıkış
</a>
</li>
</ul>
<!-- /.dropdown-user -->
...
...
app/zetalib/forms/form_service.js
View file @
d9596de4
This diff is collapsed.
Click to expand it.
app/zetalib/interceptors.js
View file @
d9596de4
...
...
@@ -31,8 +31,9 @@ app.config(['$httpProvider', function ($httpProvider) {
$location
.
path
(
"/dashboard"
);
}
}
if
(
response
.
data
.
screen
)
{
$location
.
path
(
response
.
data
.
screen
);
if
(
response
.
data
.
client_cmd
)
{
//$location.path(response.data.screen);
console
.
log
(
response
.
data
.
client_cmd
);
}
return
response
;
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment