| 1 | {{ define "page" -}} |
| 2 | <div class="shithub-settings-page"> |
| 3 | {{ template "settings-nav" . }} |
| 4 | <div class="shithub-settings-content"> |
| 5 | <h1>Public profile</h1> |
| 6 | |
| 7 | {{ with .Error }}<p class="shithub-flash shithub-flash-error" role="alert">{{ . }}</p>{{ end }} |
| 8 | {{ with .Success }}<p class="shithub-flash shithub-flash-notice" role="status">{{ . }}</p>{{ end }} |
| 9 | |
| 10 | <div class="shithub-profile-edit"> |
| 11 | <section class="shithub-settings-section shithub-profile-edit-form"> |
| 12 | <form method="POST" action="/settings/profile" novalidate> |
| 13 | <input type="hidden" name="csrf_token" value="{{ .CSRFToken }}"> |
| 14 | <label> |
| 15 | <span>Name</span> |
| 16 | <input type="text" name="display_name" maxlength="100" value="{{ .Form.DisplayName }}"> |
| 17 | <small>Your name may appear around shithub where you contribute or are mentioned. You can remove it at any time.</small> |
| 18 | </label> |
| 19 | <label> |
| 20 | <span>Bio</span> |
| 21 | <textarea name="bio" rows="3" maxlength="500">{{ .Form.Bio }}</textarea> |
| 22 | <small>You can @mention other users and organizations to link to them.</small> |
| 23 | </label> |
| 24 | <label> |
| 25 | <span>Pronouns</span> |
| 26 | <input type="text" name="pronouns" maxlength="40" value="{{ .Form.Pronouns }}" placeholder="e.g. she/her, they/them"> |
| 27 | </label> |
| 28 | <label> |
| 29 | <span>URL</span> |
| 30 | <input type="text" name="website" maxlength="200" value="{{ .Form.Website }}" placeholder="https://example.com"> |
| 31 | </label> |
| 32 | <label> |
| 33 | <span>Company</span> |
| 34 | <input type="text" name="company" maxlength="80" value="{{ .Form.Company }}"> |
| 35 | <small>You can @mention your company's shithub organization to link it.</small> |
| 36 | </label> |
| 37 | <label> |
| 38 | <span>Location</span> |
| 39 | <input type="text" name="location" maxlength="80" value="{{ .Form.Location }}"> |
| 40 | </label> |
| 41 | <button type="submit" class="shithub-button shithub-button-primary">Update profile</button> |
| 42 | </form> |
| 43 | </section> |
| 44 | |
| 45 | <aside class="shithub-profile-edit-aside"> |
| 46 | <h2>Profile picture</h2> |
| 47 | <img src="/avatars/{{ .Username }}" alt="" class="shithub-profile-edit-avatar"> |
| 48 | <p class="shithub-empty-note">Avatar upload coming soon.</p> |
| 49 | </aside> |
| 50 | </div> |
| 51 | </div> |
| 52 | </div> |
| 53 | {{- end }} |