Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SkuciSe
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tim 2 - 2022
SkuciSe
Commits
8bb28e9c
Commit
8bb28e9c
authored
Sep 02, 2022
by
Milovan Samardzic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IzmenaProfilaUpdate
parent
8e8325f5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
0 deletions
+51
-0
SkuciSe/src/main/java/com/example/SkuciSe/controller/AppController.java
+1
-0
SkuciSe/src/main/resources/static/css/style.css
+21
-0
SkuciSe/src/main/resources/static/js/main.js
+25
-0
SkuciSe/src/main/resources/templates/profile.html
+0
-0
SkuciSe/src/main/resources/templates/register.html
+4
-0
No files found.
SkuciSe/src/main/java/com/example/SkuciSe/controller/AppController.java
View file @
8bb28e9c
...
...
@@ -66,6 +66,7 @@ public class AppController
model
.
addAttribute
(
"editUser"
,
loggedUser
.
getKorisnik
());
model
.
addAttribute
(
"profileRole"
,
kRepo
.
findRoleById
(
loggedUser
.
getKorisnik
().
getTipId
()));
model
.
addAttribute
(
"grad"
,
lRepo
.
findById
(
loggedUser
.
getKorisnik
().
getGradId
()));
model
.
addAttribute
(
"lokacije"
,
lRepo
.
findAll
());
return
(
"profile"
);
}
...
...
SkuciSe/src/main/resources/static/css/style.css
View file @
8bb28e9c
...
...
@@ -279,6 +279,7 @@ h3{
.container
{
max-width
:
1000px
;
padding
:
0
;
height
:
600px
;
}
p
{
...
...
@@ -359,3 +360,22 @@ img {
width
:
50%
;
text-align
:
center
;
}
/*the fade animations*/
@keyframes
fade-out
{
from
{
opacity
:
100%
;
}
to
{
opacity
:
0%
;
}
}
@keyframes
fade-in
{
from
{
opacity
:
0%
;
}
to
{
opacity
:
100%
;
}
}
\ No newline at end of file
SkuciSe/src/main/resources/static/js/main.js
View file @
8bb28e9c
...
...
@@ -27,3 +27,27 @@ function proveraLogin(){
document
.
getElementById
(
"losaSifra"
).
style
.
display
=
"none"
;
}
}
//toggle var
var
fade_state
=
true
;
//on btn click
function
fade
()
{
//get the button and div
let
div
=
document
.
getElementById
(
"fadeDiv"
);
let
btn
=
document
.
getElementById
(
"fade"
);
//if faded in or out
if
(
fade_state
==
true
)
{
//trigers animation
div
.
style
.
animation
=
"fade-out 2s forwards"
;
//sets the text
btn
.
innerHTML
=
"fade-in"
;
//sets fade_state
fade_state
=
false
;
}
else
if
(
fade_state
==
false
)
{
//trigers animation
div
.
style
.
animation
=
"fade-in 2s forwards"
;
//sets the text
btn
.
innerHTML
=
"fade-out"
;
//sets fade_state
fade_state
=
true
;
}
}
\ No newline at end of file
SkuciSe/src/main/resources/templates/profile.html
View file @
8bb28e9c
This diff is collapsed.
Click to expand it.
SkuciSe/src/main/resources/templates/register.html
View file @
8bb28e9c
...
...
@@ -71,10 +71,14 @@
<div
class=
"invalid-feedback"
>
Email ne sme biti prazan!
</div>
</div>
div class="col-md-12">
<select
th:field=
"${newUser.gradId}"
>
<option
th:each=
"lokacija: ${lokacije}"
th:value=
"${lokacija.getLokacijaId()}"
th:text=
"${lokacija.getNaziv()}"
>
</option>
</select>
<div
class=
"valid-feedback"
>
Dobar grad!
</div>
</div>
<div
class=
"col-md-12"
>
<input
th:field=
"${newUser.sifra}"
class=
"form-control"
type=
"password"
name=
"password"
placeholder=
"Sifra"
required
>
...
...
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