fix: address code review - add aria-label to jump link, localize optional text, add LANG_optional key
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/7c776773-fa8f-4f5d-afec-ff62cf7b2bba Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
e30c6ac25d
commit
ade2aabdf0
3 changed files with 4 additions and 3 deletions
|
|
@ -32,6 +32,7 @@ define('LANG_message', "Message");
|
||||||
define('LANG_email_must_be_filled_out', "The email address must be filled out.");
|
define('LANG_email_must_be_filled_out', "The email address must be filled out.");
|
||||||
define('LANG_subject_must_be_filled_out', "The subject must be filled out.");
|
define('LANG_subject_must_be_filled_out', "The subject must be filled out.");
|
||||||
define('LANG_message_must_be_filled_out', "The message must be filled out.");
|
define('LANG_message_must_be_filled_out', "The message must be filled out.");
|
||||||
|
define('LANG_optional', "optional");
|
||||||
define('LANG_send', "Send");
|
define('LANG_send', "Send");
|
||||||
define('LANG_error', "Error");
|
define('LANG_error', "Error");
|
||||||
define('LANG_info', "Info");
|
define('LANG_info', "Info");
|
||||||
|
|
|
||||||
|
|
@ -699,7 +699,7 @@ function exec_ogp_module() {
|
||||||
|
|
||||||
if ( isset($_GET['home_cfg_id']) )
|
if ( isset($_GET['home_cfg_id']) )
|
||||||
{
|
{
|
||||||
echo "<p><a class='xml-jump-link' href='#xml-editor-section'>↓ Jump to XML Editor</a></p>";
|
echo "<p><a class='xml-jump-link' href='#xml-editor-section' aria-label='Jump to XML Editor section below'>↓ Jump to XML Editor</a></p>";
|
||||||
$home_cfg_id = trim($_GET['home_cfg_id']);
|
$home_cfg_id = trim($_GET['home_cfg_id']);
|
||||||
|
|
||||||
$cfg_info = $db->getGameCfg($home_cfg_id);
|
$cfg_info = $db->getGameCfg($home_cfg_id);
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ if (!empty($webhook)) {
|
||||||
|
|
||||||
if(!isset($user['users_email']) or $user['users_email'] == "")
|
if(!isset($user['users_email']) or $user['users_email'] == "")
|
||||||
{
|
{
|
||||||
echo get_lang('email_address').' <em>(optional)</em>:
|
echo get_lang('email_address').' <em>('.get_lang('optional').')</em>:
|
||||||
<br />
|
<br />
|
||||||
<input type="text" name="email" id="email" style="width: 250px;" />
|
<input type="text" name="email" id="email" style="width: 250px;" />
|
||||||
<br />
|
<br />
|
||||||
|
|
@ -114,7 +114,7 @@ if (!empty($webhook)) {
|
||||||
echo '<input type="hidden" name="email" id="email" value="'.$user['users_email'].'" />';
|
echo '<input type="hidden" name="email" id="email" value="'.$user['users_email'].'" />';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo get_lang('subject').' <em>(optional)</em>:
|
echo get_lang('subject').' <em>('.get_lang('optional').')</em>:
|
||||||
<br />
|
<br />
|
||||||
<input type="text" name="subject" id="subject" style="width: 250px;" />
|
<input type="text" name="subject" id="subject" style="width: 250px;" />
|
||||||
<br />
|
<br />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue