{* 	deed_edit.tpl
	
	Description:  Form for modifying existing deeds and creating new deeds.

	@author 	Matt Lindberg
	@created	02-24-2005
	@modified	02-28-2005
	
	Variable Dictionary

	$rightcolumntitle
	$formaction
	$deedid							- the integer id of a deed being edited
	$deedname
	$deeddesc
	$multicompletion
	$difficulty
	$gpoptions
	$gpguild3
	$gpguild2
	$gpguild1
	$gpquest3
	$gpquest2
	$gpquest1
	$gppvp3
	$gppvp2
	$gppvp1
	$editexisting					- "true" if the form is being used to edit a currently existing deed
	$backbuttonlink					- if set to string "false", the back button link will not be displayed
*}

{include file="header.tpl"}
{* Add Extra Left Column Content Starting Here *}

{* End Left Column Content *}
</div>


{* Start Right Column Content *}
<div id="rightcolumn">

{include file="actiontitle.tpl"}
{if $backbuttonlink != false}
<div id="backbutton"><a href="{$backbuttonlink}"">Back</a></div>
{/if}

{* Start Deed Edit Form *}
<form action="{$formaction}" method="POST">
<table>

<tr>
<td></td>
<th>Standard Attributes</th>
<td></td>
</tr>

<tr>
<td><label for="{$deedname->name}">Name</label></td>
<td colspan="2"><input type="text" name="{$deedname->name}" size="60" id="{$deedname->name}" value="{$deedname->value}" class="textFormInputBox"/></td>
</tr>

<tr>
<td><label for="{$deeddesc->name}">Description</label></td>
<td colspan="2"><textarea rows="5" cols="50" name="{$deeddesc->name}" id="{$deeddesc->name}" class="textFormInputBox">{$deeddesc->value}</textarea><br/>
</td>
</tr>

<tr>
<td><label for="{$difficulty->name}">Difficulty</label></td>
<td colspan="2">
<span>easy</span>
<input name="{$difficulty->name}" {if $difficulty->value eq easy}checked{/if}  type="radio" value="easy"/>&nbsp;
<span>medium</span>
<input name="{$difficulty->name}" {if $difficulty->value eq medium}checked{/if} type="radio" value="medium"/>&nbsp;
<span>hard</span>
<input name="{$difficulty->name}" {if $difficulty->value eq hard}checked{/if} type="radio" value="hard"/>&nbsp;
<span>epic</span>
<input name="{$difficulty->name}" {if $difficulty->value eq epic}checked{/if} type="radio" value="epic"/>
</td>
</tr>

<tr>
<td><label for="{$multicompletion->name}">Allow multiple completions?</label></td>
<td colspan="2">
<span>yes</span>
<input name="{$multicompletion->name}" {if $multicompletion->value eq 1}checked{/if}  type="radio" value="1"/>&nbsp;
<span>no</span>
<input name="{$multicompletion->name}" {if $multicompletion->value eq 0}checked{/if} type="radio" value="0"/>
</td>
</tr>

<tr>
<td></td>
<th>Deed Points</th>
<td></td>
</tr>

<tr>
<td><label>Guild</label></td>
<td colspan="2">
{html_options class=textFormInputBox name=$gpguild3->name options=$gpoptions selected=$gpguild3->value}
{html_options class=textFormInputBox name=$gpguild2->name options=$gpoptions selected=$gpguild2->value} 
{html_options class=textFormInputBox name=$gpguild1->name options=$gpoptions selected=$gpguild1->value}  
</td>
</tr>

<tr>
<td><label>Quest</label></td>
<td colspan="2">
{html_options class=textFormInputBox name=$gpquest3->name options=$gpoptions selected=$gpquest3->value}
{html_options class=textFormInputBox name=$gpquest2->name options=$gpoptions selected=$gpquest2->value} 
{html_options class=textFormInputBox name=$gpquest1->name options=$gpoptions selected=$gpquest1->value}
</td>
</tr>

<tr>
<td><label>PvP</label></td>
<td colspan="2">
{html_options class=textFormInputBox name=$gppvp3->name options=$gpoptions selected=$gppvp3->value}
{html_options class=textFormInputBox name=$gppvp2->name options=$gpoptions selected=$gppvp2->value} 
{html_options class=textFormInputBox name=$gppvp1->name options=$gpoptions selected=$gppvp1->value}
</td>
</tr>

<tr>
<td></td>
<td colspan="2"><input type="submit" name="Submit" value="Save" class="buttonSubmit"/></td>
</tr>
<input type="hidden" name="{$editexisting->name}" value="{$editexisting->value}"/>
<input type="hidden" name="{$deedid->name}" value="{$deedid->value}"/>

</table>
</form>
{* End Deed Edit Form *}


</div>
{include file="footer.tpl"}