Skip to content

Commit

Permalink
Merge pull request #9028 from owncloud/table-to-paragraph-layout-for-…
Browse files Browse the repository at this point in the history
…https

migrate table layout to paragraph layout for HTTPS setting
  • Loading branch information
LukasReschke committed Jun 14, 2014
2 parents db9ac13 + dc2212c commit 01de7b8
Showing 1 changed file with 25 additions and 29 deletions.
54 changes: 25 additions & 29 deletions settings/templates/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,35 +313,31 @@ class="groupsselect"

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

<div class="section"><form id="mail_settings">
Expand Down

0 comments on commit 01de7b8

Please sign in to comment.