6783d21afb8e322422741d5d48432ac28c22dfaa
[tt-rss-micropub.git] / settings.phtml
1 <div dojoType="dijit.layout.AccordionPane" title="Micropub">
2  <div>
3   <h1>Existing identities</h1>
4   <table border="1">
5    <thead>
6     <tr><th>Identity URL</th></tr>
7    </thead>
8    <tbody>
9     <?php foreach ($accounts as $accurl => $account) { ?>
10      <tr>
11       <td><?= $accurl ?></td>
12      </tr>
13     <?php } ?>
14    </tbody>
15   </table>
16  </div>
17
18  <div>
19   <h1>Add new identity</h1>
20   <form method="post" action="backend.php">
21    <input type="hidden" name="op" value="pluginhandler"/>
22    <input type="hidden" name="plugin" value="micropub"/>
23    <input type="hidden" name="method" value="action"/>
24    <input type="hidden" name="mode"   value="authorize"/>
25
26    <input name="url" type="url" size="40"/>
27    <button type="submit">Authorize</button>
28   </form>
29  </div>
30 </div>