From 59127b1bdc547616a1a175367e8843f9fdf3cadb Mon Sep 17 00:00:00 2001
From: Cyrille Giquello <Cyrille37@gmail.com>
Date: Fri, 26 Nov 2010 17:36:57 +0100
Subject: [PATCH] Add documentation about Time Tracking in sections 'admin.config.timetracking' and 'admin.project.timetracking'.
 It's a simple copy/paste from the Wiki.

---
 docbook/adminguide/en/configuration.sgml      |   72 +++++++++++++++++++++++++
 docbook/adminguide/en/project_management.sgml |   21 +++++++-
 2 files changed, 92 insertions(+), 1 deletions(-)

diff --git a/docbook/adminguide/en/configuration.sgml b/docbook/adminguide/en/configuration.sgml
index 0d096fe..5350c35 100644
--- a/docbook/adminguide/en/configuration.sgml
+++ b/docbook/adminguide/en/configuration.sgml
@@ -2953,4 +2953,76 @@
             </varlistentry>
         </variablelist>
     </section>
+
+		<section id="admin.config.timetracking">
+			<title>Time Tracking</title>
+
+			<variablelist>
+
+				<varlistentry>
+					<term>$g_time_tracking_enabled</term>
+					<listitem>
+						<para>
+							Turns Time Tracking features ON or OFF - Default ‘OFF’
+						</para>
+					</listitem>
+				</varlistentry>
+
+				<varlistentry>
+					<term>$g_time_tracking_without_note</term>
+					<listitem>
+						<para>
+							Allow time tracking to be recorded without writing some text in the associated bugnote - Default ‘ON’
+						</para>
+					</listitem>
+				</varlistentry>
+
+				<varlistentry>
+					<term>$g_time_tracking_with_billing</term>
+					<listitem>
+						<para>
+							Adds calculation links to workout how much time has been spent between a particular time frame. Currently it will allow you to enter a cost/hour and will work out some billing information. This will become more extensive in the future. Currently it is more of a proof of concept.
+						</para>
+					</listitem>
+				</varlistentry>
+
+				<varlistentry>
+					<term>$g_time_tracking_stopwatch</term>
+					<listitem>
+						<para>
+							Instead of a text field turning this option on places a stopwatch on the page with “Start/Stop” and “Reset” buttons next to it. You must have $g_use_javascript switched on for this to take effect. A bit gimickie, but who cares.
+						</para>
+					</listitem>
+				</varlistentry>
+
+				<varlistentry>
+					<term>$g_time_tracking_view_threshold</term>
+					<listitem>
+						<para>
+							Access level required to view time tracking information - Default DEVELOPER.
+						</para>
+					</listitem>
+				</varlistentry>
+
+				<varlistentry>
+					<term>$g_time_tracking_edit_threshold</term>
+					<listitem>
+						<para>
+							Access level required to add/edit time tracking information (If you give a user $g_time_tracking_edit_threshold you must give them $g_time_tracking_view_threshold aswell) - Default DEVELOPER.
+						</para>
+					</listitem>
+				</varlistentry>
+
+				<varlistentry>
+					<term>$g_time_tracking_reporting_threshold</term>
+					<listitem>
+						<para>
+							Access level required to run reports (not completed yet) - Default MANAGER.
+						</para>
+					</listitem>
+				</varlistentry>
+
+			</variablelist>
+    </section>
+
 </chapter>
diff --git a/docbook/adminguide/en/project_management.sgml b/docbook/adminguide/en/project_management.sgml
index b8b1441..51dc1a0 100644
--- a/docbook/adminguide/en/project_management.sgml
+++ b/docbook/adminguide/en/project_management.sgml
@@ -207,7 +207,26 @@ http://www.example.com/mantisbt/project_page.php?project_id=1
     <section id="admin.project.timetracking">
         <title>Time Tracking</title>
 
-        <para></para>
+        <para>
+					This is currently a work in progress. To follow the work have a look on the wiki page <ulink url="http://www.mantisbt.org/wiki/doku.php/mantisbt:issue:4428">Time Tracking (Issue 4428)</ulink>
+				</para>
+
+        <para>
+					To activate the Time Tracking feature you have to set the configuration option "time_tracking_enabled" to ON. To activating the Time Tracking you can :
+					<itemizedlist>
+						<listitem>
+							Static solution : change the variable '$g_time_tracking_enabled' in the configuration file 'config_defaults_inc.php', this will change the configuration for all the MantisBT instance ; 
+						</listitem>
+						<listitem>
+							Dynamic and "project by project" solution : Use the administration page "Manage Configuration" and set the variable 'time_tracking_enabled' to '1' for which user and which project of you choice.
+						</listitem>
+					</itemizedlist>
+				</para>
+		
+				<para>
+					All Time Tracking configuration options are described in the configuration section off this guide.
+				</para>
+				
     </section>
 
     <section id="admin.project.graphs">
-- 
1.7.3.1.msysgit.0

