Location: PHPKode > projects > Work Tracker > work-tracker-0.1/themes/default/tpl/issues/new.tpl
<!-- Begin issues/new.tpl -->
<form method="post" action="?module=issues&action=new&gid={$smarty.get.gid}" enctype="multipart/form-data">
{opentable}
{titlebar colspan=2 title="New Work Item"}
{if group_over_limit($smarty.get.gid,"issues")}
<tr class="data" align="center"><td colspan="2">This group has reached their limit for number of issues.  Please contact the group administrator.</td></tr>
{else}
<tr>
<td class="label" width="20%" align="right" valign="top"><span class="required">*</span> Summary:</td>
<td class="data" width="80%"><input type="text" size="60" maxlength="250" name="summary" value="{$smarty.post.summary|replace:"\"":"'"|stripslashes}" /></td>
</tr>
<tr>
<td class="label" width="20%" align="right" valign="top"><span class="required">*</span> Problem:</td>
<td class="data" width="80%"><textarea cols="60" rows="10" name="problem">{$smarty.post.problem|stripslashes}</textarea></td>
</tr>
{if is_employee($smarty.session.userid)}
<tr>
<td class="label" width="20%" align="right" valign="top">Due Date:</td>
<td class="data" width="80%">{date_select name="duedate" value=$smarty.post.duedate}</td>
</tr>
{/if}
<tr>
<td class="label" width="20%" align="right" valign="top"><span class="required">*</span> Product:</td>
<td class="data" width="80%">
<select name="product">
<option value="">(Choose Product)</option>
{if is_array($products)}
{foreach from=$products key=pid item=product}
<option value="{$pid}"{if $pid eq $smarty.post.product or count($products) == 1} selected="selected"{/if}>{$product}</option>
{/foreach}
{/if}
</select>
</td>
</tr>
<tr>
<td class="label" width="20%" align="right" valign="top"><span class="required">*</span> Severity:</td>
<td class="data" width="80%">
<input type="radio" name="severity" value="4"{if $smarty.post.severity eq 4} selected="selected"{/if} />(Low)&nbsp;
<input type="radio" name="severity" value="3"{if $smarty.post.severity eq 3} selected="selected"{/if} />(Normal)&nbsp;
<input type="radio" name="severity" value="2"{if $smarty.post.severity eq 2} selected="selected"{/if} />(High)&nbsp;
<input type="radio" name="severity" value="1"{if $smarty.post.severity eq 1} selected="selected"{/if} />(Urgent)&nbsp;
</td>
</tr>
<tr>
<td class="label" width="20%" align="right" valign="top">Notify:</td>
<td class="data" width="80%">
<select name="notify[]" size="5" multiple="multiple">
{if is_array($members)}
{foreach from=$members key=userid item=username}
<option value="{$userid}">{$username}</option>
{/foreach}
{/if}
</select>
</td>
</tr>
{if permission_check("view_private",$smarty.get.gid)}
<tr>
<td class="label" width="20%" align="right" valign="top">Private:</td>
<td class="data" width="80%"><input type="checkbox" name="private"{if $smarty.post.private eq "on"} checked="checked"{/if} /></td>
</tr>
{/if}
{if permission_check("upload_files",$smarty.get.gid)}
<tr>
<td class="label" width="20%" align="right" valign="top">File:</td>
<td class="data" width="80%"><input type="file" name="upload" /></td>
</tr>
{/if}
<tr class="titlebar"><td colspan="2"><input type="submit" name="create" value="Create Work Item" /></td></tr>
{/if}
{closetable}
</form>
<div style="text-align: left; margin: 4px;"><span class="required">*</span> Denotes required field</div>
<!-- End issues/new.tpl -->

Return current item: Work Tracker