Added improvements for empty database

master
Thomas Hooge 2 years ago
parent cf27c1377c
commit 23b73a387b
  1. 2
      .gitignore
  2. 6
      lang/de.php
  3. 5
      lang/en.php
  4. 2
      tpl/asset.tpl
  5. 6
      tpl/assetclass.tpl
  6. 6
      tpl/assetclassgroup.tpl
  7. 6
      tpl/location.tpl
  8. 6
      tpl/node.tpl
  9. 6
      tpl/subnet.tpl
  10. 6
      tpl/vlan.tpl
  11. 6
      tpl/zone.tpl

2
.gitignore vendored

@ -0,0 +1,2 @@
*~
tpl_c/*.php

@ -88,6 +88,7 @@ $lang = array(
'lang_location_name' => 'Standortname', 'lang_location_name' => 'Standortname',
'lang_location_parent' => 'Übergeordneter Standort', 'lang_location_parent' => 'Übergeordneter Standort',
'lang_sublocation_add' => 'Unterstandort hinzufügen', 'lang_sublocation_add' => 'Unterstandort hinzufügen',
'lang_location_none' => 'Es sind keine Standorte vorhanden',
'lang_locationsubnet' => 'Standort/Subnetz', 'lang_locationsubnet' => 'Standort/Subnetz',
'lang_locationsubnet_edit' => 'Standort/Subnetz bearbeiten', 'lang_locationsubnet_edit' => 'Standort/Subnetz bearbeiten',
@ -96,6 +97,7 @@ $lang = array(
'lang_node_del' => 'Knoten löschen', 'lang_node_del' => 'Knoten löschen',
'lang_node_edit' => 'Knoten ändern', 'lang_node_edit' => 'Knoten ändern',
'lang_node_info' => 'Knoteninfo', 'lang_node_info' => 'Knoteninfo',
'lang_node_none' => 'Es sind keine Knoten vorhanden',
'lang_dns1' => 'DNS-Name', 'lang_dns1' => 'DNS-Name',
'lang_dns2' => 'DNS-Alias', 'lang_dns2' => 'DNS-Alias',
'lang_ip' => 'IP-Adresse', 'lang_ip' => 'IP-Adresse',
@ -128,6 +130,7 @@ $lang = array(
'lang_subnet_dhcpstart' => 'DHCP Anfang', 'lang_subnet_dhcpstart' => 'DHCP Anfang',
'lang_subnet_dhcpend' => 'DHCP Ende', 'lang_subnet_dhcpend' => 'DHCP Ende',
'lang_subnet_ntp_server' => 'NTP-Server', 'lang_subnet_ntp_server' => 'NTP-Server',
'lang_subnet_none' => 'Es sind keine Subnetze vorhanden',
'lang_subnetlocation' => 'Subnetz/Ort', 'lang_subnetlocation' => 'Subnetz/Ort',
'lang_subnetlocation_edit' => 'Subnetz/Ort bearbeiten', 'lang_subnetlocation_edit' => 'Subnetz/Ort bearbeiten',
@ -145,7 +148,7 @@ $lang = array(
'lang_zone_add' => 'Zone hinzufügen', 'lang_zone_add' => 'Zone hinzufügen',
'lang_zone_del' => 'Zone löschen', 'lang_zone_del' => 'Zone löschen',
'lang_zone_edit' => 'Zone bearbeiten', 'lang_zone_edit' => 'Zone bearbeiten',
'lang_zone_none' => 'Es sind keine Zonen vorhanden',
'lang_vlan_add' => 'VLAN hinzufügen', 'lang_vlan_add' => 'VLAN hinzufügen',
'lang_vlan_del' => 'VLAN löschen', 'lang_vlan_del' => 'VLAN löschen',
@ -154,6 +157,7 @@ $lang = array(
'lang_vlan_info' => 'VLAN Info', 'lang_vlan_info' => 'VLAN Info',
'lang_vlan_new' => 'VLAN Info', 'lang_vlan_new' => 'VLAN Info',
'lang_vlan_name' => 'VLAN Name', 'lang_vlan_name' => 'VLAN Name',
'lang_vlan_none' => 'Es sind keine VLANs vorhanden',
'lang_vlansubnet' => 'VLAN/Subnetz', 'lang_vlansubnet' => 'VLAN/Subnetz',
'lang_vlansubnet_edit' => 'VLAN/Subnetz bearbeiten', 'lang_vlansubnet_edit' => 'VLAN/Subnetz bearbeiten',

@ -88,6 +88,7 @@ $lang = array(
'lang_location_name' => 'Location name', 'lang_location_name' => 'Location name',
'lang_location_parent' => 'Parent', 'lang_location_parent' => 'Parent',
'lang_sublocation_add' => 'Add Sub-location', 'lang_sublocation_add' => 'Add Sub-location',
'lang_location_none' => 'There are no locations defined',
'lang_locationsubnet' => 'Location/Subnet', 'lang_locationsubnet' => 'Location/Subnet',
'lang_locationsubnet_edit' => 'Edit Location/Subnet', 'lang_locationsubnet_edit' => 'Edit Location/Subnet',
@ -96,6 +97,7 @@ $lang = array(
'lang_node_del' => 'Delete node', 'lang_node_del' => 'Delete node',
'lang_node_edit' => 'Modify node', 'lang_node_edit' => 'Modify node',
'lang_node_info' => 'Node info', 'lang_node_info' => 'Node info',
'lang_node_none' => 'There are no nodes defined',
'lang_dns1' => 'DNS name', 'lang_dns1' => 'DNS name',
'lang_dns2' => 'DNS Alias', 'lang_dns2' => 'DNS Alias',
'lang_ip' => 'IP Address', 'lang_ip' => 'IP Address',
@ -128,6 +130,7 @@ $lang = array(
'lang_subnet_dhcpstart' => 'DHCP Start', 'lang_subnet_dhcpstart' => 'DHCP Start',
'lang_subnet_dhcpend' => 'DHCP End', 'lang_subnet_dhcpend' => 'DHCP End',
'lang_subnet_ntp_server' => 'NTP Server', 'lang_subnet_ntp_server' => 'NTP Server',
'lang_subnet_none' => 'There are no subnets defined',
'lang_subnetlocation' => 'Subnet/Location', 'lang_subnetlocation' => 'Subnet/Location',
'lang_subnetlocation_edit' => 'Edit Subnet/Location', 'lang_subnetlocation_edit' => 'Edit Subnet/Location',
@ -144,6 +147,7 @@ $lang = array(
'lang_zone_add' => 'Add zone', 'lang_zone_add' => 'Add zone',
'lang_zone_del' => 'Delete zone', 'lang_zone_del' => 'Delete zone',
'lang_zone_edit' => 'Mofidy zone', 'lang_zone_edit' => 'Mofidy zone',
'lang_zone_none' => 'There are no zones defined',
'lang_vlan_add' => 'Add VLAN', 'lang_vlan_add' => 'Add VLAN',
'lang_vlan_del' => 'Delete VLAN', 'lang_vlan_del' => 'Delete VLAN',
@ -152,6 +156,7 @@ $lang = array(
'lang_vlan_info' => 'VLAN info', 'lang_vlan_info' => 'VLAN info',
'lang_vlan_new' => 'VLAN info', 'lang_vlan_new' => 'VLAN info',
'lang_vlan_name' => 'VLAN name', 'lang_vlan_name' => 'VLAN name',
'lang_vlan_none' => 'There are no VLANs defined',
'lang_user_language' => 'Language', 'lang_user_language' => 'Language',
'lang_vlansubnet' => 'VLAN/Subnet', 'lang_vlansubnet' => 'VLAN/Subnet',

@ -45,7 +45,7 @@
</tr> </tr>
{foreachelse} {foreachelse}
<tr> <tr>
<td colspan="2"> <td colspan="3">
{$lang_asset_none} {$lang_asset_none}
</td> </td>
</tr> </tr>

@ -27,5 +27,11 @@
<a href="assetclassgroupview.php?assetclassgroup_id={$assetclass.assetclassgroup_id}">{$assetclass.assetclassgroup_name}</a> <a href="assetclassgroupview.php?assetclassgroup_id={$assetclass.assetclassgroup_id}">{$assetclass.assetclassgroup_name}</a>
</td> </td>
</tr> </tr>
{foreachelse}
<tr>
<td colspan="3">
{$lang_assetclass_none}
</td>
</tr>
{/foreach} {/foreach}
</table> </table>

@ -22,5 +22,11 @@
<a href="assetclassgroupview.php?assetclassgroup_id={$assetclassgroup.assetclassgroup_id}">{$assetclassgroup.assetclassgroup_name}</a> <a href="assetclassgroupview.php?assetclassgroup_id={$assetclassgroup.assetclassgroup_id}">{$assetclassgroup.assetclassgroup_name}</a>
</td> </td>
</tr> </tr>
{foreachelse}
<tr>
<td>
{$lang_assetclassgroup_none}
</td>
</tr>
{/foreach} {/foreach}
</table> </table>

@ -18,8 +18,14 @@
</td> </td>
</tr> </tr>
<tr> <tr>
{if $locations}
<td class="value"> <td class="value">
{treelist tree=$locations} {treelist tree=$locations}
</td> </td>
{else}
<td class="value">
{$lang_location_none}
</td>
{/if}
</tr> </tr>
</table> </table>

@ -34,5 +34,11 @@
{$node.asset_info} {$node.asset_info}
</td> </td>
</tr> </tr>
{foreachelse}
<tr>
<td colspan="3">
{$lang_node_none}
</td>
</tr>
{/foreach} {/foreach}
</table> </table>

@ -33,5 +33,11 @@
{$subnet.subnet_info} {$subnet.subnet_info}
</td> </td>
</tr> </tr>
{foreachelse}
<tr>
<td colspan="3">
{$lang_subnet_none}
</td>
</tr>
{/foreach} {/foreach}
</table> </table>

@ -33,5 +33,11 @@
{$vlan.vlan_info} {$vlan.vlan_info}
</td> </td>
</tr> </tr>
{foreachelse}
<tr>
<td colspan="3">
{$lang_vlan_none}
</td>
</tr>
{/foreach} {/foreach}
</table> </table>

@ -34,5 +34,11 @@
{$zone.zone_serial} {$zone.zone_serial}
</td> </td>
</tr> </tr>
{foreachelse}
<tr>
<td colspan="3">
{$lang_zone_none}
</td>
</tr>
{/foreach} {/foreach}
</table> </table>