migrate table layout to paragraph layout for HTTPS setting

This commit is contained in:
Morris Jobke 2014-06-13 16:54:47 +02:00
parent c09f5680c9
commit dc2212cd46
1 changed files with 25 additions and 29 deletions

View File

@ -313,35 +313,31 @@ if (!$_['internetconnectionworking']) {
<div class="section" id="security"> <div class="section" id="security">
<h2><?php p($l->t('Security'));?></h2> <h2><?php p($l->t('Security'));?></h2>
<table> <p>
<tr> <input type="checkbox" name="forcessl" id="forcessl"
<td id="enable"> <?php if ($_['enforceHTTPSEnabled']) {
<input type="checkbox" name="forcessl" id="forcessl" print_unescaped('checked="checked" ');
<?php if ($_['enforceHTTPSEnabled']) { print_unescaped('value="false"');
print_unescaped('checked="checked" '); } else {
print_unescaped('value="false"'); print_unescaped('value="true"');
} else { }
print_unescaped('value="true"'); ?>
} <?php if (!$_['isConnectedViaHTTPS']) p('disabled'); ?> />
?> <label for="forcessl"><?php p($l->t('Enforce HTTPS'));?></label><br/>
<?php if (!$_['isConnectedViaHTTPS']) p('disabled'); ?> /> <em><?php p($l->t(
<label for="forcessl"><?php p($l->t('Enforce HTTPS'));?></label><br/> 'Forces the clients to connect to %s via an encrypted connection.',
<em><?php p($l->t( $theme->getName()
'Forces the clients to connect to %s via an encrypted connection.', )); ?></em>
$theme->getName() <?php if (!$_['isConnectedViaHTTPS']) {
)); ?></em> print_unescaped("<br/><em>");
<?php if (!$_['isConnectedViaHTTPS']) { p($l->t(
print_unescaped("<br/><em>"); 'Please connect to your %s via HTTPS to enable or disable the SSL enforcement.',
p($l->t( $theme->getName()
'Please connect to your %s via HTTPS to enable or disable the SSL enforcement.', ));
$theme->getName() print_unescaped("</em>");
)); }
print_unescaped("</em>"); ?>
} </p>
?>
</td>
</tr>
</table>
</div> </div>
<div id="mail_settings" class="section"> <div id="mail_settings" class="section">