|
40 | 40 | } |
41 | 41 | ?> |
42 | 42 | </td> |
43 | | -<?php |
44 | | -if ($this->data['rememberUsernameEnabled']) { |
45 | | - $rowspan = 1; |
46 | | -} elseif (array_key_exists('organizations', $this->data)) { |
47 | | - $rowspan = 3; |
48 | | -} else { |
49 | | - $rowspan = 2; |
50 | | -} |
51 | | -?> |
52 | | - <td style="padding: .4em;" rowspan="<?php echo $rowspan; ?>"> |
53 | | -<?php |
54 | | -if ($this->data['rememberUsernameEnabled']) { |
55 | | - echo str_repeat("\t", 4); |
56 | | - echo '<input type="checkbox" id="remember_username" tabindex="4" name="remember_username" value="Yes" '; |
57 | | - echo ($this->data['rememberUsernameChecked'] ? 'checked="Yes" /> ' : '/> '); |
58 | | - echo $this->t('{login:remember_username}'); |
59 | | -} else { |
60 | | - $text = $this->t('{login:login_button}'); |
61 | | - echo str_repeat("\t", 4); |
62 | | - echo "<input type=\"submit\" tabindex=\"4\" id=\"regularsubmit\" value=\"{$text}\" />"; |
63 | | -} |
64 | | -?> |
| 43 | +<?php |
| 44 | +if ($this->data['rememberUsernameEnabled'] || $this->data['rememberMeEnabled']) { |
| 45 | + $rowspan = 1; |
| 46 | +} elseif (array_key_exists('organizations', $this->data)) { |
| 47 | + $rowspan = 3; |
| 48 | +} else { |
| 49 | + $rowspan = 2; |
| 50 | +} |
| 51 | +?> |
| 52 | + <td style="padding: .4em;" rowspan="<?php echo $rowspan; ?>"> |
| 53 | +<?php |
| 54 | +if ($this->data['rememberUsernameEnabled'] || $this->data['rememberMeEnabled']) { |
| 55 | + if ($this->data['rememberUsernameEnabled']) { |
| 56 | + echo str_repeat("\t", 4); |
| 57 | + echo '<input type="checkbox" id="remember_username" tabindex="4" name="remember_username" value="Yes" '; |
| 58 | + echo ($this->data['rememberUsernameChecked'] ? 'checked="Yes" /> ' : '/> '); |
| 59 | + echo $this->t('{login:remember_username}'); |
| 60 | + } |
| 61 | + if ($this->data['rememberMeEnabled']) { |
| 62 | + echo str_repeat("\t", 4); |
| 63 | + echo '<input type="checkbox" id="remember_me" tabindex="4" name="remember_me" value="Yes" '; |
| 64 | + echo $this->data['rememberMeChecked'] ? 'checked="Yes" /> ' : '/> '; |
| 65 | + echo $this->t('{login:remember_me}'); |
| 66 | + } |
| 67 | +} else { |
| 68 | + $text = $this->t('{login:login_button}'); |
| 69 | + echo str_repeat("\t", 4); |
| 70 | + echo "<input type=\"submit\" tabindex=\"4\" id=\"regularsubmit\" value=\"{$text}\" />"; |
| 71 | +} |
| 72 | +?> |
65 | 73 | </td> |
66 | 74 | </tr> |
67 | 75 | <tr> |
68 | 76 | <td style="padding: .3em;"><?php echo $this->t('{login:password}'); ?></td> |
69 | 77 | <td><input id="password" type="password" tabindex="2" name="password" /></td> |
70 | | -<?php |
71 | | -// Move submit button to next row if remember checkbox enabled |
72 | | -if ($this->data['rememberUsernameEnabled']) { |
73 | | - $rowspan = (array_key_exists('organizations', $this->data) ? 2 : 1); |
74 | | -?> |
75 | | - <td style="padding: .4em;" rowspan="<?php echo $rowspan; ?>"> |
76 | | - <input type="submit" tabindex="5" id="regularsubmit" value="<?php echo $this->t('{login:login_button}'); ?>" /> |
77 | | - </td> |
78 | | -<?php |
79 | | -} |
80 | | -?> |
| 78 | +<?php |
| 79 | +// Move submit button to next row if remember checkbox enabled |
| 80 | +if ($this->data['rememberUsernameEnabled'] || $this->data['rememberMeEnabled']) { |
| 81 | + $rowspan = (array_key_exists('organizations', $this->data) ? 2 : 1); |
| 82 | +?> |
| 83 | + <td style="padding: .4em;" rowspan="<?php echo $rowspan; ?>"> |
| 84 | + <input type="submit" tabindex="5" id="regularsubmit" value="<?php echo $this->t('{login:login_button}'); ?>" /> |
| 85 | + </td> |
| 86 | +<?php |
| 87 | +} |
| 88 | +?> |
81 | 89 | </tr> |
82 | 90 |
|
83 | 91 | <?php |
|
0 commit comments