-
-
Notifications
You must be signed in to change notification settings - Fork 217
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 #35161 from dimagi/jls/b5-export-list
[B5] Exports: list and download pages
- Loading branch information
Showing
41 changed files
with
750 additions
and
536 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
2 changes: 1 addition & 1 deletion
2
corehq/apps/export/templates/export/bootstrap5/export_list.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
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
56 changes: 26 additions & 30 deletions
56
corehq/apps/export/templates/export/partials/bootstrap5/delete_bulk_notice.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 |
---|---|---|
@@ -1,31 +1,27 @@ | ||
{% load i18n %} | ||
<div data-bind="visible: bulkExportDownloadCount()"> | ||
<div class="float-end" data-bs-toggle="tooltip-bulkDelete" data-placement="top"> | ||
<input name="delete_list" type="hidden"/> | ||
<p style="float:right"> {# todo B5: inline style #} | ||
<a class="btn btn-outline-danger btn-primary" | ||
data-bs-toggle="modal" | ||
data-bind="attr: { | ||
href: '#bulk-delete-export-modal' | ||
}"> | ||
<!-- ko if: isOData || isFeed --> | ||
<!-- ko if: isMultiple --> | ||
{% trans "Delete Selected Feeds" %} | ||
<!-- /ko --> | ||
<!-- ko if: !isMultiple() --> | ||
{% trans "Delete Selected Feed" %} | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
<!-- ko if: !isOData && !isFeed --> | ||
<!-- ko if: isMultiple --> | ||
{% trans "Delete Selected Exports" %} | ||
<!-- /ko --> | ||
<!-- ko if: !isMultiple() --> | ||
{% trans "Delete Selected Export" %} | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
</a> | ||
{% include "export/dialogs/bootstrap5/bulk_delete_custom_export_dialog.html" %} | ||
</p> | ||
</div> | ||
</div> | ||
<span data-bind="visible: bulkExportDownloadCount()"> | ||
<input name="delete_list" type="hidden"/> | ||
<a class="btn btn-outline-danger float-end" | ||
data-bs-toggle="modal" | ||
data-bind="attr: { | ||
href: '#bulk-delete-export-modal' | ||
}"> | ||
<!-- ko if: isOData || isFeed --> | ||
<!-- ko if: isMultiple --> | ||
{% trans "Delete Selected Feeds" %} | ||
<!-- /ko --> | ||
<!-- ko if: !isMultiple() --> | ||
{% trans "Delete Selected Feed" %} | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
<!-- ko if: !isOData && !isFeed --> | ||
<!-- ko if: isMultiple --> | ||
{% trans "Delete Selected Exports" %} | ||
<!-- /ko --> | ||
<!-- ko if: !isMultiple() --> | ||
{% trans "Delete Selected Export" %} | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
</a> | ||
{% include "export/dialogs/bootstrap5/bulk_delete_custom_export_dialog.html" %} | ||
</span> |
33 changes: 14 additions & 19 deletions
33
corehq/apps/export/templates/export/partials/bootstrap5/export_bulk_notice.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 |
---|---|---|
@@ -1,24 +1,19 @@ | ||
{% load i18n %} | ||
<div data-bind="visible: bulkExportDownloadCount()" | ||
style="float:right; margin-left:8px; margin-bottom:8px"> {# todo B5: inline style #} | ||
<form class="form form-inline" method="post" {# todo B5: css:form-inline #} | ||
<span class="d-inline-block ms-2 float-end" data-bind="visible: bulkExportDownloadCount()"> | ||
<form class="form d-inline" method="post" | ||
data-bind="submit: submitBulkExportDownload" | ||
action="{{ bulk_download_url }}"> | ||
{% csrf_token %} | ||
<div style="min-width:110px;" data-bs-toggle="tooltip-bulkExport" data-container=".tooltip-bulk-export" data-placement="top"> {# todo B5: inline style #} | ||
<input name="export_list" type="hidden" data-bind="value: bulkExportList" /> | ||
<button type="submit" | ||
class="btn btn-primary tooltip-bulk-export" | ||
style="width: 100%;"> {# todo B5: inline style #} | ||
{% trans 'Bulk Export' %} | ||
(<!-- ko text: bulkExportDownloadCount() --><!-- /ko -->) | ||
</button> | ||
</div> | ||
<input name="export_list" type="hidden" data-bind="value: bulkExportList" /> | ||
<button type="submit" | ||
class="btn btn-primary"> | ||
{% trans 'Bulk Export' %} | ||
(<!-- ko text: bulkExportDownloadCount() --><!-- /ko -->) | ||
</button> | ||
<span class="hq-help-template" | ||
data-title="{% trans "Bulk Export" %}" | ||
data-content="{% trans "All of the selected exports will be collected for download to a single Excel file, with each export as a separate sheet." %}" | ||
data-placement="left" | ||
></span> | ||
</form> | ||
</div> | ||
|
||
<style> | ||
.tooltip-bulk-export .tooltip .tooltip-inner { | ||
margin-right: 10px; | ||
} | ||
</style> | ||
</span> |
Oops, something went wrong.