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
4ba1cb54
Commit
4ba1cb54
authored
Dec 21, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
datefield fixes
parent
5d12657c
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
21 deletions
+26
-21
dashboard.html
app/components/dashboard/dashboard.html
+3
-2
datefield.html
app/shared/templates/datefield.html
+2
-1
form_service.js
app/zetalib/form_service.js
+13
-12
interceptors.js
app/zetalib/interceptors.js
+1
-1
app.js
dist/app.js
+2
-2
templates.js
dist/templates.js
+5
-3
No files found.
app/components/dashboard/dashboard.html
View file @
4ba1cb54
...
...
@@ -25,7 +25,8 @@
</div>
<div
class=
"panel-body"
>
<div
class=
"dashboard-student-search"
data-step=
"2"
data-intro=
"isim veya tcno ile öğrenci araması yapabilirsiniz."
>
data-intro=
"isim veya tcno ile öğrenci araması yapabilirsiniz."
ng-show=
"menuitems.ogrenci"
>
<div
class=
"text-center"
>
<h3>
ÖĞRENCİ
</h3>
<input
type=
"text"
placeholder=
"Öğrenci ara"
ng-model=
"keyword.student"
...
...
@@ -47,7 +48,7 @@
</div>
<!-- end of dashboard-student-search -->
<div
class=
"dashboard-personnel-search"
data-step=
"3"
data-intro=
"isim veya tcno ile personel araması yapabilirsiniz."
>
data-intro=
"isim veya tcno ile personel araması yapabilirsiniz."
ng-show=
"menuitems.personel"
>
<div
class=
"text-center"
>
<h3>
PERSONEL
</h3>
<input
type=
"text"
placeholder=
"Personel ara"
ng-model=
"keyword.staff"
...
...
app/shared/templates/datefield.html
View file @
4ba1cb54
...
...
@@ -17,11 +17,12 @@
class=
"form-control {{form.fieldHtmlClass}} datepickerfield"
id=
"{{form.key.slice(-1)[0]}}"
ng-model-options=
"form.ngModelOptions"
ng-model=
"
form.modelDate
"
ng-model=
"
$$value$$
"
ng-disabled=
"form.readonly"
schema-validate=
"form"
name=
"{{form.key.slice(-1)[0]}}"
aria-describedby=
"{{form.key.slice(-1)[0] + 'Status'}}"
ng-change=
"form.onSelect()"
type=
"{{form.type}}"
uib-datepicker-popup=
"{{form.format}}"
...
...
app/zetalib/form_service.js
View file @
4ba1cb54
...
...
@@ -291,17 +291,10 @@ angular.module('formService', ['ui.bootstrap'])
// check if type is date and if type date found change it to string
if
(
v
.
type
===
'date'
)
{
if
(
isNaN
(
new
Date
(
scope
.
model
[
k
])))
{
var
modelDate
;
}
else
{
var
modelDate
=
new
Date
(
scope
.
model
[
k
]);
}
scope
.
model
[
k
]
=
generator
.
dateformatter
(
scope
.
model
[
k
]);
scope
.
model
[
k
]
=
generator
.
dateformatter
(
scope
.
model
[
k
]
||
new
Date
());
scope
.
form
[
scope
.
form
.
indexOf
(
k
)]
=
{
key
:
k
,
name
:
k
,
title
:
v
.
title
,
type
:
'template'
,
modelDate
:
modelDate
,
templateUrl
:
'shared/templates/datefield.html'
,
validationMessage
:
{
'dateNotValid'
:
"Girdiğiniz tarih geçerli değildir. <i>orn: '01.01.2015'<i/>"
,
...
...
@@ -334,7 +327,10 @@ angular.module('formService', ['ui.bootstrap'])
open
:
function
(
$event
)
{
this
.
status
.
opened
=
true
;
},
format
:
'dd.MM.yyyy'
format
:
'dd.MM.yyyy'
,
onSelect
:
function
()
{
scope
.
model
[
k
]
=
generator
.
dateformatter
(
scope
.
model
[
k
]);
}
};
}
...
...
@@ -581,10 +577,15 @@ angular.module('formService', ['ui.bootstrap'])
scope
[
v
.
type
][
k
].
form
.
push
(
item
.
name
);
}
if
(
item
.
type
===
'date'
)
{
scope
.
model
[
k
][
item
.
name
]
=
generator
.
dateformatter
(
scope
.
model
[
k
][
item
.
name
]);
try
{
if
(
item
.
type
===
'date'
)
{
scope
.
model
[
k
][
item
.
name
]
=
generator
.
dateformatter
(
scope
.
model
[
k
][
item
.
name
]);
}
}
catch
(
e
)
{
$log
.
debug
(
'Error: '
,
e
.
message
);
}
});
if
(
scope
.
model
[
k
])
{
...
...
@@ -983,7 +984,7 @@ angular.module('formService', ['ui.bootstrap'])
Generator
.
generate
(
newscope
,
{
forms
:
scope
.
node
});
// modal will add only one item to listNode, so just need one model (not array)
newscope
.
model
=
angular
.
copy
(
newscope
.
model
[
node
.
edit
]
||
newscope
.
model
[
0
]
||
{})
;
newscope
.
model
=
newscope
.
model
[
node
.
edit
]
||
newscope
.
model
[
0
]
||
{}
;
return
newscope
;
}
}
...
...
app/zetalib/interceptors.js
View file @
4ba1cb54
...
...
@@ -121,7 +121,7 @@ app.config(['$httpProvider', function ($httpProvider) {
$location
.
path
(
"/dashboard"
);
}
}
errorModal
();
//
errorModal();
}
$rootScope
.
$broadcast
(
'show_notifications'
,
rejection
.
data
);
...
...
dist/app.js
View file @
4ba1cb54
This diff is collapsed.
Click to expand it.
dist/templates.js
View file @
4ba1cb54
...
...
@@ -297,7 +297,8 @@ angular.module("components/dashboard/dashboard.html", []).run(["$templateCache",
" </div>
\n
"
+
" <div class=
\"
panel-body
\"
>
\n
"
+
" <div class=
\"
dashboard-student-search
\"
data-step=
\"
2
\"\n
"
+
" data-intro=
\"
isim veya tcno ile öğrenci araması yapabilirsiniz.
\"
>
\n
"
+
" data-intro=
\"
isim veya tcno ile öğrenci araması yapabilirsiniz.
\"\n
"
+
" ng-show=
\"
menuitems.ogrenci
\"
>
\n
"
+
" <div class=
\"
text-center
\"
>
\n
"
+
" <h3>ÖĞRENCİ</h3>
\n
"
+
" <input type=
\"
text
\"
placeholder=
\"
Öğrenci ara
\"
ng-model=
\"
keyword.student
\"\n
"
+
...
...
@@ -319,7 +320,7 @@ angular.module("components/dashboard/dashboard.html", []).run(["$templateCache",
" </div>
\n
"
+
" <!-- end of dashboard-student-search -->
\n
"
+
" <div class=
\"
dashboard-personnel-search
\"
data-step=
\"
3
\"\n
"
+
" data-intro=
\"
isim veya tcno ile personel araması yapabilirsiniz.
\"
>
\n
"
+
" data-intro=
\"
isim veya tcno ile personel araması yapabilirsiniz.
\"
ng-show=
\"
menuitems.personel
\"
>
\n
"
+
" <div class=
\"
text-center
\"
>
\n
"
+
" <h3>PERSONEL</h3>
\n
"
+
" <input type=
\"
text
\"
placeholder=
\"
Personel ara
\"
ng-model=
\"
keyword.staff
\"\n
"
+
...
...
@@ -671,11 +672,12 @@ angular.module("shared/templates/datefield.html", []).run(["$templateCache", fun
" class=
\"
form-control {{form.fieldHtmlClass}} datepickerfield
\"\n
"
+
" id=
\"
{{form.key.slice(-1)[0]}}
\"\n
"
+
" ng-model-options=
\"
form.ngModelOptions
\"\n
"
+
" ng-model=
\"
form.modelDate
\"\n
"
+
" ng-model=
\"
$$value$$
\"\n
"
+
" ng-disabled=
\"
form.readonly
\"\n
"
+
" schema-validate=
\"
form
\"\n
"
+
" name=
\"
{{form.key.slice(-1)[0]}}
\"\n
"
+
" aria-describedby=
\"
{{form.key.slice(-1)[0] + 'Status'}}
\"\n
"
+
" ng-change=
\"
form.onSelect()
\"\n
"
+
"
\n
"
+
" type=
\"
{{form.type}}
\"\n
"
+
" uib-datepicker-popup=
\"
{{form.format}}
\"\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