Newer
Older
gitbucket_jkp / src / main / twirl / account / useredit.scala.html
@takezoe takezoe on 6 Jun 2013 809 bytes Add the account editing page.
@(account: model.Account)(implicit context: app.Context)
@import context._
@html.main(account.userName){
  <form action="@path/@account.userName/_edit" method="POST" validate="true">
    <fieldset>
      <label><strong>Mail Address</strong></label>
      <input type="text" name="mailAddress" id="mailAddress" value="@account.mailAddress"/>
      <span id="error-mailAddress" class="error"></span>
    </fieldset>
    <fieldset>
      <label><strong>URL (Optional)</strong></label>
      <input type="text" name="url" id="url" style="width: 400px;" value="@account.url"/>
      <span id="error-url" class="error"></span>
    </fieldset>
    <fieldset>
      <input type="submit" class="btn btn-primary" value="Save"/>
      <a href="@path/@account.userName" class="btn">Cancel</a>
    </fieldset>
  </form>
}