diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/content/SebSettingsForm.java b/src/main/java/ch/ethz/seb/sebserver/gui/content/SebSettingsForm.java index c338148b..52d22af7 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/content/SebSettingsForm.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/content/SebSettingsForm.java @@ -94,18 +94,18 @@ public class SebSettingsForm implements TemplateComposer { final EntityKey entityKey = pageContext.getEntityKey(); + final ConfigurationNode configNode = this.restService.getBuilder(GetExamConfigNode.class) + .withURIVariable(API.PARAM_MODEL_ID, entityKey.modelId) + .call() + .onError(error -> pageContext.notifyLoadError(EntityType.CONFIGURATION_NODE, error)) + .getOrThrow(); + final Composite content = widgetFactory.defaultPageLayout( pageContext.getParent(), - TITLE_TEXT_KEY); + new LocTextKey(TITLE_TEXT_KEY.name, Utils.truncateText(configNode.name, 30))); try { - final ConfigurationNode configNode = this.restService.getBuilder(GetExamConfigNode.class) - .withURIVariable(API.PARAM_MODEL_ID, entityKey.modelId) - .call() - .onError(error -> pageContext.notifyLoadError(EntityType.CONFIGURATION_NODE, error)) - .getOrThrow(); - final Configuration configuration = this.restService.getBuilder(GetConfigurations.class) .withQueryParam(Configuration.FILTER_ATTR_CONFIGURATION_NODE_ID, configNode.getModelId()) .withQueryParam(Configuration.FILTER_ATTR_FOLLOWUP, Constants.TRUE_STRING) diff --git a/src/main/resources/messages.properties b/src/main/resources/messages.properties index ccfd086f..51403f2c 100644 --- a/src/main/resources/messages.properties +++ b/src/main/resources/messages.properties @@ -723,7 +723,8 @@ sebserver.examconfig.status.CONSTRUCTION=Under Construction sebserver.examconfig.status.READY_TO_USE=Ready To Use sebserver.examconfig.status.IN_USE=In Use -sebserver.examconfig.props.from.title=Exam Configuration Properties +sebserver.examconfig.props.from.title=Exam Configuration Settings ({0}) +sebserver.examconfig.props.from.title.subtitle= sebserver.examconfig.props.form.views.general=General sebserver.examconfig.props.form.views.user_interface=User Interface sebserver.examconfig.props.form.views.browser=Browser