diff options
author | moisseev <moiseev@mezonplus.ru> | 2020-06-07 17:24:44 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2020-06-07 17:24:44 +0300 |
commit | 2439a42bc144b91a6fda280f38ad5eaee73a46e8 (patch) | |
tree | 8481a3f25d1e6286f6125b65600a5854126d86be /interface/index.html | |
parent | 1a5d3a27d7fffd575816d6efa6965c5702bf4171 (diff) | |
download | rspamd-2439a42bc144b91a6fda280f38ad5eaee73a46e8.tar.gz rspamd-2439a42bc144b91a6fda280f38ad5eaee73a46e8.zip |
[WebUI] Add "Test selectors" tab
Diffstat (limited to 'interface/index.html')
-rw-r--r-- | interface/index.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/interface/index.html b/interface/index.html index 8e703649a..12f7ab2ba 100644 --- a/interface/index.html +++ b/interface/index.html @@ -39,6 +39,7 @@ <li role="presentation"><a id="configuration_nav" aria-controls="configuration" role="tab" href="#configuration" data-toggle="tab">Configuration</a></li> <li role="presentation"><a id="symbols_nav" aria-controls="symbols" role="tab" href="#symbols" data-toggle="tab">Symbols</a></li> <li role="presentation"><a id="scan_nav" aria-controls="scan" role="tab" href="#scan" data-toggle="tab">Scan<span class="learn" style="display: none;">/Learn</span></a></li> + <li role="presentation"><a id="selectors_nav" aria-controls="selectors" role="tab" href="#selectors" data-toggle="tab" style="display: none;">Test selectors</a></li> <li role="presentation"><a id="history_nav" aria-controls="history" role="tab" href="#history" data-toggle="tab">History</a></li> </ul> <form class="navbar-form navbar-right" style="display: none;"> @@ -315,6 +316,50 @@ </div> </div> + <div class="tab-pane" id="selectors"> + <div class="widget-box"> + <div class="widget-title"> + <span class="icon"><i class="glyphicon glyphicon-envelope"></i></span> + <h5>Test Rspamd selectors</h5> + </div> + <div class="widget-content"> + <h5>Message source:</h5> + <div class="row"> + <form class="col-md-12"> + <div class="form-group"> + <textarea class="form-control" id="selectorsMsgArea" rows="9" placeholder="Paste raw message source"></textarea> + </div> + <div class="form-group"> + <button class="btn btn-default pull-right" id="selectorsMsgClean"><i class="glyphicon glyphicon-trash"></i> Clean form</button> + </div> + </form> + </div> + + <h5>Selector(s):</h5> + <div class="row"> + <form class="col-md-12"> + <div class="form-group has-feedback"> + <textarea class="form-control" id="selectorsSelArea" rows="1" placeholder="extractor.transform(arg);extractor.transform(arg);..."></textarea> + <span id="selector-feedback-icon" class="glyphicon form-control-feedback"></span> + </div> + <div class="form-group"> + <button type="submit" class="btn btn-default btn-primary" id="selectorsChkMsgBtn"><i class="glyphicon glyphicon-search"></i> Check message</button> + <button class="btn btn-default pull-right" id="selectorsClean"><i class="glyphicon glyphicon-trash"></i> Clean form</button> + </div> + </form> + </div> + <h5>Result:</h5> + <div class="row"> + <form class="col-md-12"> + <div class="form-group"> + <textarea class="form-control" id="selectorsResArea" rows="5" readonly></textarea> + </div> + </form> + </div> + </div> + </div> + </div> + <div class="tab-pane" id="history"> <div class="widget-box"> |