Skip to content

6172: Additions for service agreements#280

Open
jeppekroghitk wants to merge 11 commits intodevelopfrom
feature/6172-driftaftale-overblik-additions
Open

6172: Additions for service agreements#280
jeppekroghitk wants to merge 11 commits intodevelopfrom
feature/6172-driftaftale-overblik-additions

Conversation

@jeppekroghitk
Copy link
Copy Markdown
Contributor

@jeppekroghitk jeppekroghitk commented Apr 10, 2026

Link to ticket

6172

Description

New fields on ServiceAgreement:

  • EoL Aftale (boolean)
  • Leantime Projekt (URL)
  • Kontakt hos kunden (Navn + Email)
  • Dedikeret Server (boolean)
  • Serverstørrelse (select dropdown)
  • Cybersikkerhedsaftale Pris (float)
  • GIT Repos (multiline text)
  • createdAt / updatedAt (auto-timestamps)

Modified fields:

  • SystemOwnerNotice → multi-select checkboxes (Serverflytning, Sikkerhedspatch, Cybersikkershedsopdatering)
  • Gyldig til → optional, with browser-native required validation when EoL is checked
  • Specified naming of Driftsaftale Pris

Styling fixes:

  • Checkboxes displayed before labels across the form

Screenshot of the result

N/A

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

@jeppekroghitk jeppekroghitk requested a review from tuj April 10, 2026 09:36
return 'Extend service_agreement with new fields, change system_owner_notice to JSON, make valid_to nullable, add timestamps';
}

public function up(Schema $schema): void
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Regenerate with doctrine:migrations:diff

use Symfony\Component\Validator\Context\ExecutionContextInterface;

#[ORM\Entity(repositoryClass: ServiceAgreementRepository::class)]
#[ORM\HasLifecycleCallbacks]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should extend AbstractBaseEntity instead of setting createdAt/createdBy/etc
https://github.com/itk-dev/economics/blob/develop/src/Entity/AbstractBaseEntity.php

@jeppekroghitk jeppekroghitk requested a review from tuj April 10, 2026 10:44

{{ form_start(form) }}
<div class="selections" {{ stimulus_controller('choices') }}>
<div class="selections" data-controller="choices eol-required">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can this be done with

{{ stimulus_controller('choices eol-required') }}

?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It works!

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.

2 participants