blob: 31871707fceac98a8efc517174eed247bab61958 [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001{% extends 'edit.twig' %}
2
3{% block inner_content %}
4{% if result %}
5<h4>{{ lang.edit.resource }}</h4>
6<form class="form-horizontal" role="form" method="post" data-id="editrelayhost">
7 <input type="hidden" value="0" name="active">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01008 <div class="row mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01009 <label class="control-label col-sm-2" for="hostname">{{ lang.add.hostname }}</label>
10 <div class="col-sm-10">
11 <input type="text" class="form-control" name="hostname" value="{{ result.hostname }}" required>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010012 <p class="text-muted">{{ lang.add.relayhost_wrapped_tls_info|raw }}</p>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010013 </div>
14 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010015 <div class="row mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010016 <label class="control-label col-sm-2" for="username">{{ lang.add.username }}</label>
17 <div class="col-sm-10">
18 <input type="text" class="form-control" name="username" value="{{ result.username }}">
19 </div>
20 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010021 <div class="row mb-4">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010022 <label class="control-label col-sm-2" for="password">{{ lang.add.password }}</label>
23 <div class="col-sm-10">
24 <input type="text" data-hibp="true" class="form-control" name="password" value="{{ result.password }}">
25 </div>
26 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010027 <div class="row mb-2">
28 <div class="offset-sm-2 col-sm-10">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010029 <div class="form-check">
30 <label><input type="checkbox" class="form-check-input" value="1" name="active"{% if result.active == '1' %} checked{% endif %}> {{ lang.edit.active }}</label>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010031 </div>
32 </div>
33 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010034 <div class="row mb-2">
35 <div class="offset-sm-2 col-sm-10">
36 <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>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010037 </div>
38 </div>
39</form>
40{% else %}
41 {{ parent() }}
42{% endif %}
43{% endblock %}