Add description to IncidentStatus

Adds a new column to the IncidentStatus to permit the user to explain
why the status change was made. Also exported this and Incident data
into the demo sql file.
This commit is contained in:
2011-12-20 01:06:00 +00:00
parent 4766786ee2
commit 6e5bb3dfd8
4 changed files with 23 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ class StatusBoard_IncidentStatus extends StatusBoard_DatabaseObject {
protected $_db_id;
protected $_db_incident;
protected $_db_status;
protected $_db_description;
protected $_db_ctime;
protected function all_for_incident(StatusBoard_Incident $incident) {

View File

@@ -72,6 +72,7 @@
<thead>
<th>Date/Time</th>
<th>Status</th>
<th>Description</th>
</thead>
<tbody>
{foreach from=$statuses item=status}
@@ -81,6 +82,7 @@
<em>{$status->ctime|date_format:'y-m-d h:i:s'}</em>
</td>
<td>{StatusBoard_Status::name($status->status)}</td>
<td>{$status->description|escape:html}</td>
</tr>
{/foreach}
</tbody>