Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Commit

Permalink
add new functionnality external link
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-infotel committed Aug 2, 2019
1 parent d6020f4 commit 8b0c0d9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions inc/database.class.php
Expand Up @@ -391,6 +391,19 @@ function showForm($ID, $options = []) {
Dropdown::showYesNo('is_helpdesk_visible', $this->fields['is_helpdesk_visible']);
echo "</td>";

echo "</tr>";
echo "<tr class='tab_bg_1'>";

echo "<td>" . __('Link') . "</td>";
echo "<td>";
Html::autocompletionTextField($this, "link");
echo "&nbsp;<a target='_blank' href='".$this->getField("link")."'><i class=\"fas fa-link\"></i></a>";
echo "</td>";

echo "<td></td><td>";

echo "</td>";

echo "</tr>";

echo "<tr class='tab_bg_1'>";
Expand Down
1 change: 1 addition & 0 deletions sql/empty-2.2.2.sql
Expand Up @@ -13,6 +13,7 @@ CREATE TABLE `glpi_plugin_databases_databases` (
`manufacturers_id` INT(11) NOT NULL DEFAULT '0' COMMENT 'RELATION to glpi_manufacturers (id)',
`locations_id` INT(11) NOT NULL DEFAULT '0' COMMENT 'RELATION to glpi_locations (id)',
`comment` TEXT COLLATE utf8_unicode_ci,
`link` VARCHAR(255) NOT NULL DEFAULT '',
`is_helpdesk_visible` INT(11) NOT NULL DEFAULT '1',
`date_mod` DATETIME DEFAULT NULL,
`is_deleted` TINYINT(1) NOT NULL DEFAULT '0',
Expand Down
4 changes: 3 additions & 1 deletion sql/update-2.2.2.sql
@@ -1,3 +1,5 @@
ALTER TABLE `glpi_plugin_databases_databases`
CHANGE `groups_id_tech` `groups_id` INT(11) NOT NULL DEFAULT '0',
CHANGE `users_id_tech` `users_id` INT(11) NOT NULL DEFAULT '0';
CHANGE `users_id_tech` `users_id` INT(11) NOT NULL DEFAULT '0';

ALTER TABLE `glpi_plugin_databases_databases` ADD `link` VARCHAR(255) NOT NULL DEFAULT '' AFTER `comment`;

0 comments on commit 8b0c0d9

Please sign in to comment.