
10 changed files with 173 additions and 21 deletions
@ -0,0 +1,37 @@ |
|||||||
|
{% extends "ordr3:templates/layout_full.jinja2" %} |
||||||
|
|
||||||
|
{% block subtitle %} Edit Vendor Autocorrect for "{{ context.model.name }}" {% endblock subtitle %} |
||||||
|
|
||||||
|
|
||||||
|
{% block sidebar %}{% endblock sidebar %} |
||||||
|
|
||||||
|
|
||||||
|
{% block content %} |
||||||
|
|
||||||
|
<div class="col-5"> |
||||||
|
<h4 class="mb-2 text-muted mb-4 text-truncate">Edit Autorcorrect for <span class="text-dark">{{ context.model.name }}</span></h4> |
||||||
|
<form action="{{ context|resource_url() }}" method="POST"> |
||||||
|
<div class="form-group"> |
||||||
|
<label for="vendor">Autocorrect result</label> |
||||||
|
<input type="text" class="form-control {% if form_error %}is-invalid{% endif %}" id="vendor" name="vendor" value="{{ context.model.name }}" required="required"> |
||||||
|
<div class="invalid-feedback">Must not be empty</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label for="terms">Terms to be corrected</label> |
||||||
|
<textarea class="form-control {% if form_error %}is-invalid{% endif %}" id="terms" name="terms" rows="{{ context.model.terms|length + 2 }}" required="required">{{ context.model.terms|join("\n") }}</textarea> |
||||||
|
<small id="emailHelp" class="form-text text-muted">Add one term per line</small> |
||||||
|
<div class="invalid-feedback">Must not be empty</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<p class="mt-4"> |
||||||
|
<input type="hidden" name="csrf_token" value="{{csrf_token}}"> |
||||||
|
<button class="btn btn-primary" type="submit" name="change">Change Vendor Autoccorrect </button> |
||||||
|
<button class="btn btn-outline-secondary" type="submit" name="cancel">Cancel</button> |
||||||
|
</p> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
<div class="col-5"></div> |
||||||
|
|
||||||
|
{% endblock content %} |
Loading…
Reference in new issue