refacto: devWeb - move css and js in files and import them in .jsp files

This commit is contained in:
kmitresse
2024-05-05 17:48:31 +02:00
parent 5596afea94
commit 8fcc732d0b
27 changed files with 481 additions and 531 deletions
@@ -4,17 +4,22 @@
<%@taglib prefix="form" tagdir="/WEB-INF/tags/forms" %>
<layout:form title="Connexion">
<component:hero>
<div class="columns is-centered">
<div class="column is-5-tablet is-5-desktop is-5-widescreen">
<div class="box">
<h1 class="title has-text-centered">Se connecter</h1>
<form:login/>
<hr/>
<p class="content has-text-centered">Vous n'avez pas de compte ? <a href="${pageContext.request.contextPath}/register">S'inscrire</a>
</p>
<jsp:attribute name="script">
<script defer type="module" src="${pageContext.request.contextPath}/static/js/form/login.js"></script>
</jsp:attribute>
<jsp:body>
<component:hero>
<div class="columns is-centered">
<div class="column is-5-tablet is-5-desktop is-5-widescreen">
<div class="box">
<h1 class="title has-text-centered">Se connecter</h1>
<form:login/>
<hr/>
<p class="content has-text-centered">Vous n'avez pas de compte ? <a href="${pageContext.request.contextPath}/register">S'inscrire</a>
</p>
</div>
</div>
</div>
</div>
</component:hero>
</layout:form>
</component:hero>
</jsp:body>
</layout:form>