From cb32adda664f0be1b16ea7b9f23996b787bd281c Mon Sep 17 00:00:00 2001
From: Gerard
Date: Tue, 23 Mar 2021 23:04:46 +0100
Subject: [PATCH] Boostrap Icons
---
src/main/resources/static/index.css | 9 +++++++++
src/main/resources/static/index.js | 10 ++++++++--
src/main/resources/templates/index.html | 14 ++++++++------
3 files changed, 25 insertions(+), 8 deletions(-)
diff --git a/src/main/resources/static/index.css b/src/main/resources/static/index.css
index 4a5ab5f..850c2b4 100644
--- a/src/main/resources/static/index.css
+++ b/src/main/resources/static/index.css
@@ -48,3 +48,12 @@
padding: 2%;
}
+.btn-table{
+ padding: 0.05rem 0.40rem !important;
+ margin-left: 4%;
+ margin-right: 4%;
+}
+
+.icon{
+ font-size: 19px;
+}
\ No newline at end of file
diff --git a/src/main/resources/static/index.js b/src/main/resources/static/index.js
index 79d23ad..a012d46 100644
--- a/src/main/resources/static/index.js
+++ b/src/main/resources/static/index.js
@@ -24,8 +24,14 @@ function createRow(employee) {
employee.name,
employee.job,
employee.salary,
- "" +
- ""
+ //Edit button with Icon
+ ""+
+ "" +
+ //Delete button with Icon
+ ""+
+ ""
];
}
diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html
index b0c84f9..d1d1791 100644
--- a/src/main/resources/templates/index.html
+++ b/src/main/resources/templates/index.html
@@ -15,6 +15,7 @@
+
@@ -45,18 +46,19 @@ Exercici realitzat utilitzant: Spring Api Rest, Javascript, jquery i Bootstr
-
+
- # |
- Nom |
- Càrreg |
- Salari |
- Accions |
+ # |
+ Nom |
+ Càrreg |
+ Salari |
+ Accions |