aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/templates/settings/partials/form.tmpl
blob: c0d8c4a7783108d2492d256a455385e37f2c3fb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<form
  action="/settings"
  method="POST"
  hx-post="/htmx/settings"
  id="settings-form"
>
  <fieldset class="form-group">
    <input class="form-control" type="text" placeholder="URL of profile picture" value="{{ .AuthenticatedUser.Image }}" name="image_url">
  </fieldset>
  <fieldset class="form-group">
    <input class="form-control form-control-lg" type="text" placeholder="Your Name" value="{{ .AuthenticatedUser.Name }}" name="name">
  </fieldset>
  <fieldset class="form-group">
    <textarea class="form-control form-control-lg" rows="8" placeholder="Short bio about you" name="bio">{{ .AuthenticatedUser.Bio }}</textarea>
  </fieldset>
  <fieldset class="form-group">
    <input class="form-control form-control-lg" type="email" placeholder="Email" value="{{ .AuthenticatedUser.Email }}" name="email">
  </fieldset>
  <fieldset class="form-group">
    <input class="form-control form-control-lg" type="password" placeholder="Password" name="password">
  </fieldset>
  <button class="btn btn-lg btn-primary pull-xs-right" hx-post="/htmx/settings" hx-swap="none">
    Update Settings
  </button>
</form>