mirror of
https://github.com/freedit-org/freedit.git
synced 2026-01-10 04:58:07 -05:00
* i18n * i18n * dedup feed items * fmt * update * typos * [wip] #208 * [wip] * i18n * i18n * i18n * typos * i18n * Update i18n/en.toml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * i18n * i18n * typos happy * typos happy --------- Co-authored-by: GitHub <github@github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
86 lines
3.3 KiB
HTML
86 lines
3.3 KiB
HTML
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
|
<article class="media box">
|
|
<div class="media-content">
|
|
<form id="solo" action="/post/edit/0" method="post">
|
|
<fieldset>
|
|
<div class="field">
|
|
<div class="control">
|
|
<div class="select is-primary">
|
|
<select name="iid">
|
|
{% for inn in joined %}
|
|
<option {% if inn.1 == selected_iid %} selected {% endif %} value="{{inn.1}}">{{inn.0}}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="control">
|
|
<input class="input is-large" type="text" name="title" value="{{draft.title}}" required maxlength="256" placeholder='{{ "title"|l10n(page_data.lang) }}' />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<div class="control">
|
|
<input class="input is-small" type="text" name="tags" value="{{draft.tags}}" required maxlength="128" placeholder="tags, separated by #" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<p class="control">
|
|
<textarea name="content" class="textarea" rows="15" required maxlength="65535" placeholder="Writing is thinking on paper. Write anything down...Now!">{{draft.content}}</textarea>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<input type="checkbox"
|
|
{% match draft.is_draft %}{% when Some(true) %}
|
|
checked
|
|
{% else %}{% endmatch %}
|
|
name="is_draft" value="true"/>
|
|
Save as draft
|
|
</div>
|
|
|
|
<div class="field">
|
|
<input type="checkbox" name="delete_draft" value="true"/>
|
|
Delete draft
|
|
</div>
|
|
|
|
<nav class="level is-mobile">
|
|
<div class="level-left">
|
|
<div class="level-item">
|
|
<a href="/upload" class="button is-success is-rounded" target="_blank">{{ "upload"|l10n(page_data.lang) }}</a>
|
|
</div>
|
|
</div>
|
|
<div class="level-right">
|
|
<div class="level-item">
|
|
<div class="field is-grouped">
|
|
<div class="control">
|
|
<button type="submit" form="solo" class="button is-link is-rounded">{{ "submit"|l10n(page_data.lang) }}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</article>
|
|
<div class="divider"></div>
|
|
{% endblock %}
|
|
|
|
{% block aside %}
|
|
|
|
<div class="box">
|
|
<div class="content">
|
|
<div class="title">Drafts</div>
|
|
{% for draft_title in draft_titles %}
|
|
<p><a href="/post/edit/0?from_draft={{draft_title}}">{{draft_title}}</a></p>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %} |