Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
c plus beau
Browse files Browse the repository at this point in the history
  • Loading branch information
elouanjef committed Jan 27, 2024
1 parent fb84f7b commit fa5e6b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h1 class="modal-title" id="exampleModalToggleLabel2">Mon compte</h1>
<span class="sr-only">Loading...</span>
<div class="lds-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
</div>
<p class="mt-2">Loading...</p>
<p class="mt-2 text-dark">Loading...</p>
</div>
</div>
</div>
Expand Down
8 changes: 5 additions & 3 deletions templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,19 @@
}

function createTemplateCard(template) {
var templateCard = $('<div>').addClass('card').attr('id', template.id);
var templateCard = $('<div>').addClass('card').css('width', '18rem').attr('id', template.id);
var cardBody = createCardBody(template);
templateCard.append(cardBody);
return templateCard;
}

function createCardBody(template) {
var cardBody = $('<div>').addClass('card-body bg-secondary text-white');
var cardBody = $('<div>').addClass('card-body bg-secondary');
var icon = $('<i>').addClass('bi bi-pc-display');
var img = $('<div>').addClass('text-center').append(icon);
var form = createForm(template);
var ldsDefaultContainer = createLdsDefaultContainer(template.id);
cardBody.append(form, ldsDefaultContainer);
cardBody.append(img, form, ldsDefaultContainer);
return cardBody;
}

Expand Down

0 comments on commit fa5e6b4

Please sign in to comment.