diff options
author | moisseev <moiseev@mezonplus.ru> | 2022-05-28 18:02:58 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2022-05-28 18:02:58 +0300 |
commit | 991e9de2edd9f800a4b11bdeaa5f6cd416178195 (patch) | |
tree | 16cf06775f1b088a442013bfe732025840714df2 /interface/index.html | |
parent | 64cc33bb9169369241c78b999e3d1a4ce0a2cb02 (diff) | |
download | rspamd-991e9de2edd9f800a4b11bdeaa5f6cd416178195.tar.gz rspamd-991e9de2edd9f800a4b11bdeaa5f6cd416178195.zip |
[WebUI] Add option to choose map editor
Issue: #4172
and restrict to text area if an opened map larger then 5 KiB
as the advanced editor is unresponsive
when editing a large amount of text.
Diffstat (limited to 'interface/index.html')
-rw-r--r-- | interface/index.html | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/interface/index.html b/interface/index.html index c7f57cc1a..5b1c1f0d0 100644 --- a/interface/index.html +++ b/interface/index.html @@ -325,9 +325,22 @@ </div> </div> <div class="card bg-light shadow my-3"> - <div class="card-header text-secondary py-2"> + <div class="card-header text-secondary py-2 d-flex"> <span class="icon mr-3"><i class="fas fa-list"></i></span> <span class="h6 font-weight-bolder my-2">Lists</span> + <div class="form-inline card-header-form input-group-sm align-self-center ml-auto mr-1"> + Editor: + <div id="btnGroupEditor" class="btn-group btn-group-toggle btn-group-xs ml-1" data-toggle="buttons"> + <label class="btn btn-outline-secondary form-check-label"> + <input type="radio" class="form-check-input" name="editorMode" autocomplete="off" value="basic"> + Basic + </label> + <label class="btn btn-outline-secondary form-check-label active"> + <input type="radio" class="form-check-input" name="editorMode" autocomplete="off" value="advanced" checked> + Advanced + </label> + </div> + </div> </div> <div class="card-body p-0"> <table class="table table-sm table-hover mb-0" id="listMaps"> |