forked from mirrors/bookwyrm
Merge branch 'new-modals-bright-futures' into reading-modals
This commit is contained in:
commit
48d3b4bf58
2 changed files with 19 additions and 9 deletions
|
@ -3,9 +3,15 @@
|
||||||
|
|
||||||
{% with 0|uuid as report_uuid %}
|
{% with 0|uuid as report_uuid %}
|
||||||
|
|
||||||
{% trans "Report" as button_text %}
|
{% join "report" report_uuid as modal_id %}
|
||||||
{% include 'snippets/toggle/toggle_button.html' with class="is-danger is-light is-small is-fullwidth" text=button_text controls_text="report" controls_uid=report_uuid focus="modal_title_report" disabled=is_current %}
|
<button
|
||||||
|
class="button is-small is-danger is-light is-fullwidth"
|
||||||
{% include 'snippets/report_modal.html' with user=user reporter=request.user controls_text="report" controls_uid=report_uuid %}
|
type="button"
|
||||||
|
data-modal-open="{{ modal_id }}"
|
||||||
|
{% if is_current %}disabled{% endif %}
|
||||||
|
>
|
||||||
|
{% trans "Report" %}
|
||||||
|
</button>
|
||||||
|
{% include 'snippets/report_modal.html' with user=user reporter=request.user id=modal_id %}
|
||||||
|
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'components/modal.html' %}
|
{% extends 'components/new_modal.html' %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
|
@ -21,8 +21,12 @@
|
||||||
|
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<p>{% blocktrans with site_name=site.name %}This report will be sent to {{ site_name }}'s moderators for review.{% endblocktrans %}</p>
|
<p>{% blocktrans with site_name=site.name %}This report will be sent to {{ site_name }}'s moderators for review.{% endblocktrans %}</p>
|
||||||
<label class="label" for="id_{{ controls_uid }}_report_note">{% trans "More info about this report:" %}</label>
|
<div class="control">
|
||||||
<textarea class="textarea" name="note" id="id_{{ controls_uid }}_report_note"></textarea>
|
<label class="label" for="id_{{ controls_uid }}_report_note">
|
||||||
|
{% trans "More info about this report:" %}
|
||||||
|
</label>
|
||||||
|
<textarea class="textarea" name="note" id="id_{{ controls_uid }}_report_note"></textarea>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -31,9 +35,9 @@
|
||||||
{% block modal-footer %}
|
{% block modal-footer %}
|
||||||
|
|
||||||
<button class="button is-success" type="submit">{% trans "Submit" %}</button>
|
<button class="button is-success" type="submit">{% trans "Submit" %}</button>
|
||||||
{% trans "Cancel" as button_text %}
|
<button type="button" class="button" data-modal-close>{% trans "Cancel" %}</button>
|
||||||
{% include 'snippets/toggle/toggle_button.html' with text=button_text controls_text="report" controls_uid=report_uuid class="" %}
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block modal-form-close %}</form>{% endblock %}
|
{% block modal-form-close %}</form>{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue