public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/templates/edit/transport.twig
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
{% extends 'edit.twig' %}
3
{% block inner_content %}
4
{% if result %}
5
<h4>{{ lang.edit.resource }}</h4>
6
<form class="form-horizontal" role="form" method="post" data-id="edittransport">
7
<input type="hidden" value="0" name="active">
8
<input type="hidden" value="0" name="is_mx_based">
9
<div class="row mb-2">
10
<label class="control-label col-sm-2" for="destination">{{ lang.add.destination }}</label>
11
<div class="col-sm-10">
12
<input type="text" class="form-control" name="destination" value="{{ result.destination }}" required>
13
</div>
14
</div>
15
<div class="row mb-4">
16
<label class="control-label col-sm-2" for="nexthop">{{ lang.edit.nexthop }}</label>
17
<div class="col-sm-10">
18
<input type="text" class="form-control" name="nexthop" placeholder='[0.0.0.0], [0.0.0.0]:25, host:25, host, [host]:25' value="{{ result.nexthop }}" required>
19
</div>
20
</div>
21
<div class="row mb-2">
22
<label class="control-label col-sm-2" for="username">{{ lang.add.username }}</label>
23
<div class="col-sm-10">
24
<input type="text" class="form-control" name="username" value="{{ result.username }}">
25
</div>
26
</div>
27
<div class="row mb-4">
28
<label class="control-label col-sm-2" for="password">{{ lang.add.password }}</label>
29
<div class="col-sm-10">
30
<input type="text" data-hibp="true" class="form-control" name="password" value="{{ result.password }}">
31
</div>
32
</div>
33
<div class="row mb-2">
34
<div class="offset-sm-2 col-sm-10">
35
<div class="form-check">
36
<label><input type="checkbox" class="form-check-input" value="1" name="is_mx_based"{% if result.is_mx_based == '1' %} checked{% endif %}> {{ lang.edit.lookup_mx|raw }}</label>
37
</div>
38
</div>
39
</div>
40
<div class="row mb-2">
41
<div class="offset-sm-2 col-sm-10">
42
<div class="form-check">
43
<label><input type="checkbox" class="form-check-input" value="1" name="active"{% if result.active == '1' %} checked{% endif %}> {{ lang.edit.active }}</label>
44
</div>
45
</div>
46
</div>
47
<div class="row mb-2">
48
<div class="offset-sm-2 col-sm-10">
49
<button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="edit_selected" data-id="edittransport" data-item="{{ result.id }}" data-api-url='edit/transport' data-api-attr='{}' href="#">{{ lang.edit.save }}</button>
50
</div>
51
</div>
52
</form>
53
{% else %}
54
{{ parent() }}
55
{% endif %}
56
{% endblock %}