-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35400 from dimagi/mjr/security_watchtower
Added security watchtower page
- Loading branch information
Showing
10 changed files
with
142 additions
and
84 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
43 changes: 0 additions & 43 deletions
43
corehq/apps/enterprise/templates/enterprise/enterprise_dashboard.html
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
corehq/apps/enterprise/templates/enterprise/partials/project_tile.html
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,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"> </button> | ||
{% else %} | ||
<div class="form-control-plaintext fs-6">{{ report.subtitle|default:" " }}</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> |
23 changes: 23 additions & 0 deletions
23
corehq/apps/enterprise/templates/enterprise/project_dashboard.html
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,23 @@ | ||
{% extends "hqwebapp/bootstrap5/base_section.html" %} | ||
{% load hq_shared_tags %} | ||
{% load i18n %} | ||
|
||
{% block page_title %}{{ current_page.title }}{% endblock %} | ||
|
||
{% js_entry 'enterprise/js/project_dashboard' %} | ||
|
||
{% block page_content %} | ||
{% registerurl "enterprise_dashboard_email" domain "---" %} | ||
{% registerurl "enterprise_dashboard_total" domain "---" %} | ||
|
||
{% initial_page_data 'max_date_range_days' max_date_range_days %} | ||
{% initial_page_data 'metric_type' metric_type %} | ||
|
||
<div class="row"> | ||
{% for report in reports %} | ||
{% include 'enterprise/partials/project_tile.html' with report=report %} | ||
{% endfor %} | ||
</div> | ||
|
||
{% include 'enterprise/partials/date_range_modal.html' %} | ||
{% endblock %} |
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