-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update list of meallogs as they are added
- Loading branch information
1 parent
f9b3f00
commit febc500
Showing
8 changed files
with
106 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{ define "meallogs_simple" }} | ||
{{ range . }} | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col"> | ||
<h6 class="card-title"> | ||
{{ .Item.Name }} - {{ .PortionMultiplier }} {{ .Portion.Name }} | ||
</h6> | ||
<h6 class="card-subtitle text-muted"> | ||
{{ .DateTime.Format "15:04" }} | ||
</h6> | ||
</div> | ||
<div class="col text-end"> | ||
{{/* TODO: Add the hx attributes and endpoints for these buttons*/}} | ||
<button type="button" class="btn btn-outline-warning"> | ||
<i class="bi bi-pencil-square"></i> | ||
</button> | ||
<button type="button" class="btn btn-outline-danger"> | ||
<i class="bi bi-trash"></i> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
{{/* TODO: This where the form to update meallog should appear if you press the edit button*/}} | ||
</div> | ||
</div> | ||
</div> | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters