25 lines
1.7 KiB
HTML
25 lines
1.7 KiB
HTML
<form class="full-width" method="POST" action="{{submit_url}}" data-listen="submit" data-s="bookmarkMenuSubmit" data-r="bookmarkMenuSubmit">
|
|
<input type="hidden" name="concept_id" value="{{concept_id}}">
|
|
<div class="inline-group bookmark-menu-item">
|
|
<input data-s="bookmarkMenuResetSavedButton" autocomplete="off" type="radio" name="target_collection" id="collection-none" {{'checked' if in_collection==none else ''}} value="-1">
|
|
<label class="bookmark-menu-label" for="collection-none">
|
|
No collection
|
|
<small>Choose this option to remove this {{'thread' if is_thread else 'post'}} from your bookmarks.</small>
|
|
</label>
|
|
</div>
|
|
{%- for collection in collections -%}
|
|
<div class="inline-group bookmark-menu-item">
|
|
<input data-s="bookmarkMenuResetSavedButton" autocomplete="off" type="radio" name="target_collection" id="collection-{{collection.id}}" {{'checked' if in_collection==collection.id else ''}} value="{{collection.id}}">
|
|
{%- set tc = collection.get_threads_count() -%}
|
|
{%- set pc = collection.get_posts_count() -%}
|
|
<label class="bookmark-menu-label" for="collection-{{collection.id}}">
|
|
{{collection.name}}
|
|
<small>{{tc}} {{'thread' | pluralize(num=tc)}}, {{pc}} {{'post' | pluralize(num=pc)}}</small>
|
|
</label>
|
|
</div>
|
|
{%- endfor -%}
|
|
<input type="text" placeholder="Optional memo" maxlength=100 name="note" autocomplete="off" value="{{note}}">
|
|
<input type="submit" value="{{'Saved!' if request.args.saved else 'Save'}}" data-r="bookmarkMenuShowSavedButton bookmarkMenuResetSavedButton">
|
|
<span class="errors hidden" data-r="bookmarkMenuShowError bookmarkMenuHideError">Something went wrong. Try again later.</span>
|
|
</form>
|