<div class="table-responsive">
	<table class="table table-bordered">
		<tbody>
			<tr id="active{id}" class="{class}">
				<td>Активность</td>
				<td>
					{if('{active}' == '2')}
						<button id="on_{id}" onclick="start_srote({id});" class="btn btn-default" type="button">
							Разблокировать ({pirce} тг)
						</button>
					{else}
						{if('{pause}' != '0')}
							<font class="text-warning">Приостановлен</font>
						{else}
							<font class="text-success">Активен</font>
						{/if}
					{/if}
				</td>
			</tr>
			<tr>
				<td>Тип</td>
				<td>
					<div class="input-group">
						<span class="input-group-btn">
							<button {if('{active}' != '2')}onclick="edit_srote({id}, 'type');"{/if} class="btn btn-default" type="button" {disabled}>Изменить</button>
						</span>
						<span class="input-group-btn w-100">
							<select class="form-control" id="store_type_{id}" onchange="local_change_admin_type({id});" {disabled}>
								{if('{peg_1}' != '2')}<option {if('{type}' == 'a')} selected {/if} value="1">Ник + пароль</option>{/if}
								{if('{peg_2}' != '2')}<option {if('{type}' == 'ce')} selected {/if} value="2">STEAM ID</option>{/if}
								{if('{peg_3}' != '2')}<option {if('{type}' == 'ca')} selected {/if} value="3">STEAM ID + пароль</option>{/if}
							</select>
						</span>
					</div>
				</td>
			</tr>
			<tr id="input_name{id}">
				<td>Ник/SteamID</td>
				<td>
					<div class="input-group">
						<span class="input-group-btn">
							<button {if('{active}' != '2')}onclick="edit_srote({id}, 'name');"{/if} class="btn btn-default" type="button" {disabled}>Изменить</button>
						</span>
						<span class="input-group-btn w-100">
							<input id="player_name_{id}" type="text" maxlength="32" value="{name}" class="form-control" {disabled}>
						</span>
					</div>
				</td>
			</tr>
			<tr id="input_pass{id}">
				<td>Пароль</td>
				<td>
					<div class="input-group">
						<span class="input-group-btn">
							<button {if('{active}' != '2')}onclick="edit_srote({id}, 'pass');"{/if} class="btn btn-default" type="button" {disabled}>Изменить</button>
						</span>
						<span class="input-group-btn w-100">
							<input id="player_pass_{id}" type="text" maxlength="32" value="{pass}" class="form-control w-100" {disabled}>
						</span>
					</div>
				</td>
			</tr>
		</tbody>
	</table>
</div>

<script>local_change_admin_type({id});</script>

<h4 class="modal-title">Услуги</h4>
<div class="table-responsive mb-0">
	<table class="table table-bordered admins_services">
		<thead>
			<tr>
				<td>#</td>
				<td>Услуга</td>
				<td>Флаги/Группа</td>
				<td>Дата покупки</td>
				<td>Дата окончания</td>
				<td>Осталось</td>
			</tr>
		</thead>
		<tbody id="admins_services{id}">
			{services}
		</tbody>
	</table>
</div>