git.cweiske.de
/
tt-rss-micropub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show micropub error descriptions
[tt-rss-micropub.git]
/
settings.phtml
diff --git
a/settings.phtml
b/settings.phtml
index a06f2ea56f316b62d52a1b763f0f5fd9a21d3242..083f3d7e61a259a1c77ba00ee7b8503069c86312 100644
(file)
--- a/
settings.phtml
+++ b/
settings.phtml
@@
-1,4
+1,4
@@
-<div dojoType="dijit.layout.AccordionPane" title="Micropub">
+<div dojoType="dijit.layout.AccordionPane" title="Micropub"
id="micropub" <?= $accordionActive ?>
>
<div>
<h2>Registered identities</h2>
<table width="100%">
<div>
<h2>Registered identities</h2>
<table width="100%">
@@
-6,17
+6,26
@@
<tr class="title">
<td width="5%">Default</td>
<td>Identity URL</td>
<tr class="title">
<td width="5%">Default</td>
<td>Identity URL</td>
+ <td width="5%"></td>
</tr>
</thead>
<tbody>
<?php foreach ($accounts as $accurl => $account) { ?>
</tr>
</thead>
<tbody>
<?php foreach ($accounts as $accurl => $account) { ?>
- <tr>
+ <tr
data-url="<?= htmlspecialchars($accurl) ?>"
>
<td align='center'>
<td align='center'>
- <input disabled='1' dojoType="dijit.form.CheckBox" type="checkbox"/>
+ <input type="radio" href="#" dojoType="dijit.form.RadioButton"
+ name="micropubDefaultIdentity"
+ value="<?= htmlspecialchars($accurl) ?>"
+ <?= $account['checked'] ?>
+ onchange='micropubMakeDefault(<?= json_encode($accurl) ?>, this)'
+ />
</td>
<td>
<a href="<?= htmlspecialchars($accurl) ?>"><?= htmlspecialchars($accurl) ?></a>
</td>
</td>
<td>
<a href="<?= htmlspecialchars($accurl) ?>"><?= htmlspecialchars($accurl) ?></a>
</td>
+ <td>
+ <a href="#" onclick='javascript:micropubDeleteIdentity(<?= json_encode($accurl) ?>)'>Remove</a>
+ </td>
</tr>
<?php } ?>
</tbody>
</tr>
<?php } ?>
</tbody>
@@
-31,7
+40,8
@@
<input type="hidden" name="method" value="action"/>
<input type="hidden" name="mode" value="authorize"/>
<input type="hidden" name="method" value="action"/>
<input type="hidden" name="mode" value="authorize"/>
- <input name="url" type="url" size="40" dojoType="dijit.form.TextBox" required="1"/>
+ <input name="url" type="url" size="40" dojoType="dijit.form.TextBox"
+ required="1" autocomplete="on"/>
<button type="submit">Authorize</button>
</form>
</div>
<button type="submit">Authorize</button>
</form>
</div>