moviewyrm/bookwyrm/templates/settings/link_domains/edit_domain_modal.html

28 lines
917 B
HTML
Raw Normal View History

2022-01-10 18:38:05 +00:00
{% extends 'components/modal.html' %}
{% load i18n %}
{% block modal-title %}
{% blocktrans with url=domain.domain %}Set display name for {{ url }}{% endblocktrans %}
{% endblock %}
{% block modal-form-open %}
2022-01-10 18:48:27 +00:00
<form name="edit-domain-{{ domain.id }}" method="post" action="{% url 'settings-link-domain' status=status domain_id=domain.id %}">
2022-01-10 18:38:05 +00:00
{% endblock %}
{% block modal-body %}
{% csrf_token %}
<label class="label" for="id_name">{% trans "Name:" %}</label>
<div class="control">
2022-01-10 20:21:36 +00:00
<input type="text" id="id_name" class="input" name="name" value="{{ domain.name }}" required>
2022-01-10 18:38:05 +00:00
</div>
{% endblock %}
{% block modal-footer %}
2022-03-10 18:49:33 +00:00
<div class="buttons is-right is-flex-grow-1">
<button type="button" class="button" data-modal-close>{% trans "Cancel" %}</button>
<button type="submit" class="button is-primary">{% trans "Set" %}</button>
</div>
2022-01-10 18:38:05 +00:00
{% endblock %}
{% block modal-form-close %}</form>{% endblock %}