Search/RSS will be greyed out if they are not available on that indexer (instead of missing)

pull/4/head
Mark McDowall 10 years ago
parent 1709b6ff89
commit 30511d166d

@ -26,4 +26,8 @@
.button-variant(@btn-warning-color, @btn-warning-bg, @btn-warning-border);
}
}
input:first-of-type:disabled ~ .slide-button {
opacity: 0.5;
}
}

@ -95,6 +95,15 @@
font-size : 16px;
}
.label-white {
color : black;
background-color : white;
}
.label-disabled {
opacity: 0.5;
}
th {
cursor : default;
@ -113,11 +122,6 @@ a, .btn {
}
}
.label-white {
color : black;
background-color : white;
}
body {
background:
url('../Content/Images/background/logo.png') 50px center no-repeat fixed,#272727;

@ -17,14 +17,13 @@
</div>
</div>
{{#if supportsRss}}
<div class="form-group">
<label class="col-sm-3 control-label">Enable RSS Sync</label>
<div class="col-sm-5">
<div class="input-group">
<label class="checkbox toggle well">
<input type="checkbox" name="enableRss"/>
<input type="checkbox" name="enableRss" {{#unless supportsRss}}disabled="disabled"{{/unless}}/>
<p>
<span>Yes</span>
<span>No</span>
@ -32,19 +31,23 @@
<div class="btn btn-primary slide-button"/>
</label>
{{#unless supportsRss}}
<span class="help-inline-checkbox">
<i class="icon-nd-form-warning" title="" data-original-title="RSS is not supported with this indexer"></i>
</span>
{{/unless}}
</div>
</div>
</div>
{{/if}}
{{#if supportsSearch}}
<div class="form-group">
<label class="col-sm-3 control-label">Enable Search</label>
<div class="col-sm-5">
<div class="input-group">
<label class="checkbox toggle well">
<input type="checkbox" name="enableSearch"/>
<input type="checkbox" name="enableSearch" {{#unless supportsSearch}}disabled="disabled"{{/unless}}/>
<p>
<span>Yes</span>
<span>No</span>
@ -52,10 +55,14 @@
<div class="btn btn-primary slide-button"/>
</label>
{{#unless supportsSearch}}
<span class="help-inline-checkbox">
<i class="icon-nd-form-warning" title="" data-original-title="Search is not supported with this indexer"></i>
</span>
{{/unless}}
</div>
</div>
</div>
{{/if}}
{{formBuilder}}
</div>

@ -10,6 +10,8 @@
{{else}}
<span class="label label-default">RSS</span>
{{/if}}
{{else}}
<span class="label label-default label-disabled">RSS</span>
{{/if}}
{{#if supportsSearch}}
@ -18,6 +20,8 @@
{{else}}
<span class="label label-default">Search</span>
{{/if}}
{{else}}
<span class="label label-default label-disabled">Search</span>
{{/if}}
</div>
</div>

Loading…
Cancel
Save