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
882348a1
Commit
882348a1
authored
Dec 21, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard for user role prepare for style
parent
d2eda8e9
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
15 deletions
+13
-15
dashboard.html
app/components/dashboard/dashboard.html
+2
-2
dashboard_controller.js
app/components/dashboard/dashboard_controller.js
+6
-7
directives.js
app/shared/directives.js
+0
-1
sidebar.html
app/shared/templates/directives/sidebar.html
+1
-1
app.js
dist/app.js
+1
-1
templates.js
dist/templates.js
+3
-3
No files found.
app/components/dashboard/dashboard.html
View file @
882348a1
...
...
@@ -30,7 +30,7 @@
data-intro=
"isim veya tcno ile öğrenci araması yapabilirsiniz."
>
<div
class=
"text-center"
>
<h3>
ÖĞRENCİ
</h3>
<input
type=
"text"
placeholder=
"Öğrenci ara"
ng-model=
"
student_kw
"
<input
type=
"text"
placeholder=
"Öğrenci ara"
ng-model=
"
keyword.student
"
ng-keyup=
"search('ogrenci')"
>
<span
class=
"bordered-fa-icon fa fa-search"
ng-click=
"search('ogrenci')"
></span>
</div>
...
...
@@ -52,7 +52,7 @@
data-intro=
"isim veya tcno ile personel araması yapabilirsiniz."
>
<div
class=
"text-center"
>
<h3>
PERSONEL
</h3>
<input
type=
"text"
placeholder=
"Personel ara"
ng-model=
"
staff_kw
"
<input
type=
"text"
placeholder=
"Personel ara"
ng-model=
"
keyword.staff
"
ng-keyup=
"search('personel')"
>
<span
class=
"bordered-fa-icon fa fa-search"
ng-click=
"search('personel')"
></span>
</div>
...
...
app/components/dashboard/dashboard_controller.js
View file @
882348a1
...
...
@@ -23,8 +23,7 @@ angular.module('ulakbus.dashboard', [])
$scope
.
menuitems
=
data
;
});
$scope
.
student_kw
=
""
;
$scope
.
staff_kw
=
""
;
$scope
.
keyword
=
{
student
:
""
,
staff
:
""
};
$scope
.
students
=
[];
$scope
.
staffs
=
[];
...
...
@@ -33,20 +32,20 @@ angular.module('ulakbus.dashboard', [])
$timeout
(
function
()
{
if
(
where
===
'personel'
)
{
// if input length greater than 2 search for the value
if
(
$scope
.
staff_kw
.
length
>
2
)
{
$scope
.
getItems
(
where
,
$scope
.
staff_kw
).
success
(
function
(
data
)
{
if
(
$scope
.
keyword
.
staff
.
length
>
2
)
{
$scope
.
getItems
(
where
,
$scope
.
keyword
.
staff
).
success
(
function
(
data
)
{
$scope
.
staffs
=
data
.
results
;
});
}
}
if
(
where
===
'ogrenci'
)
{
if
(
$scope
.
student_kw
.
length
>
2
)
{
$scope
.
getItems
(
where
,
$scope
.
student_kw
).
success
(
function
(
data
)
{
if
(
$scope
.
keyword
.
student
.
length
>
2
)
{
$scope
.
getItems
(
where
,
$scope
.
keyword
.
student
).
success
(
function
(
data
)
{
$scope
.
students
=
data
.
results
;
})
}
}
});
}
,
500
);
};
$scope
.
getItems
=
function
(
where
,
what
)
{
...
...
app/shared/directives.js
View file @
882348a1
...
...
@@ -380,7 +380,6 @@ app.directive('logout', function ($http, $location, RESTURL) {
$timeout
(
function
()
{
sidebarmenu
.
metisMenu
();
sidebarUserMenu
.
metisMenu
();
});
});
...
...
app/shared/templates/directives/sidebar.html
View file @
882348a1
...
...
@@ -2,7 +2,7 @@
<div
class=
"sidebar-container"
>
<!-- sidebar-person-info -->
<div
class=
"sidebar-person-info"
ng-
if
=
"$root.current_user.is_staff"
>
<div
class=
"sidebar-person-info"
ng-
show
=
"$root.current_user.is_staff"
>
<!--<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}"
...
...
dist/app.js
View file @
882348a1
This diff is collapsed.
Click to expand it.
dist/templates.js
View file @
882348a1
...
...
@@ -302,7 +302,7 @@ angular.module("components/dashboard/dashboard.html", []).run(["$templateCache",
" data-intro=
\"
isim veya tcno ile öğrenci araması yapabilirsiniz.
\"
>
\n
"
+
" <div class=
\"
text-center
\"
>
\n
"
+
" <h3>ÖĞRENCİ</h3>
\n
"
+
" <input type=
\"
text
\"
placeholder=
\"
Öğrenci ara
\"
ng-model=
\"
student_kw
\"\n
"
+
" <input type=
\"
text
\"
placeholder=
\"
Öğrenci ara
\"
ng-model=
\"
keyword.student
\"\n
"
+
" ng-keyup=
\"
search('ogrenci')
\"
>
\n
"
+
" <span class=
\"
bordered-fa-icon fa fa-search
\"
ng-click=
\"
search('ogrenci')
\"
></span>
\n
"
+
" </div>
\n
"
+
...
...
@@ -324,7 +324,7 @@ angular.module("components/dashboard/dashboard.html", []).run(["$templateCache",
" data-intro=
\"
isim veya tcno ile personel araması yapabilirsiniz.
\"
>
\n
"
+
" <div class=
\"
text-center
\"
>
\n
"
+
" <h3>PERSONEL</h3>
\n
"
+
" <input type=
\"
text
\"
placeholder=
\"
Personel ara
\"
ng-model=
\"
staff_kw
\"\n
"
+
" <input type=
\"
text
\"
placeholder=
\"
Personel ara
\"
ng-model=
\"
keyword.staff
\"\n
"
+
" ng-keyup=
\"
search('personel')
\"
>
\n
"
+
" <span class=
\"
bordered-fa-icon fa fa-search
\"
ng-click=
\"
search('personel')
\"
></span>
\n
"
+
" </div>
\n
"
+
...
...
@@ -1267,7 +1267,7 @@ angular.module("shared/templates/directives/sidebar.html", []).run(["$templateCa
"
\n
"
+
" <div class=
\"
sidebar-container
\"
>
\n
"
+
" <!-- sidebar-person-info -->
\n
"
+
" <div class=
\"
sidebar-person-info
\"
ng-
if
=
\"
$root.current_user.is_staff
\"
>
\n
"
+
" <div class=
\"
sidebar-person-info
\"
ng-
show
=
\"
$root.current_user.is_staff
\"
>
\n
"
+
" <!--<button class=
\"
btn btn-primary close-sidebar-person-info
\"
>Profili Kapat</button>-->
\n
"
+
" <div class=
\"
identity
\"
>
\n
"
+
" <button type=
\"
button
\"
class=
\"
close
\"
ng-class=
\"
{hidden: $root.collapsed || !selectedUser}
\"\n
"
+
...
...
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