IP address form

This commit is contained in:
Joachim 2021-11-29 23:27:04 +01:00
parent a154597de1
commit 0a621550b8

View file

@ -20,16 +20,16 @@
</div> </div>
<div class="field"> <div class="field">
<input type="text" name="address" maxlength="255" class="input" required="" id="id_address" placeholder="190.0.2.0/24"> <input type="text" name="address" maxlength="255" class="input" required="" id="id_address" placeholder="190.0.2.0/24" aria-describedby="desc_address">
</div> </div>
{% for error in form.address.errors %} {% include 'snippets/form_errors.html' with errors_list=form.address.errors id="desc_address" %}
<p class="help is-danger">{{ error | escape }}</p>
{% endfor %}
<div class="field"> <div class="field">
<div class="control"> <div class="control">
<button type="submit" class="button is-primary">{% trans "Add" %}</button> <button type="submit" class="button is-primary">
{% trans "Add" %}
</button>
</div> </div>
</div> </div>
</form> </form>