fix unclosed div and wrong input fields

This commit is contained in:
zapashcanon 2022-04-06 01:24:52 +02:00
parent fe29b81818
commit 1f8e4873a1
No known key found for this signature in database
GPG key ID: 8981C3C62D1D28F1

View file

@ -2,7 +2,7 @@ let f request =
% let new_thread_button = % let new_thread_button =
% if Option.is_none @@ Dream.session "nick" request then % if Option.is_none @@ Dream.session "nick" request then
% Format.sprintf % Format.sprintf
% {|<a class="btn btn-primary" id="new-thread-button-redirect" href="/login?redirect=%s">New Thread</a>|} (Dream.to_percent_encoded "/") % {|<a class="btn btn-primary" id="new-thread-button-redirect" href="/login?redirect=%s">New Thread</a>|} (Dream.to_percent_encoded "/")
% else {|<button class="btn btn-primary on" id="new-thread-button">New Thread</button>|} % else {|<button class="btn btn-primary on" id="new-thread-button">New Thread</button>|}
% in % in
@ -18,38 +18,37 @@ let f request =
<%s! new_thread_button %> <%s! new_thread_button %>
</div> </div>
<div class="col-lg-6 col-md-12"> <div class="col-lg-6 col-md-12">
<div class="thread-preview on" id="thread-preview"></div>
<div class="thread-preview on" id="thread-preview"></div> <div class="new-thread off" id="new-thread">
<h2>New thread</h2>
<div class="new-thread off" id="new-thread"> <span id="new-thread-info">
<h2>New thread</h2>
<span id="new-thread-info">
Click the map and make a new thread: Click the map and make a new thread:
</span> </span>
<br /> <br />
<div class="postForm"> <div class="postForm">
<%s! Dream.form_tag ~action:"/" ~enctype:`Multipart_form_data request %> <%s! Dream.form_tag ~action:"/" ~enctype:`Multipart_form_data request %>
<input type="hidden" id="lat-input" name="lat-input"> <input type="hidden" id="lat-input" name="lat-input">
<input type="hidden" id="lng-input" name="lng-input"> <input type="hidden" id="lng-input" name="lng-input">
<label for="subject" id="subject-label" class="form-label">Subject</label> <label for="subject" id="subject-label" class="form-label">Subject</label>
<input name="subject" type="text" class="form-control" id="subject" aria-labelledby="subject-label"></input> <input name="subject" type="text" class="form-control" id="subject" aria-labelledby="subject-label" />
<br /> <br />
<label for="thread-comment" id="thread-comment-label" class="form-label">Comment</label> <label for="thread-comment" id="thread-comment-label" class="form-label">Comment</label>
<textarea name="thread-comment" type="text" class="form-control" id="thread-comment" aria-labelledby="thread-comment-label"></textarea> <textarea name="thread-comment" type="text" class="form-control" id="thread-comment" aria-labelledby="thread-comment-label"></textarea>
<br /> <br />
<label for="tags" id="tags-label" class="form-label">Tags</label> <label for="tags" id="tags-label" class="form-label">Tags</label>
<%s! Format.asprintf "%a" Pp_babillard.pp_checkboxes () %> <%s! Format.asprintf "%a" Pp_babillard.pp_checkboxes () %>
<input name="tags" type="text" class="form-control" id="tags" aria-labelledby="tags-label"></input> <input name="tags" type="text" class="form-control" id="tags" aria-labelledby="tags-label" />
<br /> <br />
<label for="file" id="file-label" class="form-label">Picture:</label> <label for="file" id="file-label" class="form-label">Picture:</label>
<input id="file" name="file" aria-describedby="file-label" type="file" accept="image/png,image/jpeg,image/webp"> <input id="file" name="file" aria-describedby="file-label" type="file" accept="image/png,image/jpeg,image/webp">
<br /> <br />
<label for="alt" id="alt-label" class="form-label">Image description:</label> <label for="alt" id="alt-label" class="form-label">Image description:</label>
<input name="alt" type="text" class="form-control" id="alt" aria-labelledby="alt-label"></input> <input name="alt" type="text" class="form-control" id="alt" aria-labelledby="alt-label" />
<br /> <br />
<button type="submit" class="btn btn-primary" id="submit-new-thread-button" disabled>Make Thread</button> <button type="submit" class="btn btn-primary" id="submit-new-thread-button" disabled>Make Thread</button>
</form> </form>
</div>
</div> </div>
</div> </div>
</div> </div>