clone of github.com/decent-newsroom/newsroom
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
1.2 KiB

<form data-controller="nostr--nostr-comment"
data-nostr--nostr-comment-publish-url-value="{{ publish_url }}"
data-nostr--nostr-comment-csrf-token-value="{{ csrf_token }}"
data-nostr--nostr-comment-root="{{ root_context|json_encode|e('html_attr') }}"
data-nostr--nostr-comment-parent="{{ parent_context|json_encode|e('html_attr') }}"
data-action="submit->nostr--nostr-comment#publish"
class="nip22-comment-form">
<div data-nostr--nostr-comment-target="status"></div>
<div class="mb-2">
<label for="comment_content_{{ form_id }}" class="form-label hidden">Comment</label>
<textarea id="comment_content_{{ form_id }}" name="comment[content]" class="form-control" rows="3" required placeholder="Write your comment"></textarea>
</div>
<input type="hidden" name="comment[root]" value='{{ root_context|json_encode|e('html_attr') }}'>
<input type="hidden" name="comment[parent]" value='{{ parent_context|json_encode|e('html_attr') }}'>
<div class="actions">
<button type="submit" data-nostr--nostr-comment-target="publishButton" class="btn btn-primary mt-2">Publish Comment</button>
</div>
</form>