pull/733/head
Jamie.Rees 8 years ago
parent 9f41a511cd
commit eadcba91c4

File diff suppressed because one or more lines are too long

@ -161,6 +161,7 @@ namespace PlexRequests.UI.Helpers
var content = GetContentUrl(assetLocation); var content = GetContentUrl(assetLocation);
sb.AppendLine($"<script src=\"{content}/Content/clipboard.min.js\" type=\"text/javascript\"></script>");
sb.AppendLine($"<script src=\"{content}/Content/bootstrap-switch.min.js\" type=\"text/javascript\"></script>"); sb.AppendLine($"<script src=\"{content}/Content/bootstrap-switch.min.js\" type=\"text/javascript\"></script>");
sb.AppendLine($"<link rel=\"stylesheet\" href=\"{content}/Content/bootstrap-switch.min.css\" type=\"text/css\"/>"); sb.AppendLine($"<link rel=\"stylesheet\" href=\"{content}/Content/bootstrap-switch.min.css\" type=\"text/css\"/>");

@ -289,6 +289,8 @@
<Content Include="Content\angular.min.js"> <Content Include="Content\angular.min.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
<Content Include="Content\Angular\angular-loading-spinner.js" />
<Content Include="Content\Angular\angular-spinner.min.js" />
<Content Include="Content\app\app.js"> <Content Include="Content\app\app.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
@ -339,6 +341,7 @@
<Compile Include="Startup.cs" /> <Compile Include="Startup.cs" />
<Compile Include="Validators\PlexRequestsValidator.cs" /> <Compile Include="Validators\PlexRequestsValidator.cs" />
<Compile Include="Modules\UserManagementModule.cs" /> <Compile Include="Modules\UserManagementModule.cs" />
<Content Include="Content\clipboard.min.js" />
<Content Include="Content\datepicker.css"> <Content Include="Content\datepicker.css">
<DependentUpon>datepicker.scss</DependentUpon> <DependentUpon>datepicker.scss</DependentUpon>
</Content> </Content>

@ -58,11 +58,16 @@
<label for="ApiKey" class="control-label">Api Key</label> <label for="ApiKey" class="control-label">Api Key</label>
<div class="input-group"> <div class="input-group">
<input type="text" hidden="hidden" name="ApiKey" value="@Model.ApiKey"/> <input type="text" hidden="hidden" name="ApiKey" value="@Model.ApiKey"/>
<input type="text" disabled="disabled" class="form-control form-control-custom" id="ApiKey" name="ApiKey" value="@Model.ApiKey"> <input type="text" readonly="readonly" class="form-control form-control-custom" id="ApiKey" name="ApiKey" value="@Model.ApiKey">
<div class="input-group-addon"> <div class="input-group-addon">
<div id="refreshKey" class="fa fa-refresh" title="Reset API Key"></div> <div id="refreshKey" class="fa fa-refresh" title="Reset API Key"></div>
</div> </div>
<div class="input-group-addon">
<div class="fa fa-clipboard" data-clipboard-action="copy" data-clipboard-target="#ApiKey"></div>
</div>
</div> </div>
</div> </div>
@ -75,20 +80,9 @@
</select> </select>
</div> </div>
</div> </div>
<div class="form-group">
<div class="checkbox">
@if (Model.SearchForMovies) @Html.Checkbox(Model.SearchForMovies,"SearchForMovies","Search for Movies");
{
<input type="checkbox" id="SearchForMovies" name="SearchForMovies" checked="checked"><label for="SearchForMovies">Search for Movies</label>
}
else
{
<input type="checkbox" id="SearchForMovies" name="SearchForMovies"><label for="SearchForMovies">Search for Movies</label>
}
</div>
</div>
<div class="form-group"> <div class="form-group">
<div class="checkbox"> <div class="checkbox">
@ -334,6 +328,11 @@
<script> <script>
$(function () { $(function () {
new Clipboard('.fa-clipboard');
$('#save').click(function (e) { $('#save').click(function (e) {
e.preventDefault(); e.preventDefault();

Loading…
Cancel
Save