Release 0.7.2
[grauphel.git] / templates / oauthAuthorize.php
index 5d4023b..782c51a 100644 (file)
@@ -1,9 +1,22 @@
-<form method="post" action="<?php p($_['formaction']); ?>">
+<?php style('grauphel', 'grauphel'); ?>
+
+<form method="post" action="<?php p($_['formaction']); ?>" class="oauth-authorize">
  <input type="hidden" value="<?php p($_['requesttoken']); ?>" name="requesttoken" />
  <input type="hidden" value="<?php p($_['oauth_token']); ?>" name="oauth_token" />
+ <p class="msg">
+  Shall application
+  <strong><?php p($_['clientTitle']); ?></strong>
+  get full access to the notes?
+ </p>
  <p>
-  Shall application FIXME get full access to the notes?
+  <label>
+   Application/computer name:
+   <input type="text" name="client" value="<?php p($_['clientAgent']); ?>"/>
+  </label>
+  (e.g. <tt>home pc</tt>)
  </p>
- <button type="submit" name="auth" value="ok">Yes, authorize</button>
- <button type="submit" name="auth" value="cancel">No, decline</button>
+ <div class="buttons">
+  <button type="submit" name="auth" value="ok">Yes, authorize</button>
+  <button type="submit" name="auth" value="cancel">No, decline</button>
+ </div>
 </form>