Skip to content

[C2] Alignment of addLabel() item in course settings #7456

@ywarnier

Description

@ywarnier

In course settings, "Course access" section, the "Direct link" element is called like this:

$label = $form->addLabel(
get_lang('Direct link'),
sprintf(
get_lang(
'If your course is public or open, you can use the direct link below to send an invitation to new users, so after registration, they will be sent directly to the course. Also, you can add the e=1 parameter to the URL, replacing "1" by an exercise ID to send them directly to a specific exam. The exercise ID can be discovered in the URL when clicking on an exercise to open it.<br/>%s'
),
$url
),
true
);

For some reason, the title does not appear as a label with the long text below it. It all appears on the same line.

Image

Make sure labels appear first and the details second.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions