You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2016-08-18 13:20:40

hadarisas
Member
Registered: 2016-08-18
Posts: 6

Solution Template

Good Day,

I am having trouble aplying a solution template to glpi

after adding a new solution template (contain a form) to glpi

viewer.php?id=877705capture.jpg

after fulfill the form in the solution template and click to save the solution, the forms become empty

Last edited by hadarisas (2016-08-18 13:23:21)

Offline

#2 2016-09-02 09:08:25

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: Solution Template

I don't understand your picture. It's not the standard solution form.
Do you use a plugin?
Which version of GLPI?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2016-09-02 09:25:47

hadarisas
Member
Registered: 2016-08-18
Posts: 6

Re: Solution Template

I'm not using any pluging
I'm just trying to add a new solution template using HTML Code
(Setup > Dropdowns > Assistance > Solution Templates)

Offline

#4 2016-09-02 09:55:59

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,146

Re: Solution Template

<input> in html form submit values but dont store them. so, on save input content are not save in db.

you can use a table instead :

<table>
<tbody>
<tr>
<td>item</td>
<td>value</td>
</tr>
<tr>
<td>name</td>
<td></td>
</tr>
<tr>
<td>diagnostic</td>
<td></td>
</tr>
<tr>
<td>action</td>
<td></td>
</tr>
</tbody>
</table>


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#5 2016-09-02 09:59:11

hadarisas
Member
Registered: 2016-08-18
Posts: 6

Re: Solution Template

yeah you are right I was using a form in HTML code
I will try to use a table and I will let you know the result
thank you

Offline

#6 2016-09-02 10:03:07

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,146

Re: Solution Template

it is quite tricky to save tables in the html editor -> i update my templates with phpmyadmin when i need tables.

UPDATE `glpi`.`glpi_solutiontemplates` SET `content` = '
<table>
<tbody>
<tr>
<td>item</td>
<td>value</td>
</tr>
<tr>
<td>name</td>
<td></td>
</tr>
<tr>
<td>diagnostic</td>
<td></td>
</tr>
<tr>
<td>action</td>
<td></td>
</tr>
</tbody>
</table>' WHERE `glpi_solutiontemplates`.`id` =4;


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#7 2016-09-02 10:16:43

hadarisas
Member
Registered: 2016-08-18
Posts: 6

Re: Solution Template

thank you I will try to change the style and size of the table

Offline

#8 2018-09-15 17:26:01

Tung Nguyen
Member
Registered: 2018-09-15
Posts: 1

Re: Solution Template

Hi Everyone,

Please help me support solution template as:
Arrive Time: <Get current date time with type DD/MM/YYYY HH:MM>
Leave Time: <Get current date time with type DD/MM/YYYY 00:00>
Root cause: The cable signal was cut at RJ 11 connector
Solution:
- Step 01: Replaced a new RJ11
- Step 02: MIC confirmed

Thanks smile

Offline

Board footer

Powered by FluxBB