summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorSandrine Caruso <sandrine.caruso@ens-cachan.org>2020-06-19 16:19:28 +0200
committerDenise sur Lya <sekhmet@lya>2020-06-19 16:28:00 +0200
commit93ba28a72f0df1e113ad12736839b8c6e12de7ae (patch)
treee23a37bad70f81caf3790fe38c480a9f64c28e1b /static
parent9e4c51c76d337e1f8c757cd2f99a4eed615687b4 (diff)
downloadoms-93ba28a72f0df1e113ad12736839b8c6e12de7ae.tar.gz
oms-93ba28a72f0df1e113ad12736839b8c6e12de7ae.tar.zst
oms-93ba28a72f0df1e113ad12736839b8c6e12de7ae.zip
Bouton importer fichier avec jolie image et import tout de suite
Diffstat (limited to 'static')
-rw-r--r--static/icons/import.pngbin0 -> 19119 bytes
-rw-r--r--static/requetes.js4
-rw-r--r--static/style.css32
3 files changed, 35 insertions, 1 deletions
diff --git a/static/icons/import.png b/static/icons/import.png
new file mode 100644
index 0000000..e184925
--- /dev/null
+++ b/static/icons/import.png
Binary files differ
diff --git a/static/requetes.js b/static/requetes.js
index b7e719a..4442470 100644
--- a/static/requetes.js
+++ b/static/requetes.js
@@ -103,3 +103,7 @@ function download_file(filename,mimetype,data) {
103 document.body.removeChild(element); 103 document.body.removeChild(element);
104 104
105} 105}
106
107function upload_file(data) {
108 document.getElementById('form_import_donnees').submit();
109} \ No newline at end of file
diff --git a/static/style.css b/static/style.css
index 97f20d9..e2d42ff 100644
--- a/static/style.css
+++ b/static/style.css
@@ -42,10 +42,40 @@ input[type="text"] {
42 display: none; 42 display: none;
43} 43}
44 44
45#import_donnees, #pref_graphique{ 45#pref_graphique {
46 display: none; 46 display: none;
47} 47}
48 48
49#import_donnees label {
50 height: 128px;
51 display: inline-block;
52 cursor: pointer;
53 position: relative;
54}
55
56#import_donnees label img {
57 border-radius: 100%;
58 box-shadow: 0px 0px 10px #55f;
59}
60
61#import_donnees label .icon_legend {
62 position: absolute;
63 top: 50%;
64 left: 50%;
65 transform: translate(-50%,-50%);
66 width: 90%;
67 text-align: center;
68 opacity: 0.7;
69 line-height: 1.5;
70 background: rgba(256,256,256,0.5);
71}
72
73#import_donnees input {
74 opacity: 0;
75 position: absolute;
76 z-index: -1;
77}
78
49.bouton { 79.bouton {
50 text-decoration: underline; 80 text-decoration: underline;
51} 81}