Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
s7_spruge_k
calendar
Commits
510aacc9
Commit
510aacc9
authored
Jun 13, 2019
by
Martins Berzins
Browse files
Implemented start idea of calendar view
parent
55223b52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
107 additions
and
0 deletions
+107
-0
src/main/java/com/example/calendar/controller/DBController.java
...in/java/com/example/calendar/controller/DBController.java
+7
-0
src/main/resources/templates/test.html
src/main/resources/templates/test.html
+100
-0
No files found.
src/main/java/com/example/calendar/controller/DBController.java
View file @
510aacc9
...
...
@@ -55,4 +55,11 @@ public class DBController {
System
.
out
.
println
(
eventRepo
.
findAll
());
return
"ok"
;
}
@GetMapping
(
value
=
"/test"
)
public
String
testFunc
(){
return
"test"
;
}
}
src/main/resources/templates/test.html
0 → 100644
View file @
510aacc9
<!DOCTYPE html>
<html>
<head>
<link
href=
"https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.1.0/fullcalendar.min.css"
rel=
"stylesheet"
>
<link
href=
"https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.7/semantic.min.css"
rel=
"stylesheet"
>
</head>
<body>
<br/>
<div
class=
"ui container"
>
<div
class=
"ui grid"
>
<div
class=
"ui sixteen column"
>
<div
id=
"calendar"
></div>
</div>
</div>
</div>
</div>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.7/semantic.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.1.0/fullcalendar.min.js"
></script>
<script>
$
(
document
).
ready
(
function
()
{
$
(
'
#calendar
'
).
fullCalendar
({
header
:
{
left
:
'
prev,next today
'
,
center
:
'
title
'
,
right
:
'
month,basicWeek,basicDay
'
},
defaultDate
:
'
2016-12-12
'
,
navLinks
:
true
,
// can click day/week names to navigate views
editable
:
true
,
eventLimit
:
true
,
// allow "more" link when too many events
events
:
[
{
title
:
'
All Day Event
'
,
start
:
'
2016-12-01
'
},
{
title
:
'
Long Event
'
,
start
:
'
2016-12-07
'
,
end
:
'
2016-12-10
'
},
{
id
:
999
,
title
:
'
Repeating Event
'
,
start
:
'
2016-12-09T16:00:00
'
},
{
id
:
999
,
title
:
'
Repeating Event
'
,
start
:
'
2016-12-16T16:00:00
'
},
{
title
:
'
Conference
'
,
start
:
'
2016-12-11
'
,
end
:
'
2016-12-13
'
},
{
title
:
'
Meeting
'
,
start
:
'
2016-12-12T10:30:00
'
,
end
:
'
2016-12-12T12:30:00
'
},
{
title
:
'
Lunch
'
,
start
:
'
2016-12-12T12:00:00
'
},
{
title
:
'
Meeting
'
,
start
:
'
2016-12-12T14:30:00
'
},
{
title
:
'
Happy Hour
'
,
start
:
'
2016-12-12T17:30:00
'
},
{
title
:
'
Dinner
'
,
start
:
'
2016-12-12T20:00:00
'
},
{
title
:
'
Birthday Party
'
,
start
:
'
2016-12-13T07:00:00
'
},
{
title
:
'
Click for Google
'
,
url
:
'
https://google.com/
'
,
start
:
'
2016-12-28
'
}
]
});
});
</script>
</body>
</html>
\ 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