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
ce1fb035
Commit
ce1fb035
authored
Nov 26, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter page and datepicker to sample date field
parent
e455cb3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
2 deletions
+56
-2
crud_controller.js
app/components/crud/crud_controller.js
+17
-0
filter.html
app/components/crud/templates/filter.html
+39
-2
No files found.
app/components/crud/crud_controller.js
View file @
ce1fb035
...
@@ -157,6 +157,23 @@ angular.module('ulakbus.crud', ['ui.bootstrap', 'schemaForm', 'formService'])
...
@@ -157,6 +157,23 @@ angular.module('ulakbus.crud', ['ui.bootstrap', 'schemaForm', 'formService'])
return
new
Array
(
num
);
return
new
Array
(
num
);
};
};
$timeout
(
function
()
{
jQuery
(
'.filterDate'
).
datepicker
({
changeMonth
:
true
,
changeYear
:
true
,
dateFormat
:
"dd.mm.yy"
,
onSelect
:
function
(
date
,
inst
)
{
//scope.model[k] = date;
//if (scope.modalElements) {
// scope.validateModalDate(k);
//}
//else {
// scope.$broadcast('schemaForm.error.' + k, 'tv4-302', true);
//}
}
}).
datepicker
(
"setDate"
,
new
Date
());
});
//
//
$scope
.
showCmd
=
function
()
{
$scope
.
showCmd
=
function
()
{
CrudUtility
.
generateParam
(
$scope
,
$routeParams
,
$routeParams
.
cmd
);
CrudUtility
.
generateParam
(
$scope
,
$routeParams
,
$routeParams
.
cmd
);
...
...
app/components/crud/templates/filter.html
View file @
ce1fb035
<div>
<div>
<h2>
Filtrele
</h2>
<div
class=
"right-sidebar-box"
>
<div
class=
"right-sidebar-box"
>
<div
class=
"right-sidebar-messages"
>
<div
class=
"right-sidebar-messages"
>
<div
class=
"right-sidebar-title clearfix"
>
<h3>
Tarih Aralığı
</h3>
</div>
<div
class=
"right-sidebar-message-block"
>
<div
class=
"col-md-6"
>
<br>
<label
class=
"control-label"
for=
"startDate"
>
Baslangic
</label>
<input
type=
"text"
name=
"startDate"
class=
"form-control filterDate"
/>
</div>
<div
class=
"col-md-6"
>
<br>
<label
class=
"control-label"
for=
"endDate"
>
Bitis
</label>
<input
type=
"text"
name=
"endDate"
class=
"form-control filterDate"
/>
</div>
</div>
</div>
</div>
<div
class=
"clearfix"
></div>
<div
class=
"right-sidebar-box"
>
<div
class=
"right-sidebar-messages"
>
<div
class=
"right-sidebar-title clearfix"
>
<div
class=
"right-sidebar-title clearfix"
>
<br><br>
<h3>
Filtre basligi
</h3>
<h3>
Filtre basligi
</h3>
</div>
</div>
<div
class=
"right-sidebar-message-block"
>
<div
class=
"right-sidebar-message-block"
>
<div
class=
"col-md-12"
>
<br>
<label
class=
"control-label"
for=
"filterSelect"
>
Secim
</label>
<select
name=
"filterSelect"
id=
"filterSelect"
>
<option
value=
"1"
>
option 1
</option>
<option
value=
"2"
>
option 2
</option>
<option
value=
"3"
>
option 3
</option>
<option
value=
"4"
>
option 4
</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"clearfix"
></div>
<div
style=
"margin-top: 40px;"
>
<button
type=
"button"
class=
"btn btn-primary"
>
Filtrele
</button>
</div>
</div>
</div>
\ No newline at end of file
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