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
Jan-Hendrik Willms
Stud.IP
Commits
5e7d375c
Commit
5e7d375c
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
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
+38
-10
38 additions, 10 deletions
app/views/messages/write.php
with
38 additions
and
10 deletions
app/views/messages/write.php
+
38
−
10
View file @
5e7d375c
...
@@ -4,13 +4,43 @@
...
@@ -4,13 +4,43 @@
<input
type=
"hidden"
name=
"message_id"
id=
"message_id"
value=
"
<?=
htmlReady
(
$default_message
->
id
)
?>
"
>
<input
type=
"hidden"
name=
"message_id"
id=
"message_id"
value=
"
<?=
htmlReady
(
$default_message
->
id
)
?>
"
>
<input
type=
"hidden"
name=
"answer_to"
value=
"
<?=
htmlReady
(
$answer_to
)
?>
"
>
<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>
<?
if
(
$form_errors
)
:
?>
<div>
<?=
_
(
'Folgende Angaben müssen korrigiert werden, um das Formular abschicken zu können:'
)
?>
<ul>
<?
foreach
(
$form_errors
as
$field
=>
$error
)
:
?>
<li>
<?=
htmlReady
(
$field
)
?>
:
<?=
htmlReady
(
$error
)
?>
</li>
<?
endforeach
?>
</ul>
</div>
<?
endif
?>
</article>
<fieldset>
<fieldset>
<legend>
<?=
_
(
'Neue Nachricht'
)
?>
</legend>
<legend>
<?=
_
(
'Neue Nachricht'
)
?>
</legend>
<div
class=
"message-user-list"
>
<div
class=
"message-user-list"
>
<label>
<?
<span
class=
"required"
>
$quick_search
=
QuickSearch
::
get
(
'user_id'
,
new
StandardSearch
(
'user_id'
));
<?=
_
(
"An"
)
?>
?>
</span>
<label
class=
"studiprequired"
for=
"
<?=
htmlReady
(
$quick_search
->
getId
())
?>
"
>
<?=
_
(
"An"
)
?>
<span
class=
"asterisk"
title=
"
<?=
_
(
'Dies ist ein Pflichtfeld'
)
?>
"
aria-hidden=
"true"
>
*
</span>
</label>
</label>
<ul
class=
"list-csv"
id=
"adressees"
>
<ul
class=
"list-csv"
id=
"adressees"
>
<li
id=
"template_adressee"
style=
"display: none;"
class=
"adressee"
>
<li
id=
"template_adressee"
style=
"display: none;"
class=
"adressee"
>
...
@@ -29,8 +59,7 @@
...
@@ -29,8 +59,7 @@
<?
endforeach
?>
<?
endforeach
?>
</ul>
</ul>
<div
class=
"message-search-wrapper"
>
<div
class=
"message-search-wrapper"
>
<?=
QuickSearch
::
get
(
'user_id'
,
new
StandardSearch
(
'user_id'
))
<?=
$quick_search
->
fireJSFunctionOnSelect
(
'STUDIP.Messages.add_adressee'
)
->
fireJSFunctionOnSelect
(
'STUDIP.Messages.add_adressee'
)
->
setAttributes
([
'data-context'
=>
''
])
->
setAttributes
([
'data-context'
=>
''
])
->
withButton
()
->
withButton
()
->
render
();
->
render
();
...
@@ -54,10 +83,9 @@
...
@@ -54,10 +83,9 @@
</script>
</script>
</div>
</div>
<div>
<div>
<label>
<label
class=
"studiprequired"
>
<span
class=
"required"
>
<?=
_
(
"Betreff"
)
?>
<?=
_
(
"Betreff"
)
?>
<span
class=
"asterisk"
title=
"
<?=
_
(
'Dies ist ein Pflichtfeld'
)
?>
"
aria-hidden=
"true"
>
*
</span>
</span>
<input
type=
"text"
name=
"message_subject"
required
value=
"
<?=
htmlReady
(
$default_message
[
'subject'
])
?>
"
>
<input
type=
"text"
name=
"message_subject"
required
value=
"
<?=
htmlReady
(
$default_message
[
'subject'
])
?>
"
>
</label>
</label>
</div>
</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