Browse Source

Add more info and contact on index

Arnaud Vergnet 3 years ago
parent
commit
1e2e0134ba
2 changed files with 58 additions and 16 deletions
  1. 47
    16
      admin/index.php
  2. 11
    0
      assets/js/index.js

+ 47
- 16
admin/index.php View File

@@ -3,25 +3,56 @@ $relativePath = "../";
3 3
 ob_start();
4 4
 ?>
5 5
 <div class="admin-container" style="display: flex">
6
-    <div style="margin: auto">
7
-        <div style="display: flex" class="my-5">
8
-            <a href="stock.php" style="margin: auto">
9
-                <button class="btn btn-success btn-lg">Gestion du stocks</button>
10
-            </a>
6
+    <div class="my-5" style="margin: auto">
7
+        <div class="border p-2">
8
+            <p style="text-align: center">Modifier la quantité disponible de chaque article en stock</p>
9
+            <div style="display: flex">
10
+                <a href="stock.php" style="margin: auto">
11
+                    <button class="btn btn-success btn-lg">Gestion du stocks</button>
12
+                </a>
13
+            </div>
11 14
         </div>
12 15
 
13
-        <div class="my-5" style="display: flex">
14
-            <a href="articles.php" style="margin: auto" class="mx-1">
15
-                <button class="btn btn-primary btn-lg">Créer/Éditer des articles</button>
16
-            </a>
17
-            <a href="categories.php" style="margin: auto" class="mx-1">
18
-                <button class="btn btn-primary btn-lg">Créer/Éditer des catégories</button>
19
-            </a>
20
-        </div>
16
+        <div class="border p-2 mt-2">
17
+            <p style="text-align: center">
18
+                Créer des articles et des catégories d'articles.
19
+                <br/>
20
+                C'est ici que tu peux choisir le nom, la description, l'image le code et autre pour chaque article.
21
+            </p>
22
+            <div style="display: flex">
23
+                <div style="margin: auto">
24
+                    <a href="articles.php" style="margin: auto" class="mx-1">
25
+                        <button class="btn btn-primary btn-lg">Créer/Éditer des articles</button>
26
+                    </a>
27
+                    <a href="categories.php" style="margin: auto" class="mx-1">
28
+                        <button class="btn btn-primary btn-lg">Créer/Éditer des catégories</button>
29
+                    </a>
30
+                </div>
21 31
 
22
-        <div style="display: flex" class="my-5">
23
-            <button id="uploadButton" class="btn btn-warning btn-lg" style="margin: auto">Mettre l'inventaire en ligne
24
-            </button>
32
+            </div>
33
+        </div>
34
+        <div class="border p-2 mt-2">
35
+            <p style="text-align: center">
36
+                Rendre l'inventaire publique.
37
+                <br/>
38
+                Mettre en ligne l'inventaire permet aux étudiants d'y avoir accès en utilisant l'appli Campus.
39
+            </p>
40
+            <div style="display: flex">
41
+                <button id="uploadButton" class="btn btn-warning btn-lg" style="margin: auto">Mettre l'inventaire en ligne
42
+                </button>
43
+            </div>
44
+        </div>
45
+        <div class="border p-2 mt-2">
46
+            <p style="text-align: center">
47
+                <strong>Un problème ?</strong>
48
+                <br/>
49
+                Tu peux contacter le développeur de ce site si jamais tu rencontres des problèmes.
50
+            </p>
51
+            <div style="display: flex">
52
+                <button id="errorButton" class="btn btn-danger btn-lg" style="margin: auto">
53
+                    Contacter le développeur
54
+                </button>
55
+            </div>
25 56
         </div>
26 57
     </div>
27 58
 </div>

+ 11
- 0
assets/js/index.js View File

@@ -44,3 +44,14 @@ $('#uploadButton').on('click', function () {
44 44
         }
45 45
     });
46 46
 });
47
+
48
+$('#errorButton').on('click', function () {
49
+    $.confirm({
50
+        title: 'Contacter le développeur',
51
+        content: "Choisis le moyen de contact que tu souhaites :<br/>" +
52
+            "<ul>" +
53
+            "<li><strong>Mail: </strong><a href='mailto:vergnet@etud.insa-toulouse.fr'>vergnet@etud.insa-toulouse.fr</a></li>" +
54
+            "<li><strong>Facebook: </strong><a href='https://www.facebook.com/arnaud.vergnet/' target='_blank'>Arnaud Vergnet</a></li>" +
55
+            "</ul>"
56
+    });
57
+});

Loading…
Cancel
Save