|
|
@@ -1193,7 +1193,16 @@ SQL_FUN;
|
|
|
<td style="color:#888; width:60px; padding:0 6px; text-align:right">ilość</td>
|
|
|
<td style="color:#888; width:80px; padding:0 6px; text-align:right">jednostka</td>
|
|
|
<?php if ($showPrices) : ?>
|
|
|
- <td style="color:#888; padding:0 6px; text-align:right">cena jednostkowa</td>
|
|
|
+ <td style="color:#888; padding:0 6px; text-align:right">cena jednostkowa
|
|
|
+ <?php if ($priceEditJs) : ?>
|
|
|
+ <button type="button"
|
|
|
+ class="btn btn-xs btn-link"
|
|
|
+ data-toggle="popover"
|
|
|
+ data-trigger="hover"
|
|
|
+ title="Cena jednostkowa"
|
|
|
+ data-content="Cena na czerwono oznacza cenę z cennika głównego, cena na zielono to cena dla projektu"><i class="glyphicon glyphicon-question-sign"></i></button>
|
|
|
+ <?php endif; ?>
|
|
|
+ </td>
|
|
|
<td style="color:#888; padding:0 6px; text-align:right">cena jedn. (robocizna)</td>
|
|
|
<?php endif; ?>
|
|
|
<?php if ($admin) : ?>
|
|
|
@@ -1242,12 +1251,12 @@ SQL_FUN;
|
|
|
onClick="return p5UI__ButtonAjax(this, 'p5UIBtnAjax:Kosztorys:updateProjektyOferta', { href: '<?= "{$priceEditJs}&idType={$idType}&unitType=zasob"; ?>' })"
|
|
|
class="type_price-<?= $typePrice; ?>"
|
|
|
<?php endif; ?>
|
|
|
- style="padding:3px 6px; text-align:right">
|
|
|
- <?php if ($admin || $companyAdmin) : ?>
|
|
|
- <input type="text" style="text-align:right" class="form-control input-sm" name="price_<?= $idType; ?>" value="<?= $price; ?>"/>
|
|
|
- <?php else : ?>
|
|
|
- <?php echo number_format($price, 2, ',', ' '); ?>
|
|
|
- <?php endif; ?>
|
|
|
+ style="<?php if ($priceEditJs) : ?>cursor:pointer; <?php endif; ?>padding:3px 6px; text-align:right">
|
|
|
+ <?php if ($admin || $companyAdmin) : ?>
|
|
|
+ <input type="text" style="text-align:right" class="form-control input-sm" name="price_<?= $idType; ?>" value="<?= $price; ?>"/>
|
|
|
+ <?php else : ?>
|
|
|
+ <?php echo number_format($price, 2, ',', ' '); ?>
|
|
|
+ <?php endif; ?>
|
|
|
</td>
|
|
|
<td
|
|
|
<?php if ($priceEditJs) : ?>
|
|
|
@@ -1525,6 +1534,10 @@ SQL_FUN;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ $(function () {
|
|
|
+ $('[data-toggle="popover"]').popover()
|
|
|
+ })
|
|
|
+
|
|
|
})();
|
|
|
</script>
|
|
|
<?php endif; ?>
|