appPasswordList: markup cleanup
This commit is contained in:
parent
8e75551f95
commit
e5cedc7d5f
|
@ -1317,53 +1317,51 @@ class Pref_Prefs extends Handler_Protected {
|
||||||
}
|
}
|
||||||
|
|
||||||
private function appPasswordList() {
|
private function appPasswordList() {
|
||||||
print "<div dojoType='fox.Toolbar'>";
|
?>
|
||||||
print "<div dojoType='fox.form.DropDownButton'>" .
|
<div dojoType='fox.Toolbar'>
|
||||||
"<span>" . __('Select') . "</span>";
|
<div dojoType='fox.form.DropDownButton'>
|
||||||
print "<div dojoType='dijit.Menu' style='display: none'>";
|
<span><?= __('Select') ?></span>
|
||||||
print "<div onclick=\"Tables.select('app-password-list', true)\"
|
<div dojoType='dijit.Menu' style='display: none'>
|
||||||
dojoType=\"dijit.MenuItem\">" . __('All') . "</div>";
|
<div onclick="Tables.select('app-password-list', true)"
|
||||||
print "<div onclick=\"Tables.select('app-password-list', false)\"
|
dojoType="dijit.MenuItem"><?= __('All') ?></div>
|
||||||
dojoType=\"dijit.MenuItem\">" . __('None') . "</div>";
|
<div onclick="Tables.select('app-password-list', false)"
|
||||||
print "</div></div>";
|
dojoType="dijit.MenuItem"><?= __('None') ?></div>
|
||||||
print "</div>"; #toolbar
|
</div>
|
||||||
|
</div>
|
||||||
print "<div class='panel panel-scrollable'>";
|
</div>
|
||||||
print "<table width='100%' id='app-password-list'>";
|
|
||||||
print "<tr>";
|
|
||||||
print "<th width='2%'></th>";
|
|
||||||
print "<th align='left'>".__("Description")."</th>";
|
|
||||||
print "<th align='right'>".__("Created")."</th>";
|
|
||||||
print "<th align='right'>".__("Last used")."</th>";
|
|
||||||
print "</tr>";
|
|
||||||
|
|
||||||
|
<div class='panel panel-scrollable'>
|
||||||
|
<table width='100%' id='app-password-list'>
|
||||||
|
<tr>
|
||||||
|
<th width='2%'> </th>
|
||||||
|
<th align='left'><?= __("Description") ?></th>
|
||||||
|
<th align='right'><?= __("Created") ?></th>
|
||||||
|
<th align='right'><?= __("Last used") ?></th>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
$sth = $this->pdo->prepare("SELECT id, title, created, last_used
|
$sth = $this->pdo->prepare("SELECT id, title, created, last_used
|
||||||
FROM ttrss_app_passwords WHERE owner_uid = ?");
|
FROM ttrss_app_passwords WHERE owner_uid = ?");
|
||||||
$sth->execute([$_SESSION['uid']]);
|
$sth->execute([$_SESSION['uid']]);
|
||||||
|
|
||||||
while ($row = $sth->fetch()) {
|
while ($row = $sth->fetch()) { ?>
|
||||||
|
<tr data-row-id='<?= $row['id'] ?>'>
|
||||||
$row_id = $row["id"];
|
<td align='center'>
|
||||||
|
<input onclick='Tables.onRowChecked(this)' dojoType='dijit.form.CheckBox' type='checkbox'>
|
||||||
print "<tr data-row-id='$row_id'>";
|
</td>
|
||||||
|
<td>
|
||||||
print "<td align='center'>
|
<?= htmlspecialchars($row["title"]) ?>
|
||||||
<input onclick='Tables.onRowChecked(this)' dojoType='dijit.form.CheckBox' type='checkbox'></td>";
|
</td>
|
||||||
print "<td>" . htmlspecialchars($row["title"]) . "</td>";
|
<td align='right' class='text-muted'>
|
||||||
|
<?= TimeHelper::make_local_datetime($row['created'], false) ?>
|
||||||
print "<td align='right' class='text-muted'>";
|
</td>
|
||||||
print TimeHelper::make_local_datetime($row['created'], false);
|
<td align='right' class='text-muted'>
|
||||||
print "</td>";
|
<?= TimeHelper::make_local_datetime($row['last_used'], false) ?>
|
||||||
|
</td>
|
||||||
print "<td align='right' class='text-muted'>";
|
</tr>
|
||||||
print TimeHelper::make_local_datetime($row['last_used'], false);
|
<?php } ?>
|
||||||
print "</td>";
|
</table>
|
||||||
|
</div>
|
||||||
print "</tr>";
|
<?php
|
||||||
}
|
|
||||||
|
|
||||||
print "</table>";
|
|
||||||
print "</div>";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function encryptAppPassword($password) {
|
private function encryptAppPassword($password) {
|
||||||
|
|
Loading…
Reference in New Issue