2021-11-08 15:24:10 +01:00
|
|
|
let f nick bio request =
|
|
|
|
|
<%s Format.sprintf "Hello %s !" nick %>
|
2021-11-07 18:52:31 +01:00
|
|
|
<%s! Dream.form_tag ~action:"/profile" request %>
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<label for="bio" class="form-label">Bio</label>
|
2021-11-14 22:29:47 +01:00
|
|
|
<textarea name="bio" type="text" class="form-control" id="bio" aria-describedby="bioHelp"><%s bio %></textarea>
|
2021-11-07 18:52:31 +01:00
|
|
|
<div id="bioHelp" class="form-text">Who are you?</div>
|
|
|
|
|
</div>
|
|
|
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
|
|
|
|
</form>
|
2021-11-08 15:24:10 +01:00
|
|
|
|
|
|
|
|
<img src="/user/<%s nick %>/avatar" class="img-thumbnail" alt="Your avatar picture">
|
|
|
|
|
<%s! Dream.form_tag ~action:"/profile" ~enctype:`Multipart_form_data request %>
|
2021-12-29 21:07:17 +01:00
|
|
|
<input name="file" type="file">
|
2021-11-08 15:24:10 +01:00
|
|
|
<button>Submit!</button>
|
|
|
|
|
</form>
|