diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-01-11 15:43:40 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-01-11 15:43:40 +0100 |
commit | dd8de100acda322f2124c58163ecde6f1b37d61d (patch) | |
tree | cbb73c92f04a83e259ea9b53ca653c6891970024 /html/payload_create.html | |
parent | 19304cd1ae4e4ba4f6dcf4f1db14de1e4e70c250 (diff) | |
download | browser-extension-dd8de100acda322f2124c58163ecde6f1b37d61d.tar.gz browser-extension-dd8de100acda322f2124c58163ecde6f1b37d61d.zip |
add missing payload_create test and styling
Diffstat (limited to 'html/payload_create.html')
-rw-r--r-- | html/payload_create.html | 59 |
1 files changed, 42 insertions, 17 deletions
diff --git a/html/payload_create.html b/html/payload_create.html index 0f6927f..062e41c 100644 --- a/html/payload_create.html +++ b/html/payload_create.html @@ -43,29 +43,54 @@ .payload_create_main_view { margin: 0.8em; } - .payload_create_buts { + .payload_create_form { + margin: 0 0.6em; + } + .payload_create_form>* { + margin: 0.3em 0; + } + .payload_create_form>textarea { + resize: vertical; + height: 5em; + } + .payload_create_form>textarea.payload_create_script { + height: 18em; + font-family: monospace; + } + .payload_create_buts, .payload_create_heading { text-align: center; + margin: 0.5em 0; } </style> <template> <div id="payload_create" data-template="main_div" class="payload_create_main_view"> - <div data-template="form_container" class="grid_1"> - <h3>create_payload</h3> - <label> - identifier* (may only contain digits 0-9, lowercase letters a-z and hyphens '-'; will have 'local-' prepended): - </label> - <input data-template="identifier"> - <label>long name (defaults to the same as identifier):</label> - <input data-template="long_name"> - <label>description:</label> - <textarea data-template="description"></textarea> - <label>URL patterns* (put each on its own line):</label> - <textarea data-template="patterns">https://example.com/***</textarea> - <label>script to inject*:</label> - <textarea data-template="script">console.log("Hello, World!");</textarea> - <div class="payload_create_buts"> - <button data-template="create_but">Create</button> + <div data-template="form_container"> + <div class="grid_1 payload_create_form"> + <h3 class="payload_create_heading">Create payload</h3> + <span> + <label>identifier*</label> + (may only contain digits 0-9, lowercase letters a-z and hyphens '-'; + will have 'local-' prepended): + </span> + <input data-template="identifier"> + <span> + <label>long name</label> (defaults to the same as identifier): + </span> + <input data-template="long_name"> + <span><label>description</label>:</span> + <textarea data-template="description"></textarea> + <span> + <label><a data-template="patterns_link">URL patterns</a>*</label> + (put each on its own line): + </span> + <textarea data-template="patterns">https://example.com/***</textarea> + <span><label>script to inject*</label>:</span> + <textarea data-template="script" class="payload_create_script" + >console.log("Hello, World!");</textarea> + <div class="payload_create_buts"> + <button data-template="create_but">Create</button> + </div> </div> </div> <div data-template="dialog_container" class="hide"> |