Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add page for ECT personal and training details #180

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

peterdavidhamilton
Copy link
Contributor

  • ECT show action template
  • view helpers refactor

- view helpers refactor
Copy link

Review app deployed to https://cpd-ec2-review-180-web.test.teacherservices.cloud

Copy link
Contributor

@tonyheadford tonyheadford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines +28 to +30
def ect_status(_ect)
govuk_tag(text: 'In progress', colour: 'green')
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be explicit about the kind of status we're talking about here. Training status, induction status, etc.

Copy link
Contributor

@claire-hughez claire-hughez Feb 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We haven't decided yet. So we can either leave as is and define later, or remove if you think it'll make it less confusing?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah that's fine, so long as it's placeholder!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following a Slack discussion I have done some follow-up work in a separate branch that makes this placeholder more visible.

caption_size: 'l',
)
%>
<h2 class='govuk-heading-m'>Personal details</h2>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<h2 class='govuk-heading-m'>Personal details</h2>
<h2 class='govuk-heading-m'>ECT details</h2>

)
%>
<%=
govuk_summary_card(title: 'Current training details') do |card|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's stick with this for now, but still not sure ABs are strictly training details

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +97 to +107
academic_year = FactoryBot.create(:academic_year)
lead_provider = FactoryBot.create(:lead_provider, name: 'Ambition institute')
delivery_partner = FactoryBot.create(:delivery_partner)
provider_partnership = FactoryBot.create(:provider_partnership, lead_provider:, delivery_partner:, academic_year:)
appropriate_body = FactoryBot.create(:appropriate_body, name: 'Alpha Teaching School Hub')

FactoryBot.create(:training_period, :active, :for_ect, provider_partnership:,
ect_at_school_period: current_ect_period,
started_on: current_ect_period.started_on)

FactoryBot.create(:induction_period, :active, teacher:, appropriate_body:)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to create these records or will building work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will find out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants