2021-09-22 20:47:10 +02:00
|
|
|
{% extends 'edit.twig' %}
|
|
|
|
|
|
|
|
{% block inner_content %}
|
|
|
|
{% if result %}
|
|
|
|
<h4>{{ lang.edit.resource }}</h4>
|
|
|
|
<form class="form-horizontal" role="form" method="post" data-id="editrelayhost">
|
|
|
|
<input type="hidden" value="0" name="active">
|
2022-06-28 07:21:26 +02:00
|
|
|
<div class="row mb-2">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label class="control-label col-sm-2" for="hostname">{{ lang.add.hostname }}</label>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="text" class="form-control" name="hostname" value="{{ result.hostname }}" required>
|
2022-03-31 12:57:33 +02:00
|
|
|
<p class="text-muted">{{ lang.add.relayhost_wrapped_tls_info|raw }}</p>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-28 07:21:26 +02:00
|
|
|
<div class="row mb-2">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label class="control-label col-sm-2" for="username">{{ lang.add.username }}</label>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="text" class="form-control" name="username" value="{{ result.username }}">
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-28 07:21:26 +02:00
|
|
|
<div class="row mb-4">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label class="control-label col-sm-2" for="password">{{ lang.add.password }}</label>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="text" data-hibp="true" class="form-control" name="password" value="{{ result.password }}">
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-28 07:21:26 +02:00
|
|
|
<div class="row mb-2">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-2 col-sm-10">
|
2023-09-02 10:17:00 +02:00
|
|
|
<div class="form-check">
|
|
|
|
<label><input type="checkbox" class="form-check-input" value="1" name="active"{% if result.active == '1' %} checked{% endif %}> {{ lang.edit.active }}</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-28 07:21:26 +02:00
|
|
|
<div class="row mb-2">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-2 col-sm-10">
|
2022-03-31 15:24:10 +02:00
|
|
|
<button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="edit_selected" data-id="editrelayhost" data-item="{{ result.id }}" data-api-url='edit/relayhost' data-api-attr='{}' href="#">{{ lang.edit.save }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% else %}
|
|
|
|
{{ parent() }}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|