Pop Erweiterung auf Adressen

This commit is contained in:
Daniel Spitzer
2026-02-20 11:36:25 +01:00
parent 4d518981fa
commit d8046f3b89
2 changed files with 9 additions and 3 deletions

View File

@@ -1312,10 +1312,10 @@ class PopController extends mfBaseController
$data['doku_date'] = ($r->doku_date) ? strtotime($r->doku_date) : null;
$data['note'] = $r->note;
$data['edit_by'] = 1;
// $data['edit_by'] = 1;
if ($mode == "add") {
$data['create_by'] = 1;
// $data['create_by'] = 1;
$pop = PopModel::create($data);
} else {
$pop->update($data);

View File

@@ -7,7 +7,7 @@ Vue.component('Pop', {
<tt-table :data="window['TT_CONFIG']['POPS']" :config="PopTableConfig" excel-export>
<template v-slot:top-buttons>
<button type="button" class="btn btn-primary" @click="window.location = window['TT_CONFIG']['BASE_URL'] + '/Pop/add'">
<button type="button" class="btn btn-primary" @click="window.location = window['TT_CONFIG']['BASE_URL'] + '/Pop/add?returnto=Pop'">
<i class="fas fa-plus"></i>
Pop hinzufügen
</button>
@@ -75,6 +75,12 @@ Vue.component('Pop', {
defaultPageSize: 25,
headers: [
{text: 'Name', key: 'name', priority: 10},
{text: 'Kategorie', key: 'category', class: 'text-center', priority: 4, filter: 'select', filterOptions: [
{value: '1', text: 'Outdoor (Kasten/Schrank)'},
{value: '2', text: 'Indoor (Keller Gebäude)'},
{value: '3', text: 'Sender/Funk (Sendemast)'},
{value: '4', text: 'Container (Garage, Container)'},
{value: '99', text: 'Unbekannt'}]},
{text: 'Netzgebiet', key: 'networkArea', class: 'text-center',
// TODO: fix autocomplete Filter
// filter: 'autocomplete',