resources/newaccount.gtl
  1  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2  <!-- Copyright 2017 Google Inc. -->
  3  <html>
  4  <head>
  5  <title>Gruyere: Profile</title>
  6  [[include:base.css]][[/include:base.css]]
  7  </head>
  8  
  9  <body>
 10  [[include:menubar.gtl]][[/include:menubar.gtl]]
 11  <h2>Gruyere: Sign up</h2>
 12  
 13  <div class='content'>
 14  <h3>Sign up for a new account.</h3>
 15  
 16  [[if:_message]]
 17  <div class='message'>{{_message}}</div>
 18  [[/if:_message]]
 19  
 20  <form method='get' action='/{{_unique_id}}/saveprofile'>
 21  <input type='hidden' name='action' value='new'>
 22  
 23  <table><tr><td>
 24      User name:
 25    </td><td>
 26      <input type='text' name='uid' value='' maxlength='16'>
 27  </td></tr>
 28  <tr><td>
 29      Password:
 30    </td><td>
 31      <input type='password' name='pw'>
 32      <br><span style="color:red"><b>WARNING: Gruyere is not secure.<br>
 33      Do not use a password that you use for any real service.<br>
 34      Do not upload any personal or private data.</b></span>
 35  </td></tr>
 36  [[if:_cookie.is_admin]]
 37  <tr><td>
 38      Is admin:
 39    </td><td>
 40      <input type='radio' name='is_admin' value='True'>Yes
 41      <input type='radio' name='is_admin' value='False' checked>No
 42  </td></tr>
 43  <tr><td>
 44      Is author:
 45    </td><td>
 46      <input type='radio' name='is_author' value='True' checked>Yes
 47      <input type='radio' name='is_author' value='False'>No
 48  </td></tr>
 49  [[/if:_cookie.is_admin]]
 50  [[if:!_cookie.is_admin]]
 51  <input type='hidden' name='is_author' value='True'>
 52  [[/if:!_cookie.is_admin]]
 53  <tr><td></td><td align='right'>
 54      <input type='submit' value='Create account'>
 55  </td></tr>
 56  </table>
 57  </form>
 58  </div>
 59  </body>
 60  
 61  </html>
 62