Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
192 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<div class="row"> | ||
<div class="col-md-12"> </div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h2>PayDay Products</h2> | ||
<div class="col-md-12"> </div> | ||
<form method="POST" action="/settings/payday/itemstackeditor"> | ||
<div class="form-group paydayField"> | ||
<label for="client_id">Product Name</label> | ||
<input type="text" class="form-control" id="product_name" name="product_name" placeholder="Product Name" value="{product_name}"/> | ||
</div> | ||
<div class="form-group paydayField"> | ||
<label for="client_id">Block/Item</label> | ||
<select name="item_name" id="item_name"> | ||
{item_list_options} | ||
</select> | ||
</div> | ||
<div class="form-group paydayField"> | ||
<label for="client_id">Quantity</label> | ||
<input type="text" class="form-control" id="item_qty" name="item_qty" placeholder="Item Qty" value="{item_qty}"/> | ||
</div> | ||
<div class="form-group paydayField"> | ||
<label for="client_id">Max Bundles</label> | ||
<input type="text" class="form-control" id="item_max" name="item_max" placeholder="Max Bundles" value="{item_max}"/> | ||
</div> | ||
<button type="submit" class="btn btn-primary">Save</button> | ||
</form> | ||
</div> | ||
</div> | ||
<script language="javascript"> | ||
|
||
// function onTimerEnabledChange(){ | ||
// if($("#timer_enabled").is(":checked")){ | ||
// $(".paydayTimerField").show(); | ||
// }else{ | ||
// $(".paydayTimerField").hide(); | ||
// } | ||
// } | ||
|
||
// $(document).ready(function(){ | ||
// $("#payday_enabled").prop('checked', {payday_enabled}); | ||
// $("#timer_enabled").prop('checked', {timer_enabled}); | ||
// | ||
// onpaydayEnabledChange(); | ||
// onTimerEnabledChange(); | ||
// }); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<div class="row"> | ||
<div class="col-md-12"> </div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h2>PayDay Products</h2> | ||
<div class="col-md-12"> </div> | ||
<form method="POST" action="/settings/payday/products"> | ||
<table class="table table-striped"> | ||
<tr> | ||
<th>Product Name</th> | ||
<th>Description</th> | ||
<th>Price</th> | ||
<th> </th> | ||
</tr> | ||
|
||
{product_list} | ||
</table> | ||
<button type="submit" class="btn btn-primary">Save</button> <button type="button" class="btn" onclick="document.location.href='/settings/payday/itemstackeditor';">Add ItemStack Product</button> | ||
</form> | ||
</div> | ||
</div> | ||
<script language="javascript"> | ||
|
||
// function onTimerEnabledChange(){ | ||
// if($("#timer_enabled").is(":checked")){ | ||
// $(".paydayTimerField").show(); | ||
// }else{ | ||
// $(".paydayTimerField").hide(); | ||
// } | ||
// } | ||
|
||
// $(document).ready(function(){ | ||
// $("#payday_enabled").prop('checked', {payday_enabled}); | ||
// $("#timer_enabled").prop('checked', {timer_enabled}); | ||
// | ||
// onpaydayEnabledChange(); | ||
// onTimerEnabledChange(); | ||
// }); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<tr> | ||
<td>{product_name_link}</td> | ||
<td>{product_description}</td> | ||
<td><input name="product_{product_name}" id="product_{product_name}" value="{product_price}"/></td> | ||
<td><a href="/settings/payday/itemstackremover?product={product_name}"/><i class="fa fa-times" aria-hidden="true"></i></a></td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<div class="row"> | ||
<div class="col-md-12"> </div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h2>PayDay Products - Remove Product</h2> | ||
<div class="col-md-12"> </div> | ||
<form method="POST" action="/settings/payday/itemstackremover"> | ||
<div class="form-group paydayField"> | ||
Are you sure you want remove the product "{product_name}"? | ||
<input type="hidden" name="product" id="product" value="{product_name}"/> | ||
</div> | ||
<button type="submit" class="btn btn-danger">Delete</button> <button type="button" class="btn btn-primary" onClick="document.location.href='/settings/payday/products';">Cancel</button> | ||
</form> | ||
</div> | ||
</div> | ||
<script language="javascript"> | ||
|
||
// function onTimerEnabledChange(){ | ||
// if($("#timer_enabled").is(":checked")){ | ||
// $(".paydayTimerField").show(); | ||
// }else{ | ||
// $(".paydayTimerField").hide(); | ||
// } | ||
// } | ||
|
||
// $(document).ready(function(){ | ||
// $("#payday_enabled").prop('checked', {payday_enabled}); | ||
// $("#timer_enabled").prop('checked', {timer_enabled}); | ||
// | ||
// onpaydayEnabledChange(); | ||
// onTimerEnabledChange(); | ||
// }); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<div class="row"> | ||
<div class="col-md-12"> </div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h2>PayDay Settings</h2> | ||
<div class="col-md-12"> </div> | ||
<form method="POST" action="/settings/payday/"> | ||
<div class="jumbotron" style="padding:1rem;1rem;"> | ||
<div class="form-group"> | ||
<label class="form-check-label"> | ||
<input class="form-check-input" type="checkbox" value="" name="payday_enabled" id="payday_enabled" onChange="onpaydayEnabledChange();"> | ||
Enable PayDay | ||
</label> | ||
</div> | ||
<div class="form-group paydayField"> | ||
<label for="client_id">Currency Name</label> | ||
<input type="text" class="form-control" id="currency_name" name="currency_name" placeholder="Currency Name" value="{currency_name}"/> | ||
</div> | ||
<div class="form-group paydayField"> | ||
<label for="client_id">Starting Balance</label> | ||
<input type="text" class="form-control" id="start_balance" name="start_balance" placeholder="Starting Balance" value="{start_balance}"/> | ||
</div> | ||
<div class="form-group paydayField"> | ||
<label class="form-check-label"> | ||
<input class="form-check-input" type="checkbox" value="" name="timer_enabled" id="timer_enabled" onChange="onTimerEnabledChange();"> | ||
Enable Pay Timer | ||
</label> | ||
</div> | ||
<div class="form-group paydayTimerField"> | ||
<label for="client_id">Amount per Real World Minute</label> | ||
<input type="text" class="form-control" id="payday_rate" name="payday_rate" placeholder="Amount" value="{payday_rate}"/> | ||
</div> | ||
</div> | ||
<button type="submit" class="btn btn-primary">Save</button> | ||
</form> | ||
</div> | ||
</div> | ||
<script language="javascript"> | ||
function onpaydayEnabledChange(){ | ||
if($("#payday_enabled").is(":checked")){ | ||
$(".paydayField").show(); | ||
}else{ | ||
$(".paydayField").hide(); | ||
} | ||
} | ||
|
||
function onTimerEnabledChange(){ | ||
if($("#timer_enabled").is(":checked")){ | ||
$(".paydayTimerField").show(); | ||
}else{ | ||
$(".paydayTimerField").hide(); | ||
} | ||
} | ||
|
||
$(document).ready(function(){ | ||
$("#payday_enabled").prop('checked', {payday_enabled}); | ||
$("#timer_enabled").prop('checked', {timer_enabled}); | ||
|
||
onpaydayEnabledChange(); | ||
onTimerEnabledChange(); | ||
}); | ||
|
||
</script> |