{assign var="page_title" value="Bewerbungs-Status bearbeiten"}
{assign var="page_title_long" value="Mitglieder Bereich &raquo; Bewerbungen bearbeiten &raquo; Bewerbung bearbeiten"}
{assign var="page_title_site" value="Bewerbung bearbeiten"}

<b>URL zum ansehen für Developer und höher:</b><br />
{$application.viewurl}

<form method="post" action="applications_admin.php">
    <input type="hidden" name="sid" value="{$SID_SHORT}" />
    <input type="hidden" name="edit" value="{$application.applicationID}" />
    <table>
        <tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Benutzerangaben</th>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_a}"><b>Name</b></td>
            <td bgcolor="{$style.bg_a}">{$application.name}</td>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_b}"><b>eMail-Adresse</b></td>
            <td bgcolor="{$style.bg_b}"><a href="mailto:{$application.email}">{$application.email}</a></td>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_a}"><b>ICQ-Nummer (optional)</b></td>
            <td bgcolor="{$style.bg_a}">{if isset( $application.icq ) }{$application.icq}{else}{$application.icq2}{/if}</td>
        </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Alter</b></td>
	        <td bgcolor="{$style.bg_b}">{$application.age}</td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Bereich</b></td>
	        <td bgcolor="{$style.bg_a}">
                {$user->groups[$application.group]}
	        </td>
   		</tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Erfahrungen auf anderen Shards</b></td>
	        <td bgcolor="{$style.bg_b}">
            	{$application.experiences|stripslashes|nl2br}
            </td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Zeit pro Woche/Tag</b></td>
	        <td bgcolor="{$style.bg_a}">{$application.time|stripslashes|nl2br}</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Gewünschtes Aufgabengebiet</b></td>
	        <td bgcolor="{$style.bg_b}">{$application.workarea|stripslashes|nl2br}</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Was du unter RP verstehst</b></td>
	        <td bgcolor="{$style.bg_a}">{$application.rpg|stripslashes|nl2br}</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Tolkien-Wissen</b></td>
	        <td bgcolor="{$style.bg_b}">{$application.tolkien|stripslashes}</td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Weshalb du mitarbeiten möchtest</b></td>
	        <td bgcolor="{$style.bg_a}">
            	{$application.why|stripslashes|nl2br}
            </td>
	    </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Nachricht</b></td>
	        <td bgcolor="{$style.bg_b}">
            	{$application.message|stripslashes|nl2br}
			</td>
	    </tr>
    </table>
    <br />
    <table>
        <tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Änderungen</th>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_a}"><b>Bewerbungs-Status</b></td>
            <td bgcolor="{$style.bg_a}">
            	<select name="state" class="list_form">
                	<option value="waiting"{if $application.state == 'waiting'} selected="selected"{/if}>Wartend</option>
                	<option value="staffler"{if $application.state == 'staffler'} selected="selected"{/if}>Staffler (angenommen)</option>
                    <option value="rejected"{if $application.state == 'rejected'} selected="selected"{/if}>Abgelehnt</option>
                    <option value="self-rejected"{if $application.state == 'self-rejected'} selected="selected"{/if}>Zurückgezogen</option>
                    <option value="leaved"{if $application.state == 'leaved'} selected="selected"{/if}>Staff verlassen</option>
                </select>
            </td>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_b}"><b>Kommentar</b></td>
            <td bgcolor="{$style.bg_b}">
            	<textarea name="comment" class="input_form" rows="8" cols="60">{$application.comment|stripslashes}</textarea>
            </td>
        </tr>
        <tr>
            <td align="right" bgcolor="{$style.bg_a}"><b>Andere Bewerbungen des Benutzers</b></td>
            <td bgcolor="{$style.bg_a}">
            	{foreach from=$oapps item=app}
                <a href="applications_admin.php?edit={$app.applicationID}&amp;{$SID}">{$app.date|date_format:"%d.%m.%Y"} [{$app.state}]</a><br />
                {/foreach}
            </td>
        </tr>
    </table>
    <br />
    <input type="submit" value="Daten speichern" name="send_form" class="button_form" />
</form>