-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
83 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
if (!defined('GLPI_ROOT')) { | ||
die("Sorry. You can't access this file directly"); | ||
} | ||
|
||
class PluginYagpTicket extends CommonDBTM { | ||
|
||
static function postItemForm($params = []) { | ||
global $DB; | ||
|
||
$item = $params['item']; | ||
if (!is_array($item) && $item->getType() == Ticket::getType()) { | ||
$date = ($item->getID()) ? $item->fields['date'] : '' ; | ||
$script = <<<JAVASCRIPT | ||
$(document).ready(function() { | ||
console.log($("input[name='date']").parent()); | ||
$("input[name='date']").parent().parent().html("{$date}"); | ||
}); | ||
JAVASCRIPT; | ||
echo Html::scriptBlock($script); | ||
} | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: YAGP\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-07-24 12:06+0200\n" | ||
"POT-Creation-Date: 2021-10-07 11:13+0200\n" | ||
"PO-Revision-Date: 2020-07-27 09:12+0200\n" | ||
"Last-Translator: Milo Ivir <[email protected]>\n" | ||
"Language-Team: \n" | ||
|
@@ -20,13 +20,14 @@ msgstr "" | |
"X-Generator: Poedit 2.0.6\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: inc/config.class.php:45 inc/config.class.php:116 | ||
#: inc/config.class.php:45 inc/config.class.php:121 | ||
msgid "Yagp" | ||
msgstr "Yagp" | ||
|
||
#: inc/config.class.php:88 | ||
msgid "Change ticket solved date to last task end time" | ||
msgstr "Ändere das Schlussdatum des Tickets in die End-Zeit der letzten Aufgabe" | ||
msgstr "" | ||
"Ändere das Schlussdatum des Tickets in die End-Zeit der letzten Aufgabe" | ||
|
||
#: inc/config.class.php:93 | ||
msgid "Auto renew tacit contracts" | ||
|
@@ -40,6 +41,10 @@ msgstr "" | |
msgid "Go to ticket" | ||
msgstr "" | ||
|
||
#: inc/config.class.php:108 | ||
msgid "Block opening date" | ||
msgstr "" | ||
|
||
#: inc/contractrenew.class.php:5 | ||
msgid "YagpContractRenew" | ||
msgstr "Yagp Vetrag erneuern" | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: YAGP\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-07-24 12:06+0200\n" | ||
"POT-Creation-Date: 2021-10-07 11:13+0200\n" | ||
"PO-Revision-Date: 2020-07-27 09:11+0200\n" | ||
"Last-Translator: Milo Ivir <[email protected]>\n" | ||
"Language-Team: \n" | ||
|
@@ -21,7 +21,7 @@ msgstr "" | |
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" | ||
"%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" | ||
|
||
#: inc/config.class.php:45 inc/config.class.php:116 | ||
#: inc/config.class.php:45 inc/config.class.php:121 | ||
msgid "Yagp" | ||
msgstr "Yagp" | ||
|
||
|
@@ -41,6 +41,10 @@ msgstr "" | |
msgid "Go to ticket" | ||
msgstr "" | ||
|
||
#: inc/config.class.php:108 | ||
msgid "Block opening date" | ||
msgstr "" | ||
|
||
#: inc/contractrenew.class.php:5 | ||
msgid "YagpContractRenew" | ||
msgstr "Yagp obnovi ugovor" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# YAGP Glpi Plugin. | ||
# Copyright (C) 2020 TICgal | ||
# Copyright (C) 2021 TICgal | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# TICgal, 2020 | ||
# TICgal, 2021 | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-07-24 12:09+0200\n" | ||
"PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n" | ||
"POT-Creation-Date: 2021-10-07 11:13+0200\n" | ||
"PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=CHARSET\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: inc/config.class.php:45 inc/config.class.php:116 | ||
#: inc/config.class.php:45 inc/config.class.php:121 | ||
msgid "Yagp" | ||
msgstr "" | ||
|
||
|
@@ -37,6 +37,10 @@ msgstr "" | |
msgid "Go to ticket" | ||
msgstr "" | ||
|
||
#: inc/config.class.php:108 | ||
msgid "Block opening date" | ||
msgstr "" | ||
|
||
#: inc/contractrenew.class.php:5 | ||
msgid "YagpContractRenew" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters