Commit c854a098c88d3682e24ad65f8109cfe812dc11c1

Authored by hitier
1 parent a839c620

New included template file for bootstrap

app/auth/templates/login.html
... ... @@ -15,8 +15,8 @@
15 15 <input class="form-control" id="inputPasswd" placeholder="mot de passe" required type="password">
16 16  
17 17 <div class="checkbox my-3">
18   - <label>
19   - <input type="checkbox" value="remember-me"> Se souvenir de moi
  18 + <label class="text-muted" data-toggle="tooltip" data-placement="top" title="désactivé">
  19 + <input type="checkbox" value="remember-me" disabled > Se souvenir de moi
20 20 </label>
21 21 </div>
22 22  
... ... @@ -26,5 +26,6 @@
26 26 {% include 'copy.html' %}
27 27 </div>
28 28 </form>
  29 +{% include 'bs4-scripts.html' %}
29 30 </body>
30 31 </html>
... ...
app/templates/base_page.html
... ... @@ -123,11 +123,7 @@
123 123 </div>
124 124  
125 125  
126   - <!-- Begin page content -->
127   -
128   -
129   - <script src="{{ url_for('static', filename='js/jquery-3.6.0.min.js') }}" type="text/javascript"></script>
130   - <script src="{{ url_for('static', filename='js/bootstrap.bundle.min.js') }}" type="text/javascript"></script>
  126 + {% include 'bs4-scripts.html' %}
131 127 <!-- Icons -->
132 128 <script src="https://unpkg.com/feather-icons/dist/feather.min.js"></script>
133 129 <script>
... ...
app/templates/bs4-scripts.html 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 + <script src="{{ url_for('static', filename='js/jquery-3.6.0.min.js') }}" type="text/javascript"></script>
  2 + <script src="{{ url_for('static', filename='js/bootstrap.bundle.min.js') }}" type="text/javascript"></script>
  3 + <script>
  4 + $(function () {
  5 + $('[data-toggle="tooltip"]').tooltip()
  6 + })
  7 + </script>
... ...