Skip to content

Commit

Permalink
extract project tile template
Browse files Browse the repository at this point in the history
  • Loading branch information
mjriley committed Dec 2, 2024
1 parent f6b2732 commit 63d6b28
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% load i18n %}

<div class="col-md-6 col-lg-6 col-xl-3">
<div class="card text-center report-panel mb-3" data-slug="{{ report.slug }}" id="{{ report.slug }}">
<div class="card-header">
<div class="fs-4">{{ report.title }}</div>
{% if report.title == "Mobile Form Submissions" %}
<button id="dateRangeDisplay" type="button" data-bind="text: presetText" data-bs-toggle="modal" data-bs-target="#enterpriseFormsDaterange" class="btn btn-link fs-6">&nbsp;</button>
{% else %}
<div class="form-control-plaintext fs-6">{{ report.subtitle|default:"&nbsp;" }}</div>
{% endif %}
</div>
<div class="card-body">
<h1 class="card-text total">
<i class="fa fa-spin fa-spinner"></i>
</h1>
<br>
<button class="btn btn-primary btn-lg">
<i class="fa fa-envelope"></i>
{% trans "Email Report" %}
</button>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,7 @@

<div class="row">
{% for report in reports %}
<div class="col-md-6 col-lg-6 col-xl-3">
<div class="card text-center report-panel mb-3" data-slug="{{ report.slug }}" id="{{ report.slug }}">
<div class="card-header">
<div class="fs-4">{{ report.title }}</div>
{% if report.title == "Mobile Form Submissions" %}
<button id="dateRangeDisplay" type="button" data-bind="text: presetText" data-bs-toggle="modal" data-bs-target="#enterpriseFormsDaterange" class="btn btn-link fs-6">&nbsp;</button>
{% else %}
<div class="form-control-plaintext fs-6">{{ report.subtitle|default:"&nbsp;" }}</div>
{% endif %}
</div>
<div class="card-body">
<h1 class="card-text total">
<i class="fa fa-spin fa-spinner"></i>
</h1>
<br>
<button class="btn btn-primary btn-lg">
<i class="fa fa-envelope"></i>
{% trans "Email Report" %}
</button>
</div>
</div>
</div>
{% include 'enterprise/partials/project_tile.html' with report=report %}
{% endfor %}
</div>

Expand Down

0 comments on commit 63d6b28

Please sign in to comment.