bugfix Buidling/Form
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="network_id">Netzgebiet</label>
|
||||
<div class="col-lg-10">
|
||||
<select class="select2 form-control " name="network_id" id="building_id">
|
||||
<select class="select2 form-control " name="network_id" id="network_id">
|
||||
<option></option>
|
||||
<?php foreach($networks as $network): ?>
|
||||
<option value="<?=$network->id?>" <?=($building->network_id == $network->id) ? "selected='selected'" : ""?>><?=($network->name)?></option>
|
||||
|
||||
47
contrib/migrations/2021-07-13-building.sql
Normal file
47
contrib/migrations/2021-07-13-building.sql
Normal file
@@ -0,0 +1,47 @@
|
||||
CREATE TABLE `Building` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`network_id` int(11) NOT NULL,
|
||||
`pop_id` int(11) NOT NULL,
|
||||
`type_id` int(11) NOT NULL,
|
||||
`status_id` int(11) NOT NULL,
|
||||
`pipeworker_id` int(11) DEFAULT NULL,
|
||||
`code` varchar(16) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`oan_id` varchar(8) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`street` varchar(1024) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`zip` varchar(1024) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`city` varchar(1024) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`gps_lat` decimal(15,10) NOT NULL,
|
||||
`gps_long` decimal(15,10) NOT NULL,
|
||||
`contact` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`phone` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`email` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`units` int(11) NOT NULL,
|
||||
`description` text COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`note` text COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`create_by` int(11) NOT NULL,
|
||||
`edit_by` int(11) NOT NULL,
|
||||
`create` int(11) NOT NULL,
|
||||
`edit` int(11) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
|
||||
|
||||
CREATE TABLE `Buildingstatus` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`code` int(11) NOT NULL,
|
||||
`name` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`create_by` int(11) NOT NULL,
|
||||
`edit_by` int(11) NOT NULL,
|
||||
`create` int(11) NOT NULL,
|
||||
`edit` int(11) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
|
||||
|
||||
CREATE TABLE `Buildingtype` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
||||
`create_by` int(11) NOT NULL,
|
||||
`edit_by` int(11) NOT NULL,
|
||||
`create` int(11) NOT NULL,
|
||||
`edit` int(11) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
|
||||
Reference in New Issue
Block a user