Pop Feature Erweiterungen

* Project 8454 (Erweiterung Felder Status, Speicherort, Dokustand Datum)
* Schrank breite um 1ne Col verbreitert
* neue Migration
This commit is contained in:
Daniel Spitzer
2025-05-11 19:53:31 +02:00
parent 14bcb7b3c2
commit 09aaede76b
6 changed files with 117 additions and 12 deletions
+38 -3
View File
@@ -10,9 +10,13 @@ if (isset($_GET['returnto']) && $_GET['returnto'] == "pop-detail") {
$cancelUrl = self::getUrl("Network");
}
?>
<link href="<?= self::getResourcePath() ?>assets/css/datatables-std.css?<?= date('U') ?>" rel="stylesheet"
<link href="<?= self::getResourcePath() ?>assets/css/datatables-std.css?<?= $git_merge_ts ?>" rel="stylesheet"
type="text/css"/>
<link href="<?= self::getResourcePath() ?>assets/css/select2-cstm.css?<?= $git_merge_ts ?>" rel="stylesheet"
type="text/css"/>
<!-- start page title -->
<style>
</style>
<div class="row">
<div class="col-12">
<div class="page-title-box">
@@ -139,6 +143,35 @@ if (isset($_GET['returnto']) && $_GET['returnto'] == "pop-detail") {
<div class="card">
<div class="card-body">
<div class="form-group row">
<label class="col-lg-2 col-form-label" for="state">Status</label>
<div class="col-lg-3">
<select class="select2 form-control " name="state"
id="state">
<option value="">&nbsp;</option>
<?php foreach ($stateArray as $key => $value): ?>
<option value="<?= $key ?>" <?= ($key == $pop->state) ? "selected='selected'" : "" ?>><?= $value ?></option>
<?php endforeach; ?>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-lg-2 col-form-label" for="note">Dokustand</label>
<div class="col-lg-2">
<input type="date"
min="<?php //($pop->doku_date) ? date("Y-m-d", $pop->doku_date) : "" ?>"
value="<?= ($pop->doku_date) ? date("Y-m-d", $pop->doku_date) : "" ?>"
class="form-control" name="doku_date" id="doku_date">
</div>
</div>
<div class="form-group row">
<label class="col-lg-2 col-form-label" for="folder_link">Fotospeicherort</label>
<div class="col-lg-4">
<input type="text"
value="<?= ($pop->folder_link) ? : "" ?>"
class="form-control" name="folder_link" id="folder_link">
</div>
</div>
<div class="form-group row">
<label class="col-lg-2 col-form-label" for="note">Interne Notiz</label>
<div class="col-lg-10">
@@ -146,6 +179,7 @@ if (isset($_GET['returnto']) && $_GET['returnto'] == "pop-detail") {
rows="5"><?= $pop->note ?></textarea>
</div>
</div>
</div>
</div>
@@ -183,7 +217,8 @@ if (isset($_GET['returnto']) && $_GET['returnto'] == "pop-detail") {
$('form').on('blur', 'input[type=number]', function (e) {
$(this).off('wheel.disableScroll')
});
$(".select2").select2();
$(".select2").select2({
});
// network_id // owner_id
@@ -191,7 +226,7 @@ if (isset($_GET['returnto']) && $_GET['returnto'] == "pop-detail") {
const urlParams = new URLSearchParams(window.location.search);
const network_id = urlParams.get('network_id');
if(network_id) {
if (network_id) {
console.log("network_id", network_id);
$("#owner_id").val(network_id).trigger('change');
}