Skip to content

Commit

Permalink
safekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincarrogan committed Jan 22, 2025
1 parent cef6d1e commit f09ee12
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
9 changes: 9 additions & 0 deletions exporter/f680/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ class Layout:

def get_layout_fields(self):
return ("name",)


class ApplicationSubmissionForm(BaseForm):
class Layout:
TITLE = ""
SUBMIT_BUTTON_TEXT = "Submit"

def get_layout_fields(self):
return []
6 changes: 6 additions & 0 deletions exporter/f680/templates/f680/summary.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% extends "layouts/base.html" %}

{% load crispy_forms_tags %}

{% block title %}Apply for an F680 Application{% endblock%}

{% block body %}
Expand All @@ -25,6 +28,9 @@ <h2 class="lite-task-list__section">
</ul>
</li>
</ol>
<div class="app-submit-bar">
{% crispy form %}
</div>
</div>
</div>
{% endblock %}
10 changes: 7 additions & 3 deletions exporter/f680/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

from django.shortcuts import redirect
from django.urls import reverse
from django.views.generic import TemplateView
from django.views.generic import FormView

from core.auth.views import LoginRequiredMixin
from core.decorators import expect_status
from core.wizard.views import BaseSessionWizardView

from exporter.f680.constants import ApplicationFormSteps
from exporter.f680.forms import ApplicationNameForm
from exporter.f680.forms import (
ApplicationNameForm,
ApplicationSubmissionForm,
)
from exporter.f680.payloads import F680CreatePayloadBuilder
from exporter.f680.services import (
get_680_application,
Expand Down Expand Up @@ -47,7 +50,8 @@ def done(self, form_list, form_dict, **kwargs):
return redirect(self.get_success_url(response_data["id"]))


class F680ApplicationSummaryView(LoginRequiredMixin, TemplateView):
class F680ApplicationSummaryView(LoginRequiredMixin, FormView):
form_class = ApplicationSubmissionForm
template_name = "f680/summary.html"

def get_context_data(self, **kwargs):
Expand Down

0 comments on commit f09ee12

Please sign in to comment.