Make plugin work with latest tt-rss
[tt-rss-micropub.git] / settings.phtml
index 6783d21afb8e322422741d5d48432ac28c22dfaa..a06f2ea56f316b62d52a1b763f0f5fd9a21d3242 100644 (file)
@@ -1,14 +1,22 @@
 <div dojoType="dijit.layout.AccordionPane" title="Micropub">
  <div>
-  <h1>Existing identities</h1>
-  <table border="1">
+  <h2>Registered identities</h2>
+  <table width="100%">
    <thead>
-    <tr><th>Identity URL</th></tr>
+    <tr class="title">
+     <td width="5%">Default</td>
+     <td>Identity URL</td>
+    </tr>
    </thead>
    <tbody>
     <?php foreach ($accounts as $accurl => $account) { ?>
      <tr>
-      <td><?= $accurl ?></td>
+      <td align='center'>
+       <input disabled='1' dojoType="dijit.form.CheckBox" type="checkbox"/>
+      </td>
+      <td>
+       <a href="<?= htmlspecialchars($accurl) ?>"><?= htmlspecialchars($accurl) ?></a>
+      </td>
      </tr>
     <?php } ?>
    </tbody>
  </div>
 
  <div>
-  <h1>Add new identity</h1>
+  <h2>Add new identity</h2>
   <form method="post" action="backend.php">
    <input type="hidden" name="op" value="pluginhandler"/>
    <input type="hidden" name="plugin" value="micropub"/>
    <input type="hidden" name="method" value="action"/>
    <input type="hidden" name="mode"   value="authorize"/>
 
-   <input name="url" type="url" size="40"/>
+   <input name="url" type="url" size="40" dojoType="dijit.form.TextBox" required="1"/>
    <button type="submit">Authorize</button>
   </form>
  </div>