Feature #4449
Pourvoir modifier le texte de Maintenance
Status: | Closed | Start date: | 08/22/2013 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | ddurieux | % Done: | 100% | |
Category: | - | |||
Target version: | Plugin_monitoring 0.84+1.1 |
Description
Pourvoir modifier le texte de Maintenance uniquement si nous en somme l'auteur
History
#1 Updated by Jm0u over 8 years ago
in front/acknowledge.form.php
modify line 52 to :
if (isset($_POST['add']) ||isset($_POST['update']) ) {
add line 66:
if (isset($_GET['form'])) { $pmService->formAcknowledge($_GET['form']); }
in inc/display.class
add line 736 :
echo "<a href='".$CFG_GLPI['root_doc']."/plugins/monitoring/front/acknowledge.form.php?form=".$data['id']."'>"; echo $data['acknowledge_comment']."</a>";
in inc/service.class.php
add function in line 943
/** * Form to modify acknowledge on a service */ function formAcknowledge($id) { global $CFG_GLPI; if ($this->getFromDB($id)) { echo "<form name='form' method='post' action='".$CFG_GLPI['root_doc']."/plugins/monitoring/front/acknowledge.form.php'>"; echo "<table class='tab_cadre_fixe'>"; echo "<tr class='tab_bg_1'>"; echo "<th colspan='2'>"; echo __('Add an acknowledge for service', 'monitoring')." : ".$this->fields['name']; echo "</td>"; echo "</tr>"; echo "<tr class='tab_bg_1'>"; echo "<td>"; echo _n('User', 'Users', 1)." :"; echo "</td>"; echo "<td>"; $user = new User(); $user->getFromDB($this->fields['acknowledge_users_id']); echo $user->getName(1); echo "</td>"; echo "</tr>"; echo "<tr class='tab_bg_1'>"; echo "<td>"; echo __('Comments'); echo "</td>"; echo "<td>"; echo "<textarea cols='80' rows='4' name='acknowledge_comment' >".$this->fields['acknowledge_comment']."</textarea>"; echo "</td>"; echo "</tr>"; echo "<tr class='tab_bg_1'>"; echo "<td colspan='2' align='center'>"; echo "<input type='hidden' name='id' value='".$id."' />"; echo "<input type='hidden' name='is_acknowledged' value='1' />"; echo "<input type='hidden' name='referer' value='".$_SERVER['HTTP_REFERER']."' />"; echo "<input type='submit' name='update' value=\"".__('Update')."\" class='submit'>"; echo "</td>"; echo "</tr>"; echo "</table>"; Html::closeForm(); } }
#2 Updated by Jm0u over 8 years ago
- Assignee set to ddurieux
- Target version set to Plugin_monitoring 0.84+1.1
- % Done changed from 0 to 80
Possible de mettre la modification dans la prochaine release
#3 Updated by ddurieux over 8 years ago
- Status changed from New to Closed
- % Done changed from 80 to 100