Skip to content

Commit

Permalink
cleaned-up document page
Browse files Browse the repository at this point in the history
  • Loading branch information
jflamy committed Aug 19, 2024
1 parent 5aa082c commit f49b6b6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private Component createTitle(String string) {
}

public FormLayout preWeighInTemplateSelectionForm() {
FormLayout layout = createSetLayoutHeader();
FormLayout layout = createSetLayoutHeader(PreCompetitionTemplates.PRE_WEIGHIN);
addTemplateSelection(layout, PreCompetitionTemplates.CARDS);
addTemplateSelection(layout, PreCompetitionTemplates.WEIGHIN);
return layout;
Expand All @@ -74,9 +74,9 @@ private FormLayout createLayoutHeader(PreCompetitionTemplates templateDefinition
return layout;
}

private FormLayout createSetLayoutHeader() {
private FormLayout createSetLayoutHeader(PreCompetitionTemplates templateDefinition) {
FormLayout layout = createLayout();
Component title = createTitle(DOCUMENTS_TEMPLATE_SELECTION);
Component title = createTitle(templateDefinition.name());
layout.add(title);
layout.setColspan(title, 2);
Div div = new Div(Translator.translate(DOCUMENTS_IGNORE_NO_TEMPLATE));
Expand All @@ -92,7 +92,7 @@ public FormLayout singleTemplateSelection(PreCompetitionTemplates templateDefini
}

public FormLayout postWeighInTemplateSelectionForm() {
FormLayout layout = createSetLayoutHeader();
FormLayout layout = createSetLayoutHeader(PreCompetitionTemplates.POST_WEIGHIN);
addTemplateSelection(layout, PreCompetitionTemplates.INTRODUCTION);
addTemplateSelection(layout, PreCompetitionTemplates.EMPTY_PROTOCOL);
addTemplateSelection(layout, PreCompetitionTemplates.JURY);
Expand Down

0 comments on commit f49b6b6

Please sign in to comment.