mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
More changes for the urlbase #72
This commit is contained in:
parent
94aee87882
commit
51f8e2a95c
10 changed files with 90 additions and 50 deletions
|
@ -11,6 +11,7 @@ var searchTemplate = Handlebars.compile(searchSource);
|
||||||
var albumTemplate = Handlebars.compile(albumSource);
|
var albumTemplate = Handlebars.compile(albumSource);
|
||||||
var movieTimer = 0;
|
var movieTimer = 0;
|
||||||
var tvimer = 0;
|
var tvimer = 0;
|
||||||
|
var base = $('#baseUrl').val();
|
||||||
|
|
||||||
var mixItUpDefault = {
|
var mixItUpDefault = {
|
||||||
animation: { enable: true },
|
animation: { enable: true },
|
||||||
|
@ -94,9 +95,10 @@ $('#approveMovies').click(function (e) {
|
||||||
|
|
||||||
loadingButton(buttonId, "success");
|
loadingButton(buttonId, "success");
|
||||||
|
|
||||||
|
var url = createBaseUrl(base, '/approval/approveallmovies');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/approval/approveallmovies',
|
url: url,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (checkJsonResponse(response)) {
|
if (checkJsonResponse(response)) {
|
||||||
|
@ -123,10 +125,10 @@ $('#approveTVShows').click(function (e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
loadingButton(buttonId, "success");
|
loadingButton(buttonId, "success");
|
||||||
|
var url = createBaseUrl(base, '/approval/approvealltvshows');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '/approval/approvealltvshows',
|
url: url,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (checkJsonResponse(response)) {
|
if (checkJsonResponse(response)) {
|
||||||
|
@ -456,7 +458,8 @@ function movieLoad() {
|
||||||
}
|
}
|
||||||
$ml.html("");
|
$ml.html("");
|
||||||
|
|
||||||
$.ajax("/requests/movies/").success(function (results) {
|
var url = createBaseUrl(base, '/requests/movies');
|
||||||
|
$.ajax(url).success(function (results) {
|
||||||
if (results.length > 0) {
|
if (results.length > 0) {
|
||||||
results.forEach(function (result) {
|
results.forEach(function (result) {
|
||||||
var context = buildRequestContext(result, "movie");
|
var context = buildRequestContext(result, "movie");
|
||||||
|
@ -478,8 +481,8 @@ function tvLoad() {
|
||||||
$tvl.mixItUp('destroy');
|
$tvl.mixItUp('destroy');
|
||||||
}
|
}
|
||||||
$tvl.html("");
|
$tvl.html("");
|
||||||
|
var url = createBaseUrl(base, '/requests/tvshows');
|
||||||
$.ajax("/requests/tvshows/").success(function (results) {
|
$.ajax(url).success(function (results) {
|
||||||
if (results.length > 0) {
|
if (results.length > 0) {
|
||||||
results.forEach(function (result) {
|
results.forEach(function (result) {
|
||||||
var context = buildRequestContext(result, "tv");
|
var context = buildRequestContext(result, "tv");
|
||||||
|
@ -501,8 +504,8 @@ function albumLoad() {
|
||||||
$albumL.mixItUp('destroy');
|
$albumL.mixItUp('destroy');
|
||||||
}
|
}
|
||||||
$albumL.html("");
|
$albumL.html("");
|
||||||
|
var url = createBaseUrl(base, '/requests/albums');
|
||||||
$.ajax("/requests/albums/").success(function (results) {
|
$.ajax(url).success(function (results) {
|
||||||
if (results.length > 0) {
|
if (results.length > 0) {
|
||||||
results.forEach(function (result) {
|
results.forEach(function (result) {
|
||||||
var context = buildRequestContext(result, "album");
|
var context = buildRequestContext(result, "album");
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@Html.Partial("_Sidebar")
|
@using PlexRequests.UI.Helpers
|
||||||
|
@Html.Partial("_Sidebar")
|
||||||
@{
|
@{
|
||||||
int port;
|
int port;
|
||||||
if (Model.EmailPort == 0)
|
if (Model.EmailPort == 0)
|
||||||
|
@ -106,6 +107,7 @@
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
|
var base = '@Html.GetBaseUrl()';
|
||||||
$('#save').click(function (e) {
|
$('#save').click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var port = $('#EmailPort').val();
|
var port = $('#EmailPort').val();
|
||||||
|
@ -134,6 +136,8 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#testEmail').click(function (e) {
|
$('#testEmail').click(function (e) {
|
||||||
|
|
||||||
|
var url = createBaseUrl(base, '/admin/testemailnotification');
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var port = $('#EmailPort').val();
|
var port = $('#EmailPort').val();
|
||||||
if (isNaN(port)) {
|
if (isNaN(port)) {
|
||||||
|
@ -144,7 +148,7 @@
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: $form.prop("method"),
|
type: $form.prop("method"),
|
||||||
data: $form.serialize(),
|
data: $form.serialize(),
|
||||||
url: '/admin/testemailnotification',
|
url: url,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.result === true) {
|
if (response.result === true) {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@Html.Partial("_Sidebar")
|
@using PlexRequests.UI.Helpers
|
||||||
|
@Html.Partial("_Sidebar")
|
||||||
@{
|
@{
|
||||||
int port;
|
int port;
|
||||||
if (Model.Port == 0)
|
if (Model.Port == 0)
|
||||||
|
@ -93,13 +94,14 @@
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
|
var base = '@Html.GetBaseUrl()';
|
||||||
$('#testHeadphones').click(function (e) {
|
$('#testHeadphones').click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var $form = $("#mainForm");
|
var $form = $("#mainForm");
|
||||||
|
var url = createBaseUrl(base, '/test/headphones');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: $form.prop("method"),
|
type: $form.prop("method"),
|
||||||
url: "/test/headphones",
|
url: url,
|
||||||
data: $form.serialize(),
|
data: $form.serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@Html.Partial("_Sidebar")
|
@using PlexRequests.UI.Helpers
|
||||||
|
@Html.Partial("_Sidebar")
|
||||||
@{
|
@{
|
||||||
int port;
|
int port;
|
||||||
if (Model.Port == 0)
|
if (Model.Port == 0)
|
||||||
|
@ -67,13 +68,14 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
|
var base = '@Html.GetBaseUrl()';
|
||||||
$('#testPlex').click(function (e) {
|
$('#testPlex').click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
var url = createBaseUrl(base, '/test/plex');
|
||||||
var $form = $("#mainForm");
|
var $form = $("#mainForm");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: $form.prop("method"),
|
type: $form.prop("method"),
|
||||||
url: "/test/plex",
|
url: url,
|
||||||
data: $form.serialize(),
|
data: $form.serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@Html.Partial("_Sidebar")
|
@using PlexRequests.UI.Helpers
|
||||||
|
@Html.Partial("_Sidebar")
|
||||||
|
|
||||||
<div class="col-sm-8 col-sm-push-1">
|
<div class="col-sm-8 col-sm-push-1">
|
||||||
<form class="form-horizontal" method="POST" id="mainForm">
|
<form class="form-horizontal" method="POST" id="mainForm">
|
||||||
|
@ -53,7 +54,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
|
var base = '@Html.GetBaseUrl()';
|
||||||
$('#save').click(function (e) {
|
$('#save').click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
@ -80,11 +81,12 @@
|
||||||
$('#testPushbullet').click(function (e) {
|
$('#testPushbullet').click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
var url = createBaseUrl(base, '/admin/testpushbulletnotification');
|
||||||
var $form = $("#mainForm");
|
var $form = $("#mainForm");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: $form.prop("method"),
|
type: $form.prop("method"),
|
||||||
data: $form.serialize(),
|
data: $form.serialize(),
|
||||||
url: '/admin/testpushbulletnotification',
|
url: url,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.result === true) {
|
if (response.result === true) {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@Html.Partial("_Sidebar")
|
@using PlexRequests.UI.Helpers
|
||||||
|
@Html.Partial("_Sidebar")
|
||||||
|
|
||||||
<div class="col-sm-8 col-sm-push-1">
|
<div class="col-sm-8 col-sm-push-1">
|
||||||
<form class="form-horizontal" method="POST" id="mainForm">
|
<form class="form-horizontal" method="POST" id="mainForm">
|
||||||
|
@ -54,6 +55,7 @@
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
|
var base = '@Html.GetBaseUrl()';
|
||||||
$('#save').click(function (e) {
|
$('#save').click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
@ -80,11 +82,12 @@
|
||||||
$('#testPushover').click(function (e) {
|
$('#testPushover').click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
var url = createBaseUrl(base, '/admin/testpushovernotification');
|
||||||
var $form = $("#mainForm");
|
var $form = $("#mainForm");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: $form.prop("method"),
|
type: $form.prop("method"),
|
||||||
data: $form.serialize(),
|
data: $form.serialize(),
|
||||||
url: '/admin/testpushovernotification',
|
url: url,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.result === true) {
|
if (response.result === true) {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@Html.Partial("_Sidebar")
|
@using PlexRequests.UI.Helpers
|
||||||
|
@Html.Partial("_Sidebar")
|
||||||
@{
|
@{
|
||||||
int port;
|
int port;
|
||||||
if (Model.Port == 0)
|
if (Model.Port == 0)
|
||||||
|
@ -10,9 +11,17 @@
|
||||||
port = Model.Port;
|
port = Model.Port;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var baseUrl = Html.GetBaseUrl();
|
||||||
|
var formAction = "/admin";
|
||||||
|
if (!string.IsNullOrEmpty(baseUrl.ToHtmlString()))
|
||||||
|
{
|
||||||
|
formAction = "/" + baseUrl.ToHtmlString() + formAction;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
<div class="col-sm-8 col-sm-push-1">
|
<div class="col-sm-8 col-sm-push-1">
|
||||||
<form class="form-horizontal" method="POST" action="/admin" id="mainForm">
|
<form class="form-horizontal" method="POST" action="@formAction" id="mainForm">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Request Plex Settings</legend>
|
<legend>Request Plex Settings</legend>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -72,7 +81,7 @@
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<input type="checkbox" id="SearchForMusic" name="SearchForMusic"><text>Search for Music</text>
|
<input type="checkbox" id="SearchForMusic" name="SearchForMusic"><text>Search for Music</text>
|
||||||
}
|
}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@Html.Partial("_Sidebar")
|
@using PlexRequests.UI.Helpers
|
||||||
|
@Html.Partial("_Sidebar")
|
||||||
@{
|
@{
|
||||||
int port;
|
int port;
|
||||||
if (Model.Port == 0)
|
if (Model.Port == 0)
|
||||||
|
@ -103,7 +104,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
|
var base = '@Html.GetBaseUrl()';
|
||||||
@if (!string.IsNullOrEmpty(Model.QualityProfile))
|
@if (!string.IsNullOrEmpty(Model.QualityProfile))
|
||||||
{
|
{
|
||||||
<text>
|
<text>
|
||||||
|
@ -148,9 +149,11 @@
|
||||||
$('#testSickRage').click(function (e) {
|
$('#testSickRage').click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var $form = $("#mainForm");
|
var $form = $("#mainForm");
|
||||||
|
|
||||||
|
var url = createBaseUrl(base, '/test/sickrage');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: $form.prop("method"),
|
type: $form.prop("method"),
|
||||||
url: "/test/sickrage",
|
url: url,
|
||||||
data: $form.serialize(),
|
data: $form.serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@Html.Partial("_Sidebar")
|
@using PlexRequests.UI.Helpers
|
||||||
|
@Html.Partial("_Sidebar")
|
||||||
@{
|
@{
|
||||||
int port;
|
int port;
|
||||||
if (Model.Port == 0)
|
if (Model.Port == 0)
|
||||||
|
@ -223,13 +224,15 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
var base = '@Html.GetBaseUrl()';
|
||||||
$('#testSonarr').click(function (e) {
|
$('#testSonarr').click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var $form = $("#mainForm");
|
var $form = $("#mainForm");
|
||||||
|
|
||||||
|
var url = createBaseUrl(base, '/test/sonarr');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: $form.prop("method"),
|
type: $form.prop("method"),
|
||||||
url: "/test/sonarr",
|
url: url,
|
||||||
data: $form.serialize(),
|
data: $form.serialize(),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
@using Nancy.Security
|
@using Nancy.Security
|
||||||
@using PlexRequests.UI.Helpers
|
@using PlexRequests.UI.Helpers
|
||||||
|
@{
|
||||||
|
var baseUrl = Html.GetBaseUrl();
|
||||||
|
var formAction = string.Empty;
|
||||||
|
if (!string.IsNullOrEmpty(baseUrl.ToHtmlString()))
|
||||||
|
{
|
||||||
|
formAction = "/" + baseUrl.ToHtmlString();
|
||||||
|
}
|
||||||
|
}
|
||||||
<div>
|
<div>
|
||||||
<h1>Requests</h1>
|
<h1>Requests</h1>
|
||||||
<h4>Below you can see yours and all other requests, as well as their download and approval status.</h4>
|
<h4>Below you can see yours and all other requests, as well as their download and approval status.</h4>
|
||||||
|
@ -181,7 +189,7 @@
|
||||||
<div class="col-sm-3 col-sm-push-3">
|
<div class="col-sm-3 col-sm-push-3">
|
||||||
{{#if_eq admin true}}
|
{{#if_eq admin true}}
|
||||||
{{#if_eq approved false}}
|
{{#if_eq approved false}}
|
||||||
<form method="POST" action="/approval/approve" id="approve{{requestId}}">
|
<form method="POST" action="@formAction/approval/approve" id="approve{{requestId}}">
|
||||||
<input name="requestId" type="text" value="{{requestId}}" hidden="hidden" />
|
<input name="requestId" type="text" value="{{requestId}}" hidden="hidden" />
|
||||||
{{#if_eq hasQualities true}}
|
{{#if_eq hasQualities true}}
|
||||||
<div class="btn-group btn-split">
|
<div class="btn-group btn-split">
|
||||||
|
@ -201,17 +209,17 @@
|
||||||
{{/if_eq}}
|
{{/if_eq}}
|
||||||
</form>
|
</form>
|
||||||
{{/if_eq}}
|
{{/if_eq}}
|
||||||
<form method="POST" action="/requests/delete" id="delete{{requestId}}">
|
<form method="POST" action="@formAction/requests/delete" id="delete{{requestId}}">
|
||||||
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
||||||
<button id="{{requestId}}" style="text-align: right" class="btn btn-sm btn-danger-outline delete" type="submit"><i class="fa fa-minus"></i> Remove</button>
|
<button id="{{requestId}}" style="text-align: right" class="btn btn-sm btn-danger-outline delete" type="submit"><i class="fa fa-minus"></i> Remove</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form method="POST" action="/requests/clearissues" id="clear{{requestId}}">
|
<form method="POST" action="@formAction/requests/clearissues" id="clear{{requestId}}">
|
||||||
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
||||||
<button id="{{requestId}}" style="text-align: right" class="btn btn-sm btn-info-outline clear" type="submit"><i class="fa fa-check"></i> Clear Issues</button>
|
<button id="{{requestId}}" style="text-align: right" class="btn btn-sm btn-info-outline clear" type="submit"><i class="fa fa-check"></i> Clear Issues</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form method="POST" action="/requests/changeavailability" id="change{{requestId}}">
|
<form method="POST" action="@formAction/requests/changeavailability" id="change{{requestId}}">
|
||||||
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
||||||
{{#if_eq available true}}
|
{{#if_eq available true}}
|
||||||
<button id="{{requestId}}" custom-availibility="{{requestId}}" style="text-align: right" value="false" class="btn btn-sm btn-info-outline change" type="submit"><i class="fa fa-minus"></i> Mark Unavailable</button>
|
<button id="{{requestId}}" custom-availibility="{{requestId}}" style="text-align: right" value="false" class="btn btn-sm btn-info-outline change" type="submit"><i class="fa fa-minus"></i> Mark Unavailable</button>
|
||||||
|
@ -222,7 +230,7 @@
|
||||||
|
|
||||||
{{/if_eq}}
|
{{/if_eq}}
|
||||||
|
|
||||||
<form method="POST" action="/requests/reportissue/" id="report{{requestId}}">
|
<form method="POST" action="@formAction/requests/reportissue/" id="report{{requestId}}">
|
||||||
<input name="requestId" type="text" value="{{requestId}}" hidden="hidden" />
|
<input name="requestId" type="text" value="{{requestId}}" hidden="hidden" />
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button id="{{requestId}}" class="btn btn-sm btn-primary-outline dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
<button id="{{requestId}}" class="btn btn-sm btn-primary-outline dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||||
|
@ -309,22 +317,22 @@
|
||||||
<div class="col-sm-2 col-sm-push-3">
|
<div class="col-sm-2 col-sm-push-3">
|
||||||
{{#if_eq admin true}}
|
{{#if_eq admin true}}
|
||||||
{{#if_eq approved false}}
|
{{#if_eq approved false}}
|
||||||
<form method="POST" action="/approval/approve" id="approve{{requestId}}">
|
<form method="POST" action="@formAction/approval/approve" id="approve{{requestId}}">
|
||||||
<input name="requestId" type="text" value="{{requestId}}" hidden="hidden" />
|
<input name="requestId" type="text" value="{{requestId}}" hidden="hidden" />
|
||||||
<button id="{{requestId}}" custom-button="{{requestId}}" style="text-align: right" class="btn btn-sm btn-success-outline approve" type="submit"><i class="fa fa-plus"></i> Approve</button>
|
<button id="{{requestId}}" custom-button="{{requestId}}" style="text-align: right" class="btn btn-sm btn-success-outline approve" type="submit"><i class="fa fa-plus"></i> Approve</button>
|
||||||
</form>
|
</form>
|
||||||
{{/if_eq}}
|
{{/if_eq}}
|
||||||
<form method="POST" action="/requests/delete" id="delete{{requestId}}">
|
<form method="POST" action="@formAction/requests/delete" id="delete{{requestId}}">
|
||||||
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
||||||
<button id="{{requestId}}" style="text-align: right" class="btn btn-sm btn-danger-outline delete" type="submit"><i class="fa fa-minus"></i> Remove</button>
|
<button id="{{requestId}}" style="text-align: right" class="btn btn-sm btn-danger-outline delete" type="submit"><i class="fa fa-minus"></i> Remove</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form method="POST" action="/requests/clearissues" id="clear{{requestId}}">
|
<form method="POST" action="@formAction/requests/clearissues" id="clear{{requestId}}">
|
||||||
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
||||||
<button id="{{requestId}}" style="text-align: right" class="btn btn-sm btn-info-outline clear" type="submit"><i class="fa fa-check"></i> Clear Issues</button>
|
<button id="{{requestId}}" style="text-align: right" class="btn btn-sm btn-info-outline clear" type="submit"><i class="fa fa-check"></i> Clear Issues</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form method="POST" action="/requests/changeavailability" id="change{{requestId}}">
|
<form method="POST" action="@formAction/requests/changeavailability" id="change{{requestId}}">
|
||||||
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
||||||
{{#if_eq available true}}
|
{{#if_eq available true}}
|
||||||
<button id="{{requestId}}" custom-availibility="{{requestId}}" style="text-align: right" value="false" class="btn btn-sm btn-info-outline change" type="submit"><i class="fa fa-minus"></i> Mark Unavailable</button>
|
<button id="{{requestId}}" custom-availibility="{{requestId}}" style="text-align: right" value="false" class="btn btn-sm btn-info-outline change" type="submit"><i class="fa fa-minus"></i> Mark Unavailable</button>
|
||||||
|
@ -335,7 +343,7 @@
|
||||||
|
|
||||||
{{/if_eq}}
|
{{/if_eq}}
|
||||||
|
|
||||||
<form method="POST" action="/requests/reportissue/" id="report{{requestId}}">
|
<form method="POST" action="@formAction/requests/reportissue/" id="report{{requestId}}">
|
||||||
<input name="requestId" type="text" value="{{requestId}}" hidden="hidden" />
|
<input name="requestId" type="text" value="{{requestId}}" hidden="hidden" />
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button id="{{requestId}}" class="btn btn-sm btn-primary-outline dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
<button id="{{requestId}}" class="btn btn-sm btn-primary-outline dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||||
|
@ -369,7 +377,7 @@
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
|
||||||
<h4 class="modal-title">Add issue/comment</h4>
|
<h4 class="modal-title">Add issue/comment</h4>
|
||||||
</div>
|
</div>
|
||||||
<form method="POST" action="/requests/reportissuecomment" id="commentForm">
|
<form method="POST" action="@formAction/requests/reportissuecomment" id="commentForm">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<input name="requestId" class="requestId" type="text" hidden="hidden" value="" />
|
<input name="requestId" class="requestId" type="text" hidden="hidden" value="" />
|
||||||
<textarea class="form-control form-control-custom" rows="3" id="commentArea" name="commentArea"></textarea>
|
<textarea class="form-control form-control-custom" rows="3" id="commentArea" name="commentArea"></textarea>
|
||||||
|
@ -390,9 +398,9 @@
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
|
||||||
<h4 class="modal-title">Add a note</h4>
|
<h4 class="modal-title">Add a note</h4>
|
||||||
</div>
|
</div>
|
||||||
<form method="POST" action="/requests/addnote" id="noteForm">
|
<form method="POST" action="@formAction/requests/addnote" id="noteForm">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<input name="requestId" class="noteId" type="text" hidden="hidden" value="" />
|
<input name="requestId" class="noteId" type="text" hidden="hidden" value=""/>
|
||||||
<textarea class="form-control form-control-custom" rows="3" id="noteArea" name="noteArea"></textarea>
|
<textarea class="form-control form-control-custom" rows="3" id="noteArea" name="noteArea"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
@ -403,6 +411,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="baseUrl" value="@Html.GetBaseUrl()"></div>
|
||||||
|
|
||||||
@Html.LoadRequestAssets()
|
@Html.LoadRequestAssets()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue