mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 04:58:42 +02:00
Merge branch 'main' into ms/3125-fix-sandbox-log-output
This commit is contained in:
commit
ddcd9fa310
3 changed files with 1 additions and 31 deletions
|
@ -20,7 +20,6 @@ from registrar.views.report_views import (
|
||||||
AnalyticsView,
|
AnalyticsView,
|
||||||
ExportDomainRequestDataFull,
|
ExportDomainRequestDataFull,
|
||||||
ExportDataTypeUser,
|
ExportDataTypeUser,
|
||||||
ExportDataTypeRequests,
|
|
||||||
ExportMembersPortfolio,
|
ExportMembersPortfolio,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -260,11 +259,6 @@ urlpatterns = [
|
||||||
ExportDataTypeUser.as_view(),
|
ExportDataTypeUser.as_view(),
|
||||||
name="export_data_type_user",
|
name="export_data_type_user",
|
||||||
),
|
),
|
||||||
path(
|
|
||||||
"reports/export_data_type_requests/",
|
|
||||||
ExportDataTypeRequests.as_view(),
|
|
||||||
name="export_data_type_requests",
|
|
||||||
),
|
|
||||||
path(
|
path(
|
||||||
"domain-request/<int:id>/edit/",
|
"domain-request/<int:id>/edit/",
|
||||||
views.DomainRequestWizard.as_view(),
|
views.DomainRequestWizard.as_view(),
|
||||||
|
|
|
@ -51,20 +51,7 @@
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
{% if portfolio %}
|
|
||||||
<div class="section-outlined__utility-button mobile-lg:padding-right-105 {% if portfolio %} mobile:grid-col-12 desktop:grid-col-6 desktop:padding-left-3{% endif %}" id="export-csv">
|
|
||||||
<section aria-label="Domain Requests report component" class="margin-top-205">
|
|
||||||
<!----------------------------------------------------------------------
|
|
||||||
This link is commented out because we intend to add it back in later.
|
|
||||||
------------------------------------------------------------------------->
|
|
||||||
<!-- <a href="{% url 'export_data_type_requests' %}" class="usa-button usa-button--unstyled usa-button--with-icon usa-button--justify-right">
|
|
||||||
<svg class="usa-icon usa-icon--large" aria-hidden="true" focusable="false" role="img" width="24" height="24">
|
|
||||||
<use xlink:href="{% static 'img/sprite.svg' %}#file_download"></use>
|
|
||||||
</svg>Export as CSV
|
|
||||||
</a> -->
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if portfolio %}
|
{% if portfolio %}
|
||||||
|
|
|
@ -201,17 +201,6 @@ class ExportMembersPortfolio(PortfolioReportsPermission, View):
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
class ExportDataTypeRequests(DomainAndRequestsReportsPermission, View):
|
|
||||||
"""Returns a domain requests report for a given user on the request"""
|
|
||||||
|
|
||||||
def get(self, request, *args, **kwargs):
|
|
||||||
response = HttpResponse(content_type="text/csv")
|
|
||||||
response["Content-Disposition"] = 'attachment; filename="domain-requests.csv"'
|
|
||||||
csv_export.DomainRequestDataType.export_data_to_csv(response, request=request)
|
|
||||||
|
|
||||||
return response
|
|
||||||
|
|
||||||
|
|
||||||
@method_decorator(staff_member_required, name="dispatch")
|
@method_decorator(staff_member_required, name="dispatch")
|
||||||
class ExportDataFull(View):
|
class ExportDataFull(View):
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue