To change the name of a character, select a player and choose a new name.<br/>
<span style="color: red">Change name cost {{ setting('core.account_change_character_name_price') }} {{ setting('core.donate_column') == 'coins' ? 'coins' : 'premium points' }}. You have {{ points }} {{ setting('core.donate_column') == 'coins' ? 'coins' : 'premium points' }}.</span><br/><br/>

{% set title = 'Change Name' %}
{% set background = config('darkborder') %}
{% set content %}
<table style="width:100%;" >
	<tr>
		<td class="LabelV">
			<label for="player_id">Character:</label>
		</td>
		<td style="width:90%;" >
			<select form="form" id="player_id" name="player_id">
				{% for player in account_logged.getPlayersList(false) %}
				<option value="{{ player.getId() }}">{{ player.getName() }}</option>
				{% endfor %}
			</select>
		</td>
	</tr>
	<tr>
		<td class="LabelV">
			<label for="character_name">New Name:</label>
		</td>
		<td>
			<input form="form" type="text" name="name" id="character_name" size="25" maxlength="25" >
			<img id="character_indicator" src="images/global/general/{% if not save or errors|length > 0 %}n{% endif %}ok.gif" />
			<br/>
			<span style="font-size: 10px">
				<div id="character_error">Please enter your character name.</div>
			</span>
		</td>
	</tr>
</table>
{% endset %}
{% include 'tables.headline.html.twig' %}
<br/>
<table style="width:100%" >
	<tr align="center">
		<td>
			<table border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td style="border:0;">
						<form id="form" action="{{ getLink('account/characters/change-name') }}" method="post">
							{{ csrf() }}
							<input type="hidden" name="changenamesave" value="1">
							{{ include('buttons.submit.html.twig') }}
						</form>
					</td>
				</tr>
			</table>
		</td>
		<td>
			<table border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td style="border:0;">
						<form action="{{ getLink('account/manage') }}" method="post">
							{{ csrf() }}
							{{ include('buttons.back.html.twig') }}
						</form>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<script type="text/javascript" src="tools/check_name.js"></script>
