aboutsummaryrefslogtreecommitdiff
path: root/include/assignments-view.php
diff options
context:
space:
mode:
authorCamil Staps2016-07-18 15:10:33 +0200
committerCamil Staps2016-07-18 15:10:33 +0200
commit253a7b1435b42cfeaeaaba279c840af7d8ec473d (patch)
tree345a96062038ed6cab87e1fc34bf9cfca3a2c986 /include/assignments-view.php
parentFix previous commit (diff)
Added assignments-view page
Diffstat (limited to 'include/assignments-view.php')
-rw-r--r--include/assignments-view.php67
1 files changed, 67 insertions, 0 deletions
diff --git a/include/assignments-view.php b/include/assignments-view.php
index e69de29..ffdc507 100644
--- a/include/assignments-view.php
+++ b/include/assignments-view.php
@@ -0,0 +1,67 @@
+<?php
+/**
+ * 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/>.
+ */
+
+$_assignment = new assignment($_pdo, $_id);
+?>
+<div class="col-lg-6">
+ <div class="panel panel-default">
+ <div class="panel-heading">Details</div>
+ <div class="panel-body table-responsive">
+ <table class="table table-bordered" id="overview-assignments">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>Offer</th>
+ <th>Time</th>
+ <th>Price</th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php
+ echo "<tr class='mix'
+ data-mixer-order-id='{$_assignment->getId()}'
+ data-mixer-order-offer='{$_assignment->getOffer()->getId()}'
+ data-mixer-order-time='{$_assignment->getHours()}'
+ data-mixer-order-price='{$_assignment->getPricePerHour()}'>
+ <td class='col-min-width'>{$_assignment->getId()}</td>
+ <td class='col-min-width'>
+ <a href='".constants::url_internal."/offers?id={$_assignment->getOffer()->getId()}'>#{$_assignment->getOffer()->getId()}</a> to
+ <a href='".constants::url_internal."/contacts?id={$_assignment->getOffer()->getContact()->getId()}'>{$_assignment->getOffer()->getContact()->getName()}</a>
+ (<a href='".constants::url_internal."/clients?id={$_assignment->getOffer()->getContact()->getClient()->getId()}'>{$_assignment->getOffer()->getContact()->getClient()->getName()}</a>)
+ </td>
+ <td class='col-min-width'><a href='#' class='editable' id='editable-_assignment-{$_assignment->getId()}-hours' data-type='text' data-pk='{$_assignment->getId()}' data-url='".constants::url_external."_assignments/edit'>{$_assignment->getHours()}</a>h</td>
+ <td class='col-min-width'>
+ ".constants::invoice_valuta."<a href='#' class='editable' id='editable-_assignment-{$_assignment->getId()}-price_per_hour' data-type='text' data-pk='{$_assignment->getId()}' data-url='".constants::url_external."_assignments/edit'>{$_assignment->getPricePerHour()}</a> / hr<br/>
+ <a href='#' class='editable' id='editable-_assignment-{$_assignment->getId()}-vat' data-type='text' data-pk='{$_assignment->getId()}' data-url='".constants::url_external."_assignments/edit'>{$_assignment->getVAT()}</a>% VAT
+ </td>
+ </tr>";
+ ?>
+ </tbody>
+ </table>
+ </div>
+ </div>
+</div>
+<div class="col-lg-6">
+ <div class="panel panel-default">
+ <div class="panel-heading">Description</div>
+ <div class="panel-body">
+ <?=$_assignment->getDescription()?>
+ </div>
+ </div>
+</div>