diff options
Diffstat (limited to 'web/index.html')
-rw-r--r-- | web/index.html | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/web/index.html b/web/index.html index d8f2a60..7b07f09 100644 --- a/web/index.html +++ b/web/index.html @@ -143,14 +143,15 @@ <div class="span3 col-lg-6"> <textarea id="template-input" class="form-control" cols="80" rows="25"></textarea> <div class="form-inline"> - <div class="form-group"> - <button onclick="nmsTemplate.fromFile('HOWTO.txt')" class="btn btn-info">Load HOWTO.txt</button> - <button onclick="nmsTemplate.fromFile('switches.txt')" class="btn btn-info">Load switches.txt</button> - <button onclick="nmsTemplate.fromFile('switch.txt')" class="btn btn-info">Load switch.txt</button> - </div> + https://gondul.tg.lol/api/templates/ + <div class="form-group"> + <select onchange="nmsTemplate.fromFile(this.value)" class="form-control" id="nmsTemplate-select"> + <option value="">Select template</option> + </select> + </div> <div class="form-group"> <label for="template-query-params">Query parameters</label> - <input type="text" class="form-control" id="template-query-params" value="?switch=e13-1&foo=bar" /> + <input type="text" class="form-control" id="template-query-params" value="?a=r1.ring:ge-1/0/2.0:mgmt+irb.666" /> </div> <div class="form-group"> <button onclick="nmsTemplate.test()" class="btn btn-primary">Test</button> @@ -158,7 +159,7 @@ </div> </div> <div class="span3 col-lg-6"> - <textarea id="template-output" class="form-control" disabled cols="80" rows="25"></textarea> + <textarea id="template-output" class="form-control" readonly cols="80" rows="25"></textarea> </div> </div> </div> |