Page Menu
Home
WMGMC Issues
搜索
Configure Global Search
登录
Files
F15938
filter.twig
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
订阅
标记用于日后
授予令牌
Size
2 KB
Referenced Files
None
订阅者
None
filter.twig
View Options
{%
extends
'edit.twig'
%}
{%
block
inner_content
%}
{%
if
result
%}
<h4>Filter</h4>
<form class="form-horizontal" data-id="editfilter" role="form" method="post">
<input type="hidden" value="0" name="active">
<div class="row mb-2">
<label class="control-label col-sm-2" for="script_desc">
{{
lang.edit.sieve_desc
}}
</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="script_desc" id="script_desc" value="
{{
result.script_desc
}}
" required maxlength="255">
</div>
</div>
<div class="row mb-2">
<label class="control-label col-sm-2" for="filter_type">
{{
lang.edit.sieve_type
}}
</label>
<div class="col-sm-10">
<select id="addFilterType" name="filter_type" id="filter_type" required>
<option value="prefilter"
{%
if
result.filter_type
==
'prefilter'
%}
selected
{%
endif
%}
>Prefilter</option>
<option value="postfilter"
{%
if
result.filter_type
==
'postfilter'
%}
selected
{%
endif
%}
>Postfilter</option>
</select>
</div>
</div>
<div class="row mb-4">
<label class="control-label col-sm-2" for="script_data">Script:</label>
<div class="col-sm-10">
<textarea spellcheck="false" autocorrect="off" autocapitalize="none" class="form-control textarea-code" rows="20" id="script_data" name="script_data" required>
{{
result.script_data
|
raw
}}
</textarea>
</div>
</div>
<div class="row mb-2">
<div class="offset-sm-2 col-sm-10">
<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>
</div>
</div>
</div>
<div class="row mb-2">
<div class="offset-sm-2 col-sm-10">
<button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="edit_selected" data-id="editfilter" data-item="
{{
result.id
}}
" data-api-url='edit/filter' data-api-attr='{}' href="#">
{{
lang.edit.validate_save
}}
</button>
</div>
</div>
</form>
{%
else
%}
{{
parent
()
}}
{%
endif
%}
{%
endblock
%}
File Metadata
详情
附加的
Mime Type
text/plain
Expires
9月 9 Tue, 5:54 AM (10 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5416
默认替代文本
filter.twig (2 KB)
Attached To
Mode
rMAILCOW mailcow-tracking
附加的
Detach File
Event Timeline
Log In to Comment