Skip to content

Commit

Permalink
A16.2 b7 Update
Browse files Browse the repository at this point in the history
Update for A16.2 (b7)
  • Loading branch information
chromecide committed Aug 5, 2017
1 parent 3764bf0 commit 6baf9d3
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 0 deletions.
Binary file modified 7dtmPaydayLib/7DTMPaydayLib.dll
Binary file not shown.
Binary file added 7dtmPaydayLib/7DTMPaydayLib.pdb
Binary file not shown.
48 changes: 48 additions & 0 deletions 7dtmPaydayLib/html/tpl_itemstackeditor.html
@@ -0,0 +1,48 @@
<div class="row">
<div class="col-md-12">&nbsp;</div>
</div>
<div class="row">
<div class="col-md-12">
<h2>PayDay Products</h2>
<div class="col-md-12">&nbsp;</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>
40 changes: 40 additions & 0 deletions 7dtmPaydayLib/html/tpl_producteditor.html
@@ -0,0 +1,40 @@
<div class="row">
<div class="col-md-12">&nbsp;</div>
</div>
<div class="row">
<div class="col-md-12">
<h2>PayDay Products</h2>
<div class="col-md-12">&nbsp;</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>&nbsp;</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>
6 changes: 6 additions & 0 deletions 7dtmPaydayLib/html/tpl_productitem.html
@@ -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>
34 changes: 34 additions & 0 deletions 7dtmPaydayLib/html/tpl_removeitemstack.html
@@ -0,0 +1,34 @@
<div class="row">
<div class="col-md-12">&nbsp;</div>
</div>
<div class="row">
<div class="col-md-12">
<h2>PayDay Products - Remove Product</h2>
<div class="col-md-12">&nbsp;</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>
64 changes: 64 additions & 0 deletions 7dtmPaydayLib/html/tpl_settings.html
@@ -0,0 +1,64 @@
<div class="row">
<div class="col-md-12">&nbsp;</div>
</div>
<div class="row">
<div class="col-md-12">
<h2>PayDay Settings</h2>
<div class="col-md-12">&nbsp;</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>

0 comments on commit 6baf9d3

Please sign in to comment.