-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Evarisk/develop
1.0.0
- Loading branch information
Showing
38 changed files
with
2,022 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: 'Generate Auto Changelog' | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
master: | ||
name: 'build' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
- name: Generate Auto Changelog | ||
uses: Evarisk/action-auto-changelog@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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 @@ | ||
# Generated binaries | ||
/build/*.zip | ||
/bin/*.zip | ||
# Doxygen generated documentation | ||
/build/doxygen/doxygen_warnings.log | ||
/doc/code/doxygen | ||
# Composer managed dependencies | ||
/vendor | ||
/dev/bin | ||
# PHPdocumentor generated files | ||
/build/phpdoc | ||
/doc/code/phpdoc | ||
# Sphinx generated files | ||
/doc/user/build | ||
/.settings/ | ||
/.buildpath | ||
/.project | ||
# Other | ||
*.back | ||
/.editorconfig | ||
/.gitattributes | ||
node_modules | ||
package-lock.json |
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,2 +1,53 @@ | ||
# gmao | ||
GMAO pour Dolibarr - CMMS for dolibarr | ||
# GMAO sur [DOLIBARR ERP CRM](https://dolibarr.org) | ||
|
||
## Informations | ||
|
||
- Numéro du module : 436312 | ||
- Dernière mise à jour : 19/02/2024 | ||
- Éditeur : [Evarisk](https://evarisk.com) | ||
- Thème : Eldy Menu | ||
- Licence : GPLv3 | ||
- Disponible sur : Windows - MacOS - Linux | ||
|
||
### Version | ||
|
||
- Version : 1.0.0 | ||
- PHP : 7.4.33 | ||
- Compatibilité : Dolibarr 16.0.0 - 18.0.4 | ||
- Saturne Framework : 1.3.0 | ||
|
||
## Liens | ||
|
||
- Support & Assistance : [Forum dolibarr.fr](https://dolibarr.fr) / Par mail à [email protected] | ||
- Demo : [Demo GMAO](https://demodoli.digirisk.com) - ID: demo - Password: demo | ||
- Documentation : [Wiki GMAO](https://wiki.dolibarr.org/index.php/Module_GMAO) | ||
- Projet Github : [Projet GMAO](https://github.com/Evarisk/GMAO/projects?query=is%3Aopen) | ||
- Saturne Framework : [Télécharger Saturne](https://dolistore.com/fr/modules/1906-Saturne.html) | ||
- D'autres modules développés par Evarisk disponible sur [Dolistore.com](https://dolistore.com) | ||
|
||
## Fonctionnalités | ||
|
||
- Gestion de maintenance au travers des tickets | ||
|
||
## Traduction | ||
|
||
- Français | ||
- Anglais | ||
|
||
## Installation | ||
|
||
### Méthode 1 : | ||
|
||
- Depuis le menu "Déployer/Installer un module externe" de Dolibarr : | ||
- Glisser l'archive ZIP 'module_gmao-X.Y.Z' et cliquer sur "ENVOYER FICHIER" | ||
- Glisser l'archive ZIP 'module_saturne-X.Y.Z' et cliquer sur "ENVOYER FICHIER" | ||
- Activer le module dans la liste des Modules/Applications installés | ||
|
||
### Méthode 2 : | ||
|
||
- Dans le dossier "dolibarr/htdocs/custom" copier la ligne suivante : | ||
``` | ||
git clone https://github.com/Evarisk/gmao.git | ||
git clone https://github.com/Evarisk/saturne.git | ||
``` | ||
- Activer le module dans la liste des Modules/Applications installés |
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,2 @@ | ||
<?php | ||
//Silence is golden |
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,123 @@ | ||
<?php | ||
/* Copyright (C) 2024 EVARISK <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** | ||
* \file admin/setup.php | ||
* \ingroup gmao | ||
* \brief GMAO setup page | ||
*/ | ||
|
||
// Load GMAO environment | ||
if (file_exists('../gmao.main.inc.php')) { | ||
require_once __DIR__ . '/../gmao.main.inc.php'; | ||
} elseif (file_exists('../../gmao.main.inc.php')) { | ||
require_once __DIR__ . '/../../gmao.main.inc.php'; | ||
} else { | ||
die('Include of gmao main fails'); | ||
} | ||
|
||
// Load Dolibarr libraries | ||
require_once DOL_DOCUMENT_ROOT . '/core/lib/admin.lib.php'; | ||
|
||
// Load GMAO libraries | ||
require_once __DIR__ . '/../lib/gmao.lib.php'; | ||
|
||
// Global variables definitions | ||
global $conf, $db, $langs, $user; | ||
|
||
// Load translation files required by the page | ||
saturne_load_langs(); | ||
|
||
// Get parameters | ||
$action = GETPOST('action', 'alpha'); | ||
$backtopage = GETPOST('backtopage', 'alpha'); | ||
|
||
// Security check - Protection if external user | ||
$permissionToRead = $user->rights->gmao->adminpage->read; | ||
saturne_check_access($permissionToRead); | ||
|
||
/* | ||
* Actions | ||
*/ | ||
|
||
if ($action == 'update') { | ||
$proposalServiceID = GETPOST('proposalService', 'int'); | ||
dolibarr_set_const($db, 'GMAO_PROPOSAL_SERVICE_ID', $proposalServiceID, 'integer', 0, '', $conf->entity); | ||
|
||
setEventMessage('SavedConfig'); | ||
header('Location: ' . $_SERVER['PHP_SELF']); | ||
exit; | ||
} | ||
|
||
/* | ||
* View | ||
*/ | ||
|
||
$title = $langs->trans('ModuleSetup', 'GMAO'); | ||
$help_url = 'FR:Module_GMAO'; | ||
|
||
saturne_header(0,'', $title, $help_url); | ||
|
||
// Subheader | ||
$linkBack = '<a href="' . ($backtopage ?: DOL_URL_ROOT . '/admin/modules.php?restore_lastsearch_values=1') . '">' . $langs->trans('BackToModuleList') . '</a>'; | ||
print load_fiche_titre($title, $linkBack, 'title_setup'); | ||
|
||
// Configuration header | ||
$head = gmao_admin_prepare_head(); | ||
print dol_get_fiche_head($head, 'settings', $title, -1, 'gmao_color@gmao'); | ||
|
||
// Proposal service | ||
print load_fiche_titre($langs->transnoentities('Service'), '', 'service'); | ||
|
||
print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '" name="proposal_service_form">'; | ||
print '<input type="hidden" name="token" value="' . newToken() . '">'; | ||
print '<input type="hidden" name="action" value="update">'; | ||
print '<table class="noborder centpercent">'; | ||
print '<tr class="liste_titre">'; | ||
print '<td>' . $langs->transnoentities('Name') . '</td>'; | ||
print '<td>' . $langs->transnoentities('Service') . '</td>'; | ||
print '</tr>'; | ||
|
||
// Proposal service | ||
print '<tr class="oddeven"><td><label for="proposalService">' . $langs->transnoentities('ProposalService') . '</label></td><td>'; | ||
print img_picto('', 'service', 'class="pictofixedwidth"'); | ||
$form->select_produits((GETPOSTISSET('proposalService') ? GETPOST('proposalService', 'int') : getDolGlobalInt('GMAO_PROPOSAL_SERVICE_ID')), 'proposalService', 1, 0, 0, -1, 2, '', 0, [], 0, '1', 0, 'maxwidth500 widthcentpercentminusxx'); | ||
print '<a href="' . DOL_URL_ROOT . '/product/card.php?action=create&type=1&backtopage=' . urlencode(DOL_URL_ROOT . '/custom/gmao/admin/setup.php?proposalService=__ID__') . '"> <span class="fa fa-plus-circle valignmiddle" title="' . $langs->transnoentities('AddService') . '"></span></a>'; | ||
print '</td></tr>'; | ||
|
||
print '</table>'; | ||
print '<div class="tabsAction"><input type="submit" class="butAction" name="save" value="' . $langs->trans('Save') . '"></div>'; | ||
print '</form>'; | ||
|
||
$constArray['gmao'] = [ | ||
'EnableTicketProposal' => [ | ||
'name' => 'EnableTicketProposal', | ||
'description' => 'EnableTicketProposalDescription', | ||
'code' => 'GMAO_ENABLE_TICKET_PROPOSAL', | ||
], | ||
'EnableTicketProposalGMAO' => [ | ||
'name' => 'EnableTicketProposalGMAO', | ||
'description' => 'EnableTicketProposalGMAODescription', | ||
'code' => 'GMAO_ENABLE_TICKET_PROPOSAL_GMAO', | ||
] | ||
]; | ||
require __DIR__ . '/../../saturne/core/tpl/admin/object/object_const_view.tpl.php'; | ||
|
||
// Page end | ||
print dol_get_fiche_end(); | ||
$db->close(); | ||
llxFooter(); |
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,2 @@ | ||
### Changelog | ||
|
Oops, something went wrong.