mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
Really hide domain selection when not needed; UI cleanup of Login button
This commit is contained in:
parent
c72227f203
commit
e999260d52
11
login.php
11
login.php
@ -288,7 +288,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
$tmpl->set_block('login_form','domain_selection');
|
||||
$domain_select = ' ';
|
||||
$lang_domain_select = ' ';
|
||||
$last_loginid = $_COOKIE['last_loginid'];
|
||||
if($GLOBALS['phpgw_info']['server']['show_domain_selectbox'])
|
||||
{
|
||||
@ -304,6 +306,7 @@
|
||||
$domain_select .= '>' . $domain_name . "</option>\n";
|
||||
}
|
||||
$domain_select .= "</select>\n";
|
||||
$lang_domain_select = lang('Domain');
|
||||
}
|
||||
elseif($last_loginid !== '')
|
||||
{
|
||||
@ -315,8 +318,14 @@
|
||||
$last_loginid .= '@' . $_COOKIE['last_domain'];
|
||||
}
|
||||
}
|
||||
$tmpl->set_var('lang_select_domain',lang('Domain'));
|
||||
$tmpl->set_var('lang_select_domain',$lang_domain_select);
|
||||
$tmpl->set_var('select_domain',$domain_select);
|
||||
|
||||
if(!$GLOBALS['phpgw_info']['server']['show_domain_selectbox'])
|
||||
{
|
||||
/* trick to make domain selection disappear */
|
||||
$tmpl->set_var('domain_selection','');
|
||||
}
|
||||
|
||||
foreach($_GET as $name => $value)
|
||||
{
|
||||
|
@ -94,11 +94,13 @@
|
||||
<td align="left" colspan="2">{select_language}</td>
|
||||
</tr>
|
||||
<!-- END language_select -->
|
||||
<!-- BEGIN domain_selection -->
|
||||
<tr>
|
||||
<td align="right" tablindex="1">{lang_select_domain} </td>
|
||||
<td align="left">{select_domain}</td>
|
||||
<td align="left"></td>
|
||||
</tr>
|
||||
<!-- END domain_selection -->
|
||||
<tr>
|
||||
<td align="right" tablindex="1">{lang_username} </td>
|
||||
<td align="left"><input name="login" value="{cookie}" style="width: 100px; border: 1px solid silver;"></td>
|
||||
@ -109,7 +111,8 @@
|
||||
<td align="left"><input name="passwd" type="password" onChange="this.form.submit()" style="width: 100px; border: 1px solid silver;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="margin-top:5px;">
|
||||
<td align="right"> </td>
|
||||
<td align="left" style="margin-top:5px;">
|
||||
<input type="submit" value="{lang_login}" name="submitit" style="border: 1px solid silver;width:100px;">
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user