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/alias.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.alias }}</h4>
6
<br>
7
<form class="form-horizontal" data-id="editalias" role="form" method="post">
8
<input type="hidden" value="0" name="active">
9
<input type="hidden" value="0" name="internal">
10
<input type="hidden" value="0" name="sender_allowed">
11
{% if not skip_sogo %}
12
<input type="hidden" value="0" name="sogo_visible">
13
{% endif %}
14
<div class="row mb-2">
15
<label class="control-label col-sm-2" for="address">{{ lang.edit.alias }}</label>
16
<div class="col-sm-10">
17
<input class="form-control" type="text" name="address" value="{{ result.address }}" />
18
</div>
19
</div>
20
<div class="row mb-4">
21
<label class="control-label col-sm-2" for="goto">{{ lang.edit.target_address|raw }}</label>
22
<div class="col-sm-10">
23
<textarea id="textarea_alias_goto" class="form-control mb-4" autocapitalize="none" autocorrect="off" rows="10" id="goto" name="goto" required>{{ goto|replace({',': ', '}) }}</textarea>
24
<div class="form-check">
25
<label><input class="form-check-input goto_checkbox" type="checkbox" value="1" name="goto_null"{% if result.goto == 'null@localhost' %} checked{% endif %}> {{ lang.add.goto_null }}</label>
26
</div>
27
<div class="form-check">
28
<label><input class="form-check-input goto_checkbox" type="checkbox" value="1" name="goto_spam"{% if result.goto == 'spam@localhost' %} checked{% endif %}> {{ lang.add.goto_spam|raw }}</label>
29
</div>
30
<div class="form-check">
31
<label><input class="form-check-input goto_checkbox" type="checkbox" value="1" name="goto_ham"{% if result.goto == 'ham@localhost' %} checked{% endif %}> {{ lang.add.goto_ham|raw }}</label>
32
</div>
33
{% if not skip_sogo %}
34
<hr>
35
<div class="form-check">
36
<label><input type="checkbox" class="form-check-input" value="1" name="sogo_visible"{% if result.sogo_visible == '1' %} checked{% endif %}> {{ lang.edit.sogo_visible }}</label>
37
</div>
38
<small class="text-muted d-block mb-2">{{ lang.edit.sogo_visible_info }}</small>
39
{% endif %}
40
<div class="form-check">
41
<label><input type="checkbox" class="form-check-input" value="1" name="internal"{% if result.internal == '1' %} checked{% endif %}> {{ lang.edit.internal }}</label>
42
</div>
43
<small class="text-muted d-block mb-2">{{ lang.edit.internal_info }}</small>
44
<div class="form-check">
45
<label><input type="checkbox" class="form-check-input" value="1" name="sender_allowed"{% if result.sender_allowed == '1' %} checked{% endif %}> {{ lang.edit.sender_allowed }}</label>
46
</div>
47
<small class="text-muted d-block">{{ lang.edit.sender_allowed_info }}</small>
48
</div>
49
</div>
50
<hr>
51
<div class="row mb-2">
52
<label class="control-label col-sm-2" for="private_">{{ lang.edit.private_comment }}</label>
53
<div class="col-sm-10">
54
<input maxlength="160" class="form-control" type="text" name="private_comment" value="{{ result.private_comment }}" />
55
</div>
56
</div>
57
<div class="row mb-4">
58
<label class="control-label col-sm-2" for="public_comment">{{ lang.edit.public_comment }}</label>
59
<div class="col-sm-10">
60
<input maxlength="160" class="form-control" type="text" name="public_comment" value="{{ result.public_comment }}" />
61
</div>
62
</div>
63
<hr>
64
<div class="row mb-2">
65
<div class="offset-sm-2 col-sm-10">
66
<div class="form-check">
67
<label><input type="checkbox" class="form-check-input" value="1" name="active"{% if result.active == '1' %} checked{% endif %}> {{ lang.edit.active }}</label>
68
</div>
69
</div>
70
</div>
71
<div class="row">
72
<div class="offset-sm-2 col-sm-10">
73
<button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="edit_selected" data-id="editalias" data-item="{{ alias }}" data-api-url='edit/alias' data-api-attr='{}' href="#">{{ lang.edit.save }}</button>
74
</div>
75
</div>
76
</form>
77
{% else %}
78
{{ parent() }}
79
{% endif %}
80
{% endblock %}