Optional. Give your stage an easily indentifiable name

{if $cStage->isFirstStage() || $cStage->data.phase_id eq 0}

{if $cStage->hasStarted()}
{/if} {* *}{* *} at {* *}{*      to*} {if isset($stageData.before) || isset($stageData.after)}{* The disabled form elements will not be sent, so we'll sent this too *}{/if} {if $cStage->hasStarted()}
{* *}{* *} at {* *}{*      to*} {/if}

The date that this phase will begin at.{if isset($stageData.before)} This is based on the start time of the phase that you're inserting this one in front of.{elseif isset($stageData.after)} This is based on the end time of the previous phase{/if}

{else}{* *}{* *}{/if}

{if $cStage->data.phase_enddate eq '0101-01-01 00:00:00'} {assign var=visualEndDate value=$cStage->data.phase_startdate} {else} {assign var=visualEndDate value=$cStage->data.phase_enddate} {/if} {if isset($stageData.before)} {else} {/if} {if $cStage->isLastStage()}

Last phase continues indefinitely (unless another is added after it)

{else} days, hours and minutes

The amount of time the phase will run for.{if isset($stageData.before)} When you save the phase, the other phases will be moved ahead to make room for this one.{/if}

{/if}
{*
This stage will last for
*}
{*{if $cStage->data.phase_id eq 0}

Move preceding stages earlier in time
Push successive stages later in time
{/if}*}
{if !$cStage->hasFinished()} {*if $cStage->hasStarted()} This phase has already started - some settings are now disabled {/if*} {if strtotime($cStage->data.phase_startdate)>time()+5 && !$cStage->isFirstStage()} {/if} {else} This phase has ended and cannot be modified {/if}