mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-26 10:00:33 +00:00
Edit instance form
This commit is contained in:
parent
0a621550b8
commit
5d0c6bdde2
1 changed files with 27 additions and 18 deletions
|
@ -27,11 +27,12 @@
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label" for="id_server_name">{% trans "Instance:" %}</label>
|
<label class="label" for="id_server_name">
|
||||||
<input type="text" name="server_name" maxlength="255" class="input" required id="id_server_name" value="{{ form.server_name.value|default:'' }}" placeholder="domain.com">
|
{% trans "Instance:" %}
|
||||||
{% for error in form.server_name.errors %}
|
</label>
|
||||||
<p class="help is-danger">{{ error | escape }}</p>
|
<input type="text" name="server_name" maxlength="255" class="input" required id="id_server_name" value="{{ form.server_name.value|default:'' }}" placeholder="domain.com" aria-describedby="desc_server_name">
|
||||||
{% endfor %}
|
|
||||||
|
{% include 'snippets/form_errors.html' with errors_list=form.server_name.errors id="desc_server_name" %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
|
@ -49,29 +50,37 @@
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label" for="id_application_type">{% trans "Software:" %}</label>
|
<label class="label" for="id_application_type">
|
||||||
<input type="text" name="application_type" maxlength="255" class="input" id="id_application_type" value="{{ form.application_type.value|default:'' }}">
|
{% trans "Software:" %}
|
||||||
{% for error in form.application_type.errors %}
|
</label>
|
||||||
<p class="help is-danger">{{ error | escape }}</p>
|
<input type="text" name="application_type" maxlength="255" class="input" id="id_application_type" value="{{ form.application_type.value|default:'' }}" aria-describedby="desc_application_type">
|
||||||
{% endfor %}
|
|
||||||
|
{% include 'snippets/form_errors.html' with errors_list=form.application_type.errors id="desc_application_type" %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label" for="id_application_version">{% trans "Version:" %}</label>
|
<label class="label" for="id_application_version">
|
||||||
<input type="text" name="application_version" maxlength="255" class="input" id="id_application_version" value="{{ form.application_version.value|default:'' }}">
|
{% trans "Version:" %}
|
||||||
{% for error in form.application_version.errors %}
|
</label>
|
||||||
<p class="help is-danger">{{ error | escape }}</p>
|
<input type="text" name="application_version" maxlength="255" class="input" id="id_application_version" value="{{ form.application_version.value|default:'' }}" aria-describedby="desc_application_version">
|
||||||
{% endfor %}
|
|
||||||
|
{% include 'snippets/form_errors.html' with errors_list=form.application_version.errors id="desc_application_version" %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label" for="id_notes">{% trans "Notes:" %}</label>
|
<label class="label" for="id_notes">
|
||||||
<textarea name="notes" cols="40" rows="5" class="textarea" id="id_notes">{{ form.notes.value|default:'' }}</textarea>
|
{% trans "Notes:" %}
|
||||||
|
</label>
|
||||||
|
<textarea name="notes" cols="40" rows="5" class="textarea" id="id_notes">
|
||||||
|
{{ form.notes.value|default:'' }}
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" class="button is-primary">{% trans "Save" %}</button>
|
<button type="submit" class="button is-primary">
|
||||||
|
{% trans "Save" %}
|
||||||
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue