aboutsummaryrefslogtreecommitdiff
path: root/include/discounts-overview.php
diff options
context:
space:
mode:
authorCamil Staps2016-07-27 16:28:19 +0200
committerCamil Staps2016-07-27 16:28:19 +0200
commit9714f3d8cc311f3b75a4727156de2ab33cf3895e (patch)
tree647d3370ad70827be8c83bfec9e98ae156c4ea9e /include/discounts-overview.php
parentReorganise to have client use Model (diff)
Removed redundant whitespace & retab
Diffstat (limited to 'include/discounts-overview.php')
-rw-r--r--include/discounts-overview.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/include/discounts-overview.php b/include/discounts-overview.php
index d4d8245..1bf55d6 100644
--- a/include/discounts-overview.php
+++ b/include/discounts-overview.php
@@ -2,17 +2,17 @@
/**
* BusinessAdmin: administrative software for small companies
* Copyright (C) 2015 Camil Staps (ViviSoft)
- *
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -39,7 +39,7 @@ require_once('./login.php');
$discounts = BusinessAdmin::getDiscounts($_pdo);
foreach ($discounts as $discount) {
echo "<tr class='mix'
- data-mixer-order-id='{$discount->getId()}'
+ data-mixer-order-id='{$discount->getId()}'
data-mixer-order-offer='{$discount->getOffer()->getId()}'
data-mixer-order-value='{$discount->getValue()}'>
<td class='col-min-width'>{$discount->getId()}</td>
@@ -56,7 +56,7 @@ require_once('./login.php');
<a href='#' class='editable' id='editable-discount-{$discount->getId()}-vat' data-type='text' data-pk='{$discount->getId()}' data-url='".constants::url_external."discounts/edit'>{$discount->getVAT()}</a>% VAT
</td>
<td class='col-min-width'>
- <a title='View' href='?id={$discount->getId()}' class='btn btn-primary btn-circle fa fa-arrow-right'></a>
+ <a title='View' href='?id={$discount->getId()}' class='btn btn-primary btn-circle fa fa-arrow-right'></a>
<a title='Delete' href='?delete={$discount->getId()}' class='btn btn-danger btn-circle fa fa-times'></a>
</td>
</tr>";
@@ -74,7 +74,7 @@ require_once('./login.php');
<div class="panel panel-default">
<div class="panel-heading">Create new</div>
<div class="panel-body">
- <form role="form" id="newDiscount" action='<?=constants::url_external?>discounts/new' method="post" class="bootstrapValidator ajaxify"
+ <form role="form" id="newDiscount" action='<?=constants::url_external?>discounts/new' method="post" class="bootstrapValidator ajaxify"
data-ajaxify-options='{"success":"newDiscountSuccess","error":"newDiscountError","beforeSubmit":"newDiscountBeforeSubmit"}'>
<div class="ajaxify-response alert alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button><span class="ajaxify-response-text"></span></div>
<div class="col-lg-6">
@@ -90,30 +90,30 @@ require_once('./login.php');
</div>
<div class="form-group">
<label>Title:</label>
- <input
- type="text" name="title" class="form-control" placeholder="Title"
+ <input
+ type="text" name="title" class="form-control" placeholder="Title"
data-bv-notempty="true" data-bv-notempty-message="You have to provide a title"/>
</div>
<div class="form-group">
<label>Description:</label>
- <textarea
+ <textarea
name="description" class="form-control" placeholder="Description" rows="4"
- data-bv-notempty="true" data-bv-notempty-message="You have to provide a description"
+ data-bv-notempty="true" data-bv-notempty-message="You have to provide a description"
data-bv-stringlength="true" data-bv-stringlength-message="The description should have at most 1000 characters" data-bv-stringlength-max="1000"></textarea>
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label>Value (<?=constants::invoice_valuta?>):</label>
- <input
- type="text" name="value" class="form-control" placeholder="Value"
+ <input
+ type="text" name="value" class="form-control" placeholder="Value"
data-bv-notempty="true" data-bv-notempty-message="You have to give a value"
data-bv-numeric="true" data-bv-numeric-message="Please enter a number (with a '.' as decimal separator)" />
</div>
<div class="form-group">
<label>VAT (%):</label>
- <input
- type="text" name="vat" class="form-control" placeholder="VAT"
+ <input
+ type="text" name="vat" class="form-control" placeholder="VAT"
data-bv-notempty="true" data-bv-notempty-message="You have to provide a VAT percentage"
data-bv-numeric="true" data-bv-numeric-message="Please enter a number (with a '.' as decimal separator)" />
</div>