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
61ebf13b
Commit
61ebf13b
authored
Dec 10, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a tag href fix for void(0) unsafe for firefox and safari
parent
f661e39d
Changes
20
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
378 additions
and
214 deletions
+378
-214
Gruntfile.js
Gruntfile.js
+2
-0
app.css
app/app.css
+15
-9
crud_controller.js
app/components/crud/crud_controller.js
+7
-1
form.html
app/components/crud/templates/form.html
+2
-2
list.html
app/components/crud/templates/list.html
+4
-5
dashboard.html
app/components/dashboard/dashboard.html
+13
-13
directives.js
app/shared/directives.js
+26
-14
add.html
app/shared/templates/add.html
+2
-2
header-breadcrumb.html
app/shared/templates/directives/header-breadcrumb.html
+8
-6
header-notification.html
app/shared/templates/directives/header-notification.html
+7
-7
header-sub-menu.html
app/shared/templates/directives/header-sub-menu.html
+0
-2
sidebar-notification.html
app/shared/templates/directives/sidebar-notification.html
+10
-10
sidebar.html
app/shared/templates/directives/sidebar.html
+101
-34
foreignKey.html
app/shared/templates/foreignKey.html
+2
-2
linkedModelModalContent.html
app/shared/templates/linkedModelModalContent.html
+2
-2
multiselect.html
app/shared/templates/multiselect.html
+4
-4
app.js
dist/app.js
+3
-3
components.js
dist/bower_components/components.js
+1
-1
app.css
dist/css/app.css
+15
-9
templates.js
dist/templates.js
+154
-88
No files found.
Gruntfile.js
View file @
61ebf13b
...
...
@@ -75,6 +75,7 @@ module.exports = function (grunt) {
{
expand
:
true
,
cwd
:
'app/img/'
,
src
:
'brand-logo.png'
,
dest
:
'dist/img/'
,
flatten
:
true
,
filter
:
'isFile'
},
{
expand
:
true
,
cwd
:
'app/img/'
,
src
:
'loading_spinner.gif'
,
dest
:
'dist/img/'
,
flatten
:
true
,
filter
:
'isFile'
},
{
expand
:
true
,
cwd
:
'app/img/'
,
src
:
'sample-profile-pic.jpg'
,
dest
:
'dist/img/'
,
flatten
:
true
,
filter
:
'isFile'
},
{
expand
:
true
,
cwd
:
'app/img/'
,
src
:
'empty-profile-pic.jpg'
,
dest
:
'dist/img/'
,
flatten
:
true
,
filter
:
'isFile'
},
{
expand
:
true
,
cwd
:
'app/img/'
,
src
:
'favicon.ico'
,
dest
:
'dist/img/'
,
flatten
:
true
,
filter
:
'isFile'
},
{
expand
:
true
,
cwd
:
'app/styles/roboto/'
,
src
:
'**/*'
,
dest
:
'dist/css/roboto/'
,
flatten
:
false
},
{
expand
:
true
,
cwd
:
'app/styles/'
,
src
:
'jquery-ui.min.css'
,
dest
:
'dist/css/'
,
flatten
:
true
},
...
...
@@ -90,6 +91,7 @@ module.exports = function (grunt) {
{
expand
:
true
,
cwd
:
'app/img/'
,
src
:
'brand-logo.png'
,
dest
:
'dist/img/'
,
flatten
:
true
,
filter
:
'isFile'
},
{
expand
:
true
,
cwd
:
'app/img/'
,
src
:
'loading_spinner.gif'
,
dest
:
'dist/img/'
,
flatten
:
true
,
filter
:
'isFile'
},
{
expand
:
true
,
cwd
:
'app/img/'
,
src
:
'sample-profile-pic.jpg'
,
dest
:
'dist/img/'
,
flatten
:
true
,
filter
:
'isFile'
},
{
expand
:
true
,
cwd
:
'app/img/'
,
src
:
'empty-profile-pic.jpg'
,
dest
:
'dist/img/'
,
flatten
:
true
,
filter
:
'isFile'
},
{
expand
:
true
,
cwd
:
'app/img/'
,
src
:
'favicon.ico'
,
dest
:
'dist/img/'
,
flatten
:
true
,
filter
:
'isFile'
},
{
expand
:
true
,
cwd
:
'app/styles/roboto/'
,
src
:
'**/*'
,
dest
:
'dist/css/roboto/'
,
flatten
:
false
},
{
expand
:
true
,
cwd
:
'app/styles/'
,
src
:
'jquery-ui.min.css'
,
dest
:
'dist/css/'
,
flatten
:
true
},
...
...
app/app.css
View file @
61ebf13b
...
...
@@ -512,16 +512,16 @@ select {
.sidebar-person-info
{
overflow-x
:
visible
;
overflow-y
:
auto
;
position
:
absolute
;
/*position: absolute;*/
width
:
100%
;
max-height
:
calc
(
85%
-
139px
);
background
:
#fff
;
/*max-height: 50%;*/
background
:
whitesmoke
;
/*display:none;*/
/** angular template will hndle this */
}
.sidebar-person-info
.identity
{
color
:
#555
;
padding
:
1
5
px
;
padding
:
1
0
px
;
padding-bottom
:
0px
;
}
...
...
@@ -551,8 +551,8 @@ select {
}
.sidebar-person-info
.identity
img
{
width
:
5
0px
;
height
:
5
0px
;
width
:
4
0px
;
height
:
4
0px
;
border-radius
:
100%
;
margin
:
10px
auto
;
float
:
left
;
...
...
@@ -1423,6 +1423,7 @@ table.dataTable thead .sorting:after {
.sidebar
{
z-index
:
1
;
position
:
absolute
;
overflow-y
:
auto
;
width
:
250px
;
height
:
100%
;
-webkit-box-shadow
:
0
0
25px
rgba
(
0
,
0
,
0
,
0.1
);
...
...
@@ -1446,11 +1447,15 @@ table.dataTable thead .sorting:after {
.sidebar
.sidebar-nav.navbar-collapse
{
overflow-x
:
visible
;
overflow-y
:
auto
;
position
:
absolute
;
/*overflow-y: auto;*/
/*position: absolute;*/
width
:
100%
;
max-height
:
calc
(
100%
-
139px
);
/*max-height: calc(50% - 139px);*/
}
.sidebar-container
{
max-height
:
calc
(
100%
-
120px
);
overflow-y
:
auto
;
}
footer
{
position
:
absolute
;
...
...
@@ -1458,6 +1463,7 @@ table.dataTable thead .sorting:after {
padding
:
15px
;
width
:
100%
;
text-align
:
center
;
background
:
whitesmoke
;
}
footer
span
{
...
...
app/components/crud/crud_controller.js
View file @
61ebf13b
...
...
@@ -146,6 +146,12 @@ angular.module('ulakbus.crud', ['ui.bootstrap', 'schemaForm', 'formService'])
$scope
.
reload
({});
});
// search directive updates objects after search results
$scope
.
$on
(
'updateObjects'
,
function
(
$event
,
data
)
{
$scope
.
objects
=
data
;
CrudUtility
.
listPageItems
(
$scope
,
{
objects
:
$scope
.
objects
});
});
// we use form generator for generic forms. this makes form's scope to confuse on the path to generate form
// object by its name. to manage to locate the form to controllers scope we use a directive called form locator
// a bit dirty way to find form working on but solves our problem
...
...
@@ -203,7 +209,7 @@ angular.module('ulakbus.crud', ['ui.bootstrap', 'schemaForm', 'formService'])
}
else
{
// call generator's get_single_item func
Generator
.
get_
single_item
(
$scope
).
then
(
function
(
res
)
{
Generator
.
get_
wf
(
$scope
).
then
(
function
(
res
)
{
$scope
.
object
=
res
.
data
.
object
;
$scope
.
model
=
$routeParams
.
model
;
});
...
...
app/components/crud/templates/form.html
View file @
61ebf13b
...
...
@@ -9,7 +9,7 @@
<div
ng-repeat=
"node in Node"
>
<h3>
{{ node.title }}
<span
ng-if=
"node.lengthModels < 1"
>
<a
href=
"javascript:void(0);"
modal-for-nodes=
"{{node.schema.model_name}},Node"
>
<a
modal-for-nodes=
"{{node.schema.model_name}},Node"
>
<i
class=
"fa fa-plus-circle fa-fw"
></i>
</a>
</span>
...
...
@@ -23,7 +23,7 @@
<div
ng-repeat=
"node in ListNode"
>
<h3>
{{ node.title }}
<span>
<a
href=
"javascript:void(0);"
modal-for-nodes=
"{{node.schema.model_name}},ListNode,add"
>
<a
modal-for-nodes=
"{{node.schema.model_name}},ListNode,add"
>
<i
class=
"fa fa-plus-circle fa-fw"
></i>
</a>
</span>
...
...
app/components/crud/templates/list.html
View file @
61ebf13b
...
...
@@ -33,8 +33,7 @@
<td
scope=
"row"
style=
"text-align:center"
>
{{$index}}
</td>
<td
ng-repeat=
"field in object.fields track by $index"
>
<a
ng-href=
"javascript:void(0)"
ng-if=
"field.type==='link'"
<a
role=
"button"
ng-if=
"field.type==='link'"
ng-click=
"do_action(object.key, field.cmd, field.mode)"
>
{{field.content}}
</a>
<span
ng-if=
"field.type==='str'"
>
{{field.content}}
</span>
</td>
...
...
@@ -71,16 +70,16 @@
<nav
ng-if=
"pagination && pagination.total_pages > 1"
class=
"text-center"
>
<ul
class=
"pagination"
>
<li
ng-class=
"{disabled:pagination.page===1}"
>
<a
href=
"javascript:void(0)"
aria-label=
"Önceki"
ng-click=
"reload({page:pagination.page-1})"
>
<a
aria-label=
"Önceki"
ng-click=
"reload({page:pagination.page-1})"
>
<span
aria-hidden=
"true"
>
«
</span>
</a>
</li>
<li
ng-repeat=
"page in getNumber(pagination.total_pages) track by $index"
ng-class=
"{active:$index+1===pagination.page}"
>
<a
href=
"javascript:void(0)"
ng-click=
"reload({page:$index+1})"
>
{{$index+1}}
</a>
<a
ng-click=
"reload({page:$index+1})"
>
{{$index+1}}
</a>
</li>
<li
ng-class=
"{disabled:pagination.page===pagination.total_pages}"
>
<a
href=
"javascript:void(0)"
aria-label=
"Sonraki"
ng-click=
"reload({page:pagination.page+1})"
>
<a
aria-label=
"Sonraki"
ng-click=
"reload({page:pagination.page+1})"
>
<span
aria-hidden=
"true"
>
»
</span>
</a>
</li>
...
...
app/components/dashboard/dashboard.html
View file @
61ebf13b
...
...
@@ -4,15 +4,15 @@
<div
class=
"dashboard-main-search clearfix"
>
<div
class=
"dashboard-student-search"
data-step=
"2"
data-intro=
"isim veya tcno ile öğrenci araması yapabilirsiniz."
>
<
center
>
<
div
class=
"text-center"
>
<h3>
ÖĞRENCİ
</h3>
<input
type=
"text"
placeholder=
"Öğrenci ara"
ng-model=
"student_kw"
ng-keyup=
"search('ogrenci')"
>
<span
class=
"fa fa-search"
ng-click=
"search('ogrenci')"
></span>
</
center
>
</
div
>
<div
class=
"dashboard-search-results"
>
<ul
ng-if=
"students.length > 0"
>
<li
ng-repeat=
"student in students"
>
<a
href=
"javascript:void(0)
"
ng-click=
"select(student, 'ogrenci')"
>
{{student[0]}}
</a>
<a
role=
"button
"
ng-click=
"select(student, 'ogrenci')"
>
{{student[0]}}
</a>
</li>
</ul>
</div>
...
...
@@ -21,15 +21,15 @@
<!-- end of dashboard-student-search -->
<div
class=
"dashboard-personnel-search"
data-step=
"3"
data-intro=
"isim veya tcno ile personel araması yapabilirsiniz."
>
<
center
>
<
div
class=
"text-center"
>
<h3>
PERSONEL
</h3>
<input
type=
"text"
placeholder=
"Personel ara"
ng-model=
"staff_kw"
ng-keyup=
"search('personel')"
>
<span
class=
"fa fa-search"
ng-click=
"search('personel')"
></span>
</
center
>
</
div
>
<div
class=
"dashboard-search-results"
>
<ul
ng-if=
"staffs.length > 0"
>
<li
ng-repeat=
"staff in staffs"
>
<a
href=
"javascript:void(0)
"
ng-click=
"select(staff, 'personel')"
>
{{staff[0]}}
</a>
<a
role=
"button
"
ng-click=
"select(staff, 'personel')"
>
{{staff[0]}}
</a>
</li>
</ul>
</div>
...
...
@@ -47,12 +47,12 @@
<div
class=
"right-sidebar-title clearfix"
>
<h3>
Mesajlar
</h3>
<span><a
href=
"javascript:void(0)
"
>
Tüm Mesajlar
</a></span>
<span><a
role=
"button
"
>
Tüm Mesajlar
</a></span>
</div>
<!-- end of right-sidebar-title -->
<div
class=
"right-sidebar-message-block"
ng-repeat=
"notify in notifications[2] | limitTo:5"
>
<a
class=
"clearfix"
href=
"javascript:void(0)"
ng-click=
"markAsRead(notify)"
>
<a
class=
"clearfix"
ng-click=
"markAsRead(notify)"
>
<img
src=
"../../../img/sample-profile-pic.jpg"
>
<div
class=
"right-sidebar-message-content"
>
<div>
{{notify.title}}
</div>
...
...
@@ -75,12 +75,12 @@
<div
class=
"right-sidebar-title clearfix"
>
<h3>
Görevler
</h3>
<span><a
href=
"javascript:void(0)
"
>
Tüm Görevler
</a></span>
<span><a
role=
"button
"
>
Tüm Görevler
</a></span>
</div>
<div
class=
"right-sidebar-task-block"
>
<!--<div class="task-type">Onay Bekleyen Görevler</div>-->
<a
href=
"javascript:void(0)"
ng-click=
"markAsRead(notify)"
ng-repeat=
"notify in notifications[1] | limitTo:5"
>
<a
ng-click=
"markAsRead(notify)"
ng-repeat=
"notify in notifications[1] | limitTo:5"
>
<div
class=
"task-title"
>
{{notify.title}}
</div>
</a>
</div>
...
...
@@ -97,12 +97,12 @@
<div
class=
"right-sidebar-title clearfix"
>
<h3>
Duyurular
</h3>
<span><a
href=
"javascript:void(0)
"
>
Tüm Duyurular
</a></span>
<span><a
role=
"button
"
>
Tüm Duyurular
</a></span>
</div>
<!-- end of right-sidebar-title -->
<div
class=
"right-sidebar-announcement-block"
>
<a
href=
"javascript:void(0)"
ng-click=
"markAsRead(notify)"
<a
ng-click=
"markAsRead(notify)"
ng-repeat=
"notify in notifications[3] | limitTo:5"
>
{{notify
.body}}
</a>
</div>
...
...
@@ -119,7 +119,7 @@
<div
class=
"right-sidebar-title clearfix"
>
<h3>
Son İşlemler
</h3>
<span><a
href=
"javascript:void(0)
"
>
Tüm İşlemler
</a></span>
<span><a
role=
"button
"
>
Tüm İşlemler
</a></span>
</div>
</div>
...
...
app/shared/directives.js
View file @
61ebf13b
...
...
@@ -80,7 +80,7 @@ app.directive('logout', function ($http, $location, RESTURL) {
/**
*
*/
.
directive
(
'searchDirective'
,
function
(
Generator
,
$log
)
{
.
directive
(
'searchDirective'
,
function
(
Generator
,
$log
,
$rootScope
)
{
return
{
templateUrl
:
'shared/templates/directives/search.html'
,
restrict
:
'E'
,
...
...
@@ -117,9 +117,12 @@ app.directive('logout', function ($http, $location, RESTURL) {
}
};
Generator
.
submit
(
searchparams
);
Generator
.
submit
(
searchparams
).
success
(
function
(
data
)
{
// update objects item of page scope
$rootScope
.
$broadcast
(
'updateObjects'
,
data
.
objects
);
});
}
}
}
;
}
};
})
...
...
@@ -243,16 +246,22 @@ app.directive('logout', function ($http, $location, RESTURL) {
* produces breadcrumb with related links
*/
.
directive
(
'headerBreadcrumb'
,
function
()
{
.
directive
(
'headerBreadcrumb'
,
function
(
$location
)
{
return
{
templateUrl
:
'shared/templates/directives/header-breadcrumb.html'
,
restrict
:
'E'
,
replace
:
true
replace
:
false
,
link
:
function
(
$scope
)
{
$scope
.
goBack
=
function
()
{
$location
.
state
();
}
}
};
})
/**
* selected user directive
* todo: unused
*/
.
directive
(
'selectedUser'
,
function
(
$http
,
RESTURL
)
{
...
...
@@ -309,6 +318,7 @@ app.directive('logout', function ($http, $location, RESTURL) {
};
var
sidebarmenu
=
$
(
'#side-menu'
);
var
sidebarUserMenu
=
$
(
'#side-user-menu'
);
sidebarmenu
.
metisMenu
();
$http
.
get
(
RESTURL
.
url
+
'menu/'
)
.
success
(
function
(
data
)
{
...
...
@@ -343,6 +353,7 @@ app.directive('logout', function ($http, $location, RESTURL) {
$timeout
(
function
()
{
sidebarmenu
.
metisMenu
();
sidebarUserMenu
.
metisMenu
();
});
});
...
...
@@ -351,10 +362,12 @@ app.directive('logout', function ($http, $location, RESTURL) {
$scope
.
$on
(
"menuitems"
,
function
(
event
,
data
)
{
var
menu
=
{};
menu
[
data
]
=
$scope
.
allMenuItems
[
data
];
menu
[
'other'
]
=
$scope
.
allMenuItems
.
other
;
$scope
.
m
enuItems
=
$scope
.
prepareMenu
(
menu
);
//
menu['other'] = $scope.allMenuItems.other;
$scope
.
selectedM
enuItems
=
$scope
.
prepareMenu
(
menu
);
$timeout
(
function
()
{
sidebarmenu
.
metisMenu
()
sidebarmenu
.
metisMenu
();
sidebarUserMenu
.
metisMenu
();
});
});
...
...
@@ -362,6 +375,11 @@ app.directive('logout', function ($http, $location, RESTURL) {
$scope
.
selectedUser
=
data
;
});
$scope
.
deselectUser
=
function
()
{
delete
$scope
.
selectedUser
;
delete
$scope
.
selectedMenuItems
;
};
$scope
.
openSidebar
=
function
()
{
if
(
$window
.
innerWidth
>
'768'
)
{
if
(
$rootScope
.
sidebarPinned
===
0
)
{
...
...
@@ -409,13 +427,7 @@ app.directive('logout', function ($http, $location, RESTURL) {
// breadcrumb function changes breadcrumb items and itemlist must be list
$scope
.
breadcrumb
=
function
(
itemlist
,
$event
)
{
//if ($event.target.href==location.href) {
// $route.reload();
//}
$rootScope
.
breadcrumblinks
=
itemlist
;
// showSaveButton is used for to show or not to show save button on top of the page
// todo: remove button
$rootScope
.
showSaveButton
=
false
;
};
$scope
.
multiCheck
=
function
(
y
)
{
...
...
app/shared/templates/add.html
View file @
61ebf13b
...
...
@@ -5,7 +5,7 @@
<div
ng-repeat=
"node in Node"
>
<h3>
{{ node.title }}
<span
ng-if=
"node.lengthModels < 1"
>
<a
href=
"javascript:void(0);"
modal-for-nodes=
"{{node.title}},Node"
>
<a
modal-for-nodes=
"{{node.title}},Node"
>
<i
class=
"fa fa-plus-circle fa-fw"
></i>
</a>
</span>
...
...
@@ -18,7 +18,7 @@
<div
ng-repeat=
"node in ListNode"
>
<h3>
{{ node.title }}
<span>
<a
href=
"javascript:void(0);"
modal-for-nodes=
"{{node.title}},ListNode"
>
<a
modal-for-nodes=
"{{node.title}},ListNode"
>
<i
class=
"fa fa-plus-circle fa-fw"
></i>
</a>
</span>
...
...
app/shared/templates/directives/header-breadcrumb.html
View file @
61ebf13b
<ul
class=
"breadcrumb"
>
<li
ng-repeat=
"link in $root.breadcrumblinks"
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
<button
type=
"button"
class=
"close breadcrumb pull-left"
><i
class=
"fa fa-angle-left"
></i>
Geri
</button>
<!--<ul class="breadcrumb">-->
<!--<li ng-repeat="link in $root.breadcrumblinks" ng-class="{'active':$last}">-->
<!--<a href="#" ng-if="!$last">{{link}}</a>-->
<!--<span ng-if="$last">{{link}}</span>-->
<!--</li>-->
<!--</ul>-->
<button
type=
"button"
class=
"close breadcrumb pull-right"
ng-click=
"goBack()"
>
İleri
<i
class=
"fa fa-angle-right"
></i></button>
\ No newline at end of file
app/shared/templates/directives/header-notification.html
View file @
61ebf13b
...
...
@@ -6,7 +6,7 @@
</a>
<ul
class=
"dropdown-menu dropdown-messages"
ng-if=
"notifications[2].length > 0"
>
<li
ng-repeat=
"notify in notifications[2] | limitTo: '8'"
>
<a
href=
"javascript:void(0)"
ng-click=
"markAsRead(notify)"
>
<a
ng-click=
"markAsRead(notify)"
>
<div>
<strong>
{{notify.title}}
</strong>
<span
class=
"pull-right text-muted"
>
...
...
@@ -18,7 +18,7 @@
</li>
<li
class=
"divider"
></li>
<li>
<a
class=
"text-center"
href=
"javascript:void(0)"
>
<a
class=
"text-center"
>
<strong>
Read All Messages
</strong>
<i
class=
"fa fa-angle-right"
></i>
</a>
...
...
@@ -34,7 +34,7 @@
</a>
<ul
class=
"dropdown-menu dropdown-tasks"
ng-if=
"notifications[1].length > 0"
>
<li
ng-repeat=
"notify in notifications[1] | limitTo: '8'"
>
<a
href=
"javascript:void(0)"
ng-click=
"markAsRead(notify)"
>
<a
ng-click=
"markAsRead(notify)"
>
<div>
<p>
<strong>
{{notify.title}}
</strong>
...
...
@@ -52,7 +52,7 @@
</li>
<li
class=
"divider"
></li>
<li>
<a
class=
"text-center"
href=
"javascript:void(0)"
>
<a
class=
"text-center"
>
<strong>
See All Tasks
</strong>
<i
class=
"fa fa-angle-right"
></i>
</a>
...
...
@@ -68,7 +68,7 @@
</a>
<ul
class=
"dropdown-menu dropdown-alerts"
ng-if=
"notifications[3].length > 0"
>
<li>
<a
href=
"javascript:void(0)
"
>
<a
role=
"button
"
>
<div>
<i
class=
"fa fa-comment fa-fw"
></i>
New Comment
<span
class=
"pull-right text-muted small"
>
4 minutes ago
</span>
...
...
@@ -84,9 +84,9 @@
<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=
"javascript:void(0)
"
><i
class=
"fa fa-user fa-fw"
></i>
Profil
</a></li>
<li><a
role=
"button
"
><i
class=
"fa fa-user fa-fw"
></i>
Profil
</a></li>
<li
class=
"divider"
></li>
<li><a
href=
"javascript:void(0)
"
><i
class=
"fa fa-gear fa-fw"
></i>
Ayarlar
</a></li>
<li><a
role=
"button
"
><i
class=
"fa fa-gear fa-fw"
></i>
Ayarlar
</a></li>
<li><a
href=
"#/dev/settings"
><i
class=
"fa fa-gear fa-fw"
></i>
Ayarlar (Dev)
</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>
Çıkış
</a></li>
...
...
app/shared/templates/directives/header-sub-menu.html
View file @
61ebf13b
...
...
@@ -2,7 +2,5 @@
<div
class=
"clearfix"
>
<header-breadcrumb></header-breadcrumb>
<loaderdiv><div></div></loaderdiv>
<!--<div class="loader">Loading...</div>-->
<selected-user
class=
"pull-right"
></selected-user>
</div>
</div>
\ No newline at end of file
app/shared/templates/directives/sidebar-notification.html
View file @
61ebf13b
...
...
@@ -5,12 +5,12 @@
<div
class=
"right-sidebar-title clearfix"
>
<h3>
Mesajlar
</h3>
<span><a
href=
"javascript:void(0)
"
>
Tüm Mesajlar
</a></span>
<span><a
role=
"button
"
>
Tüm Mesajlar
</a></span>
</div>
<!-- end of right-sidebar-title -->
<div
class=
"right-sidebar-message-block"
ng-repeat=
"notify in notifications[2] | limitTo:5"
>
<a
class=
"clearfix"
href=
"javascript:void(0)"
>
<a
class=
"clearfix"
>
<img
src=
"../../../img/sample-profile-pic.jpg"
>
<div
class=
"right-sidebar-message-content"
>
<div>
{{notify.title}}
</div>
...
...
@@ -33,13 +33,13 @@
<div
class=
"right-sidebar-title clearfix"
>
<h3>
Görevler
</h3>
<span><a
href=
"javascript:void(0)
"
>
Tüm Görevler
</a></span>
<span><a
role=
"button
"
>
Tüm Görevler
</a></span>
</div>
<!-- end of right-sidebar-title -->
<!--<div class="right-sidebar-task-block">-->
<!--<div class="task-type">Devam Eden Görevler</div>-->
<!--<a
href="javascript:void(0)
">-->
<!--<a
role="button
">-->
<!--<div class="task-title">Öğrenci Kayıt</div>-->
<!--<div class="progress">-->
<!--<div class="progress-bar" role="progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em; width:25%;">-->
...
...
@@ -53,7 +53,7 @@
<div
class=
"right-sidebar-task-block"
>
<div
class=
"task-type"
>
Onay Bekleyen Görevler
</div>
<a
href=
"javascript:void(0)"
ng-repeat=
"notify in notifications[1] | limitTo:5"
>
<a
ng-repeat=
"notify in notifications[1] | limitTo:5"
>
<div
class=
"task-title"
>
{{notify.title}}
</div>
</a>
</div>
...
...
@@ -70,12 +70,12 @@
<div
class=
"right-sidebar-title clearfix"
>
<h3>
Duyurular
</h3>
<span><a
href=
"javascript:void(0)
"
>
Tüm Duyurular
</a></span>
<span><a
role=
"button
"
>
Tüm Duyurular
</a></span>
</div>
<!-- end of right-sidebar-title -->
<div
class=
"right-sidebar-announcement-block"
>
<a
href=
"javascript:void(0)"
ng-repeat=
"notify in notifications[3] | limitTo:5"
>
{{notify.body}}
</a>
<a
ng-repeat=
"notify in notifications[3] | limitTo:5"
>
{{notify.body}}
</a>
</div>
<!-- end of right-sidebar-status-block -->
...
...
@@ -90,13 +90,13 @@
<div
class=
"right-sidebar-title clearfix"
>
<h3>
Son İşlemler
</h3>
<span><a
href=
"javascript:void(0)
"
>
Tüm İşlemler
</a></span>
<span><a
role=
"button
"
>
Tüm İşlemler
</a></span>
</div>
<!-- end of right-sidebar-title -->
<div
class=
"right-sidebar-last-action-block"
>
<a
href=
"javascript:void(0)
"
>
Birinci dönem bitimine 10 gün kaldı.
</a>
<a
href=
"javascript:void(0)
"
>
Ders seçimi işlemleri xx tarihinde başlayacaktır.
</a>
<a
role=
"button
"
>
Birinci dönem bitimine 10 gün kaldı.
</a>
<a
role=
"button
"
>
Ders seçimi işlemleri xx tarihinde başlayacaktır.
</a>
</div>
<!-- end of right-sidebar-status-block -->
...
...
app/shared/templates/directives/sidebar.html
View file @
61ebf13b
<div
class=
"navbar-default sidebar"
role=
"navigation"
ng-mouseenter=
"openSidebar()"
ng-mouseleave=
"closeSidebar()"
>
<div
class=
"sidebar-nav navbar-collapse"
>
<ul
class=
"nav in"
id=
"side-menu"
ng-class=
"{hidden: $root.loggedInUser != true}"
data-step=
"1"
data-intro=
"seçilen personele veya öğrenciye göre ilgili menüler yer almaktadır. yapılacak işlemi buradan seçebilirsiniz."
>
<!--<sidebar-search></sidebar-search>-->
<li
ui-sref-active=
"active"
>
<a
href=
"#/dashboard"
ng-click=
"breadcrumb(['Panel'])"
><i
class=
"fa fa-dashboard fa-fw"
></i>
<span
class=
"menu-text"
ng-class=
"{hidden: $root.collapsed}"
>
Panel
</span>
</a>
</li>
<li
ng-repeat=
"(key, item) in menuItems"
ng-class=
"{active: collapseVar == $index+1}"
>
{{dropDown}}
<a
href=
""
ng-click=
"check($index+1)"
>
<i
class=
"fa fa-fw"
ng-class=
"{
'Admin': 'fa fa-fw fa-terminal',
'Genel': 'fa fa-fw fa-graduation-cap',
'Alt Kategori': 'fa fa-fw fa-tags',
'Kadro Islemleri': 'fa fa-fw fa-users',
'Seçime Uygun Görevler':'fa fa-fw fa-users'
}[item[0].kategori]"
></i>
<span
class=
"menu-text"
ng-class=
"{hidden: $root.collapsed}"
>
{{ key }}
</span>
<span
class=
"fa arrow"
ng-class=
"{hidden: $root.collapsed}"
></span>
</a>
<ul
class=
"nav nav-second-level"
ng-class=
"{hidden: $root.collapsed}"
>
<li
ng-repeat=
"(k, v) in item"
>
<!--<a ng-if="v.model" ng-href="#{{v.url}}" ng- -->
<!--ng-click="breadcrumb([key, v.text], $event)">{{v.text}}</a>-->
<a
ng-href=
"#/{{v.wf}}/{{v.model}}?{{v.param}}={{selectedUser.key}}"
ng-click=
"breadcrumb([key, v.text], $event)"
>
{{v.text}}
</a>
<div
class=
"sidebar-container"
>
<!-- sidebar-person-info -->
<div
class=
"sidebar-person-info"
>
<!--<button class="btn btn-primary close-sidebar-person-info">Profili Kapat</button>-->
<div
class=
"identity"
>
<button
type=
"button"
class=
"close"
ng-class=
"{hidden: $root.collapsed || !selectedUser}"
ng-click=
"deselectUser()"
aria-label=
"Close"
><span
aria-hidden=
"true"
>
×
</span></button>
<div
class=
"identity-header clearfix"
>
<img
ng-src=
"{{selectedUser ? '/img/sample-profile-pic.jpg' : '/img/empty-profile-pic.jpg'}}"
>
<div
class=
"pull-left"
ng-class=
"{hidden: $root.collapsed}"
>
<p
class=
"identity-name"
>
{{selectedUser.name || 'Kişi seçilmedi.'}}
</p>
<p
class=
"identity-surname"
>
{{selectedUser.surname}}
</p>
<p>
{{selectedUser ? 'TCNo: ' + selectedUser.tcno : ''}}
</p>
</div>
</div>
<!-- end of identity-header -->
<!--<div class="identity-info" ng-class="{hidden: $root.collapsed}">-->
<!--<div class="clearfix">-->
<!--<span class="fa fa-envelope"></span>-->
<!--<div>erkanogum@gmail.com</div>-->
<!--</div>-->
<!--<div class="clearfix">-->
<!--<span class="fa fa-home"></span>-->
<!--<div>İşçi Blokları Mah. 1524. sokak B Blok 6. Kat A Kanat 27 numara</div>-->
<!--</div>-->
<!--</div>-->
</div>
<!-- end of identity -->
<div
class=
""
>
<ul
class=
"nav in"
id=
"side-user-menu"
ng-class=
"{hidden: !selectedMenuItems}"
data-step=
"2"
data-intro=
"seçilen personele veya öğrenciye göre ilgili menüler yer almaktadır. yapılacak işlemi buradan seçebilirsiniz."
>
<li
ng-repeat=
"(key, item) in selectedMenuItems"
ng-class=
"{active: collapseVar == $index+1}"
>
{{dropDown}}
<a
href=
""
ng-click=
"check($index+1)"
>
<i
class=
"fa fa-fw"
ng-class=
"{
'Admin': 'fa fa-fw fa-terminal',
'Genel': 'fa fa-fw fa-graduation-cap',
'Alt Kategori': 'fa fa-fw fa-tags',
'Kadro Islemleri': 'fa fa-fw fa-users',
'Seçime Uygun Görevler':'fa fa-fw fa-user'
}[item[0].kategori]"
></i>
<span
class=
"menu-text"
ng-class=
"{hidden: $root.collapsed}"
>
{{ key }}
</span>
<span
class=
"fa arrow"
ng-class=
"{hidden: $root.collapsed}"
></span>
</a>
<ul
class=
"nav nav-second-level"
ng-class=
"{hidden: $root.collapsed}"
>
<li
ng-repeat=
"(k, v) in item"
>
<!--<a ng-if="v.model" ng-href="#{{v.url}}" ng- -->
<!--ng-click="breadcrumb([key, v.text], $event)">{{v.text}}</a>-->
<a
ng-href=
"#/{{v.wf}}/{{v.model}}?{{v.param}}={{selectedUser.key}}"
ng-click=
"breadcrumb([key, v.text], $event)"
>
{{v.text}}
</a>
</li>
</ul>
<!-- /.nav-second-level -->
</li>
</ul>
<!-- /.nav-second-level -->
</li>
</ul>
</div>
<!-- /.sidebar-collapse -->
</div>
<!-- end of person-actions -->
</div>
<!-- end of sidebar-person-info -->
<div
class=
"sidebar-nav navbar-collapse"
>
<ul
class=
"nav in"
id=
"side-menu"
ng-class=
"{hidden: $root.loggedInUser != true}"
data-step=
"1"
data-intro=
"Genel menüler yer almaktadır. yapılacak işlemi buradan seçebilirsiniz."
>
<!--<sidebar-search></sidebar-search>-->
<li
ui-sref-active=
"active"
>
<a
href=
"#/dashboard"
ng-click=
"breadcrumb(['Panel'])"
><i
class=
"fa fa-dashboard fa-fw"
></i>
<span
class=
"menu-text"
ng-class=
"{hidden: $root.collapsed}"
>
Panel
</span>
</a>
</li>
<li
ng-repeat=
"(key, item) in menuItems"
ng-class=
"{active: collapseVar == $index+1}"
>
{{dropDown}}
<a
href=
""
ng-click=
"check($index+1)"
>
<i
class=
"fa fa-fw"
ng-class=
"{
'Admin': 'fa fa-fw fa-terminal',
'Genel': 'fa fa-fw fa-graduation-cap',
'Alt Kategori': 'fa fa-fw fa-tags',
'Kadro Islemleri': 'fa fa-fw fa-users',
'Seçime Uygun Görevler':'fa fa-fw fa-user'
}[item[0].kategori]"
></i>
<span
class=
"menu-text"
ng-class=
"{hidden: $root.collapsed}"
>
{{ key }}
</span>
<span
class=
"fa arrow"
ng-class=
"{hidden: $root.collapsed}"
></span>
</a>
<ul
class=
"nav nav-second-level"
ng-class=
"{hidden: $root.collapsed}"
>
<li
ng-repeat=
"(k, v) in item"
>
<!--<a ng-if="v.model" ng-href="#{{v.url}}" ng- -->
<!--ng-click="breadcrumb([key, v.text], $event)">{{v.text}}</a>-->
<a
ng-href=
"#/{{v.wf}}/{{v.model}}?{{v.param}}={{selectedUser.key}}"
ng-click=
"breadcrumb([key, v.text], $event)"
>
{{v.text}}
</a>
</li>
</ul>
<!-- /.nav-second-level -->
</li>
</ul>
</div>
<!-- /.sidebar-collapse -->
</div>
<footer
ng-class=
"{hidden: $root.collapsed}"
>
<a
class=
"btn btn-large btn-success"
href=
"javascript:void(0);"
onclick=
"javascript:introJs().setOptions({
'nextLabel': 'Sonraki', 'prevLabel': 'Öncek', 'skipLabel': 'Atla', 'doneLabel': 'Bitir' }).start();"
>
Yardım
...
...
app/shared/templates/foreignKey.html
View file @
61ebf13b
...
...
@@ -4,7 +4,7 @@
<label
class=
"control-label {{form.labelHtmlClass}}"
ng-show=
"showTitle()"
>
{{form.title}}
</label>
<a><i
class=
"fa fa-plus-circle fa-fw"
add-modal-for-linked-model=
"{{form.formName}}"
></i></a>
<a
role=
"button"
><i
class=
"fa fa-plus-circle fa-fw"
add-modal-for-linked-model=
"{{form.formName}}"
></i></a>
<div
class=
"form-group input-group"
>
<span
class=
"input-group-btn"
>
...
...
@@ -13,7 +13,7 @@
</button>
<ul
class=
"dropdown-menu"
>
<li
ng-repeat=
"item in form.titleMap"
>
<a
href=
"javascript:void(0)"
ng-click=
"form.onDropdownSelect(item, form.model_name)"
>
{{item
<a
ng-click=
"form.onDropdownSelect(item, form.model_name)"
>
{{item
.name}}
</a>
</li>
</ul>
...
...
app/shared/templates/linkedModelModalContent.html
View file @
61ebf13b
...
...
@@ -6,7 +6,7 @@
<div
ng-repeat=
"node in Node"
>
<h3>
{{ node.title }}
<span
ng-if=
"node.lengthModels < 1"
>
<a
href=
"javascript:void(0);"
modal-for-nodes=
"{{node.schema.model_name}},Node"
>
<a
modal-for-nodes=
"{{node.schema.model_name}},Node"
>
<i
class=
"fa fa-plus-circle fa-fw"
></i>
</a>
</span>
...
...
@@ -20,7 +20,7 @@
<div
ng-repeat=
"node in ListNode"
>
<h3>
{{ node.title }}
<span>
<a
href=
"javascript:void(0);"
modal-for-nodes=
"{{node.schema.model_name}},ListNode,add"
>
<a
modal-for-nodes=
"{{node.schema.model_name}},ListNode,add"
>
<i
class=
"fa fa-plus-circle fa-fw"
></i>
</a>
</span>
...
...
app/shared/templates/multiselect.html
View file @
61ebf13b
...
...
@@ -4,7 +4,7 @@
<label
class=
"control-label {{form.labelHtmlClass}}"
ng-show=
"showTitle()"
>
{{form.title}}
</label>
<a><i
class=
"fa fa-plus-circle fa-fw"
add-modal-for-linked-model=
"{{form.formName}}"
></i></a>
<a
role=
"button"
><i
class=
"fa fa-plus-circle fa-fw"
add-modal-for-linked-model=
"{{form.formName}}"
></i></a>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
...
...
@@ -31,8 +31,8 @@
</div>
<div
class=
"col-md-12 text-center"
>
<a><i
class=
"fa fa-arrow-down fa-fw"
ng-click=
"form.select(selectedItemsModel)"
></i></a>
<a><i
class=
"fa fa-arrow-up fa-fw"
ng-click=
"form.deselect(selectedFilteredItemsModel)"
></i></a>
<a
role=
"button"
><i
class=
"fa fa-arrow-down fa-fw"
ng-click=
"form.select(selectedItemsModel)"
></i></a>
<a
role=
"button"
><i
class=
"fa fa-arrow-up fa-fw"
ng-click=
"form.deselect(selectedFilteredItemsModel)"
></i></a>
</div>
<div
class=
"col-md-12"
>
...
...
@@ -53,7 +53,7 @@
<div
class=
"help-block"
sf-message=
"form.description"
></div>
</div>
<!--<div class="col-md-4">-->
<!--<a
href="javascript:void(0);"
add-modal-for-linked-model>-->
<!--<a add-modal-for-linked-model>-->
<!--<i class="fa fa-plus-circle fa-fw"></i>-->
<!--</a>-->
<!--</div>-->
...
...
dist/app.js
View file @
61ebf13b
This diff is collapsed.
Click to expand it.
dist/bower_components/components.js
View file @
61ebf13b
This diff is collapsed.
Click to expand it.
dist/css/app.css
View file @
61ebf13b
...
...
@@ -525,16 +525,16 @@ select {
.sidebar-person-info
{
overflow-x
:
visible
;
overflow-y
:
auto
;
position
:
absolute
;
/*position: absolute;*/
width
:
100%
;
max-height
:
calc
(
85%
-
139px
);
background
:
#fff
;
/*max-height: 50%;*/
background
:
whitesmoke
;
/*display:none;*/
/** angular template will hndle this */
}
.sidebar-person-info
.identity
{
color
:
#555
;
padding
:
1
5
px
;
padding
:
1
0
px
;
padding-bottom
:
0px
;
}
...
...
@@ -564,8 +564,8 @@ select {
}
.sidebar-person-info
.identity
img
{
width
:
5
0px
;
height
:
5
0px
;
width
:
4
0px
;
height
:
4
0px
;
border-radius
:
100%
;
margin
:
10px
auto
;
float
:
left
;
...
...
@@ -1436,6 +1436,7 @@ table.dataTable thead .sorting:after {
.sidebar
{
z-index
:
1
;
position
:
absolute
;
overflow-y
:
auto
;
width
:
250px
;
height
:
100%
;
-webkit-box-shadow
:
0
0
25px
rgba
(
0
,
0
,
0
,
0.1
);
...
...
@@ -1459,11 +1460,15 @@ table.dataTable thead .sorting:after {
.sidebar
.sidebar-nav.navbar-collapse
{
overflow-x
:
visible
;
overflow-y
:
auto
;
position
:
absolute
;
/*overflow-y: auto;*/
/*position: absolute;*/
width
:
100%
;
max-height
:
calc
(
100%
-
139px
);
/*max-height: calc(50% - 139px);*/
}
.sidebar-container
{
max-height
:
calc
(
100%
-
120px
);
overflow-y
:
auto
;
}
footer
{
position
:
absolute
;
...
...
@@ -1471,6 +1476,7 @@ table.dataTable thead .sorting:after {
padding
:
15px
;
width
:
100%
;
text-align
:
center
;
background
:
whitesmoke
;
}
footer
span
{
...
...
dist/templates.js
View file @
61ebf13b
This diff is collapsed.
Click to expand it.
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