{assign var="page_title" value="Questbaustein bearbeiten"}
{assign var="page_title_long" value="Mitglieder Bereich &raquo; Questbausteine bearbeiten &raquo; Questbaustein bearbeiten"}
{assign var="page_title_site" value="Questbaustein bearbeiten"}

{form_errors error_list=$form_errors}
<form method="post" action="qbausteine.php">
    <input type="hidden" name="sid" value="{$SID_SHORT}" />
    <input type="hidden" name="editlist" value="{$formvalues.editlist}" />
    <table>
        <tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Questbaustein bearbeiten</th>
        </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Name</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="name" size="30" maxlength="40" class="input_form" value="{$formvalues.name}" /></td>
	    	<td></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Vorgänger</b></td>
	        <td bgcolor="{$style.bg_b}">
				<select name="vorgaenger" class="list_form">
                    <option value="">Keiner</option>
					{html_options options=$lists selected=$formvalues.vorgaenger}
                </select>
			</td>
	    	<td></td>
	    </tr>
		<tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Aktion</b></td>
	        <td bgcolor="{$style.bg_a}">
				<select name="aktion" class="list_form">
                    <option value="NurSprache">Nur Sprache</option>
					<option value="GibItems"{if $formvalues.aktion=="GibItems"} selected="selected"{/if}>Gib Items</option>
					<option value="NimmItems"{if $formvalues.aktion=="NimmItems"} selected="selected"{/if}>Nimm Items</option>
					<option value="GibUndNimmItems"{if $formvalues.aktion=="GibUndNimmItems"} selected="selected"{/if}>Gib und nimm Items</option>
                </select>
			</td>
	    	<td></td>
	    </tr>
		<tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Trigger</b></td>
	        <td bgcolor="{$style.bg_b}"><input type="text" name="trigger" size="30" maxlength="50" class="input_form" value="{$formvalues.trigger}" /></td>
	    	<td></td>
	    </tr>
		<tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Trigger-Satz</b></td>
	        <td bgcolor="{$style.bg_a}"><textarea name="trigger_satz" cols="40" class="input_form" rows="6">{$formvalues.trigger_satz}</textarea></td>
	    	<td></td>
	    </tr>
		<tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Vorgänger-nicht-erfüllt Satz</b></td>
	        <td bgcolor="{$style.bg_a}"><textarea name="vorgaenger_nicht_erfuellt_satz" cols="40" class="input_form" rows="6">{$formvalues.vorgaenger_nicht_erfuellt_satz}</textarea></td>
	    	<td></td>
	    </tr>
		<tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Gib-Items-nicht-vorhanden Satz</b></td>
	        <td bgcolor="{$style.bg_b}"><textarea name="gib_items_nicht_vorhanden_satz" cols="40" class="input_form" rows="6">{$formvalues.gib_items_nicht_vorhanden_satz}</textarea></td>
	    	<td></td>
	    </tr>
    </table>
    <br />
    <input type="submit" name="send_form" class="button_form" value="Ãndern..." />
</form>