same as last commit
parent
f919b90e6b
commit
353445801b
|
@ -10,7 +10,7 @@
|
|||
<div class="body">
|
||||
<input hidden name="formkey" value="{{v|formkey}}">
|
||||
<label for="group-name">Group Name</label>
|
||||
<input id="group-name" minlength="3" maxlength="25" pattern='[a-zA-Z0-9_\-]*' class="form-control" type="text" name="name" required>
|
||||
<input autocomplete="off" id="group-name" minlength="3" maxlength="25" pattern='[a-zA-Z0-9_\-]*' class="form-control" type="text" name="name" required>
|
||||
<small class="form-text text-muted">3-25 characters, including letters, numbers, _ , and -</small>
|
||||
<div class="footer">
|
||||
<div class="d-flex">
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<div class="body">
|
||||
<input hidden name="formkey" value="{{v|formkey}}">
|
||||
<label for="hole-name">Hole Name</label>
|
||||
<input minlength="3" maxlength="25" pattern='[a-zA-Z0-9_\-]*' class="form-control" id="hole-name" type="text" name="name" required>
|
||||
<input autocomplete="off" minlength="3" maxlength="25" pattern='[a-zA-Z0-9_\-]*' class="form-control" id="hole-name" type="text" name="name" required>
|
||||
<small class="form-text text-muted">3-25 characters, including letters, numbers, _ , and -</small>
|
||||
{% if HOLE_INACTIVITY_DELETION %}
|
||||
<p class="text-danger mt-2">Warning: holes get automatically deleted if they spend 7 days with no new posts.</p>
|
||||
|
|
|
@ -360,7 +360,7 @@
|
|||
|
||||
{% if not p.replies %}{% include "comments.html" %}{% endif %}
|
||||
|
||||
<input hidden class="twoattrs" value="{{p.id}},{{p.comment_count}}">
|
||||
<input hidden id="twoattrs-{{p.id}}" class="twoattrs" value="{{p.id}},{{p.comment_count}}">
|
||||
<script defer src="{{'js/new_comments.js' | asset}}"></script>
|
||||
<script defer src="{{'js/post.js' | asset}}"></script>
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
{{post_permalinks.append(p.permalink)}}
|
||||
</div>
|
||||
|
||||
<input hidden class="twoattrs" value="{{p.id}},{{p.comment_count}}">
|
||||
<input hidden id="twoattrs-{{p.id}}" class="twoattrs" value="{{p.id}},{{p.comment_count}}">
|
||||
|
||||
{% set ups=p.upvotes %}
|
||||
{% set downs=p.downvotes %}
|
||||
|
|
|
@ -32,12 +32,14 @@
|
|||
{{macros.emoji_btn('post-title')}}
|
||||
|
||||
<div id="urlblock">
|
||||
<label for="URL" class="mt-3">URL</label>
|
||||
<label for="post-url" class="mt-3">URL</label>
|
||||
<input autocomplete="off" class="form-control" id="post-url" name="url" type="url" placeholder="Optional if you have text." value="{{request.values.get('url','')}}" required data-nonce="{{g.nonce}}" data-oninput="checkForRequired();savetext();checkRepost();autoSuggestTitle()">
|
||||
<h5 id="system" class="mt-2 form-text font-weight-bold text-danger"></h5>
|
||||
</div>
|
||||
<div id="image-upload-block">
|
||||
<div><label class="mt-3">Attachment Upload</label></div>
|
||||
<div>
|
||||
<label for="file-upload" class="mt-3">Attachment Upload</label>
|
||||
</div>
|
||||
<div style="display:flex;align-items:center">
|
||||
<img loading="lazy" id="image-preview" style="max-width:50%">
|
||||
<label class="btn btn-secondary m-0 ml-2 mr-1" for="file-upload">
|
||||
|
@ -50,7 +52,7 @@
|
|||
<small class="form-text text-muted">You can upload images, videos, or audio.</small>
|
||||
</div>
|
||||
</div>
|
||||
<label class="mt-3">Text<i class="fas fa-info-circle text-gray-400 ml-1" data-bs-toggle="tooltip" data-bs-placement="top" title="Uses markdown. Limited to {{POST_BODY_LENGTH_LIMIT(v)}} characters."></i></label>
|
||||
<label for="post-text" class="mt-3">Text<i class="fas fa-info-circle text-gray-400 ml-1" data-bs-toggle="tooltip" data-bs-placement="top" title="Uses markdown. Limited to {{POST_BODY_LENGTH_LIMIT(v)}} characters."></i></label>
|
||||
<textarea form="submitform" id="post-text" class="file-ta form-control rounded" placeholder="Optional if you have a link or an image." rows="7" name="body" data-preview="preview" data-nonce="{{g.nonce}}" data-oninput="markdown(this);charLimit('post-text','character-count-submit-text-form');checkForRequired();savetext()" {% if v.longpost %}minlength="280"{% endif %} maxlength="{% if v.bird %}140{% else %}{{POST_BODY_LENGTH_LIMIT(v)}}{% endif %}" required></textarea>
|
||||
<div class="ghostdiv" style="display:none"></div>
|
||||
<div class="text-small font-weight-bold mt-1" id="character-count-submit-text-form" style="right: 1rem; bottom: 0.5rem; z-index: 3"></div>
|
||||
|
|
Loading…
Reference in New Issue