Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Commits
42584161
Commit
42584161
authored
7 months ago
by
Moritz Strohm
Browse files
Options
Downloads
Patches
Plain Diff
use new way to mark required fields for screenreaders, fixes #4488
Closes #4488 Merge request
studip/studip!3284
parent
8a316a12
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/views/messages/write.php
+28
-10
28 additions, 10 deletions
app/views/messages/write.php
with
28 additions
and
10 deletions
app/views/messages/write.php
+
28
−
10
View file @
42584161
...
...
@@ -4,13 +4,33 @@
<input
type=
"hidden"
name=
"message_id"
id=
"message_id"
value=
"
<?=
htmlReady
(
$default_message
->
id
)
?>
"
>
<input
type=
"hidden"
name=
"answer_to"
value=
"
<?=
htmlReady
(
$answer_to
)
?>
"
>
<article
aria-live=
"assertive"
class=
"validation_notes studip"
>
<header>
<h1>
<?=
Icon
::
create
(
'info-circle'
,
Icon
::
ROLE_INFO
)
->
asImg
([
'class'
=>
'text-bottom validation_notes_icon'
])
?>
<?=
_
(
'Hinweise zum Ausfüllen des Formulars'
)
?>
</h1>
</header>
<div
class=
"required_note"
>
<div
aria-hidden=
"true"
>
<?=
_
(
'Pflichtfelder sind mit Sternchen gekennzeichnet.'
)
?>
</div>
<div
class=
"sr-only"
>
<?=
_
(
'Dieses Formular enthält Pflichtfelder.'
)
?>
</div>
</div>
</article>
<fieldset>
<legend>
<?=
_
(
'Neue Nachricht'
)
?>
</legend>
<div
class=
"message-user-list"
>
<label>
<span
class=
"required"
>
<?=
_
(
"An"
)
?>
</span>
<?
$quick_search
=
QuickSearch
::
get
(
'user_id'
,
new
StandardSearch
(
'user_id'
));
?>
<label
class=
"studiprequired"
for=
"
<?=
htmlReady
(
$quick_search
->
getId
())
?>
"
>
<?=
_
(
"An"
)
?>
<span
class=
"asterisk"
title=
"
<?=
_
(
'Dies ist ein Pflichtfeld'
)
?>
"
aria-hidden=
"true"
>
*
</span>
</label>
<ul
class=
"list-csv"
id=
"adressees"
>
<li
id=
"template_adressee"
style=
"display: none;"
class=
"adressee"
>
...
...
@@ -29,8 +49,7 @@
<?
endforeach
?>
</ul>
<div
class=
"message-search-wrapper"
>
<?=
QuickSearch
::
get
(
'user_id'
,
new
StandardSearch
(
'user_id'
))
->
fireJSFunctionOnSelect
(
'STUDIP.Messages.add_adressee'
)
<?=
$quick_search
->
fireJSFunctionOnSelect
(
'STUDIP.Messages.add_adressee'
)
->
setAttributes
([
'data-context'
=>
''
])
->
withButton
()
->
render
();
...
...
@@ -54,10 +73,9 @@
</script>
</div>
<div>
<label>
<span
class=
"required"
>
<?=
_
(
"Betreff"
)
?>
</span>
<label
class=
"studiprequired"
>
<?=
_
(
"Betreff"
)
?>
<span
class=
"asterisk"
title=
"
<?=
_
(
'Dies ist ein Pflichtfeld'
)
?>
"
aria-hidden=
"true"
>
*
</span>
<input
type=
"text"
name=
"message_subject"
required
value=
"
<?=
htmlReady
(
$default_message
[
'subject'
])
?>
"
>
</label>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment