summaryrefslogtreecommitdiff
path: root/html/options.html
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-07-21 17:42:21 +0200
committerWojtek Kosior <koszko@koszko.org>2021-07-21 17:42:21 +0200
commit5c68551800e477db41ae6fe3a318b2ff2d7a9cb1 (patch)
tree9b0cf5b8c35b00cdbb4fdd25579c68c1b91cc6b4 /html/options.html
parentfb9c808cdaa46833c0cbd7f6c918d6b61aec1aca (diff)
downloadbrowser-extension-5c68551800e477db41ae6fe3a318b2ff2d7a9cb1.tar.gz
browser-extension-5c68551800e477db41ae6fe3a318b2ff2d7a9cb1.zip
store repository URLs in settings
Diffstat (limited to 'html/options.html')
-rw-r--r--html/options.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/html/options.html b/html/options.html
index bfb9e52..a10b919 100644
--- a/html/options.html
+++ b/html/options.html
@@ -33,12 +33,14 @@
}
/* tabbed view */
+ #show_repos:not(:checked) ~ #repos,
#show_pages:not(:checked) ~ #pages,
#show_bags:not(:checked) ~ #bags,
#show_scripts:not(:checked) ~ #scripts {
display: none;
}
+ #show_repos:checked ~ #repos_lbl,
#show_pages:checked ~ #pages_lbl,
#show_bags:checked ~ #bags_lbl,
#show_scripts:checked ~ #scripts_lbl {
@@ -124,9 +126,12 @@
</div>
<!-- Mind the show_*s ids below - their format is assumed in js code -->
+ <input type="radio" name="tabs" id="show_repos"></input>
<input type="radio" name="tabs" id="show_pages" checked></input>
<input type="radio" name="tabs" id="show_bags"></input>
<input type="radio" name="tabs" id="show_scripts"></input>
+ <label for="show_repos" id="repos_lbl"
+ class="tab_head"> Repos </label>
<label for="show_pages" id="pages_lbl"
class="tab_head"> Pages </label>
<label for="show_bags" id="bags_lbl"
@@ -134,6 +139,19 @@
<label for="show_scripts" id="scripts_lbl"
class="tab_head"> Scripts </label>
+ <div id="repos">
+ <ul id="repos_ul">
+ <li id="work_repo_li" class="hide">
+ <label for="repo_url_field">URL: </label>
+ <input id="repo_url_field"></input>
+ <br/>
+ <button id="save_repo_but" type="button"> Save </button>
+ <button id="discard_repo_but" type="button"> Cancel </button>
+ </li>
+ </ul>
+ <button id="add_repo_but" type="button"> Add repository </button>
+ </div>
+
<div id="pages">
<ul id="pages_ul">
<li id="work_page_li" class="hide">