Private GIT

Skip to content
Snippets Groups Projects
Commit 699a0d34 authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Hide the API key config when the api is disabled

parent da29cc89
No related merge requests found
...@@ -130,18 +130,18 @@ ...@@ -130,18 +130,18 @@
<div class="component-group-desc"> <div class="component-group-desc">
<h3>API</h3> <h3>API</h3>
<p>Allow 3rd party programs to interact with Sick-Beard.</p> <p>Allow 3rd party programs to interact with Sick-Beard.</p>
<p>You may use the api-builder tool to test or help you develop at <a href="$sbRoot/api/builder">API-Builder</a>.</p>
</div> </div>
<fieldset class="component-group-list"> <fieldset class="component-group-list">
<div class="field-pair"> <div class="field-pair">
<input type="checkbox" name="use_api" id="use_api" #if $sickbeard.USE_API then "checked=\"checked\"" else ""#/> <input type="checkbox" name="use_api" class="enabler" id="use_api" #if $sickbeard.USE_API then "checked=\"checked\"" else ""#/>
<label class="clearfix" for="use_api"> <label class="clearfix" for="use_api">
<span class="component-title">Enable API</span> <span class="component-title">Enable API</span>
<span class="component-desc">Allow the use of the Sick-Beard API.</span> <span class="component-desc">Allow the use of the Sick-Beard API.</span>
</label> </label>
</div> </div>
<div id="content_use_api">
<div class="field-pair"> <div class="field-pair">
<label class="nocheck clearfix" for="api_key"> <label class="nocheck clearfix" for="api_key">
<span class="component-title">API Key</span> <span class="component-title">API Key</span>
...@@ -150,9 +150,10 @@ ...@@ -150,9 +150,10 @@
</label> </label>
<label class="nocheck clearfix"> <label class="nocheck clearfix">
<span class="component-title">&nbsp;</span> <span class="component-title">&nbsp;</span>
<span class="component-desc">This key will give 3rd party programs limited access to Sick-Beard.</span> <span class="component-desc">Used to give 3rd party programs limited access to Sick-Beard.</span>
</label> </label>
</div> </div>
</div>
<input type="submit" class="config_submitter" value="Save Changes" /> <input type="submit" class="config_submitter" value="Save Changes" />
</fieldset> </fieldset>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment