<div class="form_wrapper">
	<form method="post">
	<div class="buttons">
		<a href="/admin/delete_school/{$school->get_sc_id()}" class="addbutton delete-big">Iskola törlése</a>
	</div>
		<input type="hidden" name="action" value="school_data_edit">
		<input type="hidden" name="sc_id" value="{$school->get_sc_id()}">
		
		<div>
			<label class="desc" for="sc_name">Név:</label>
			<div><input type="text" name="sc_name" id="sc_name" value="{$school->get_sc_name()}" required></div>
		</div>


		<div>
			<label class="desc" for="sc_school_city_scc_id">Iskola települése:</label>
			<div>
				<select name="sc_school_city_scc_id" id="sc_school_city_scc_id">
					<option value='null'>- nincs beállítva -</option>
					{foreach $school_cities as $scc}
					<option value='{$scc->get_scc_id()}'{if $scc->get_scc_id() == $school->get_sc_school_city_scc_id()} selected{/if}>{$scc->get_scc_city()}</option>
					{/foreach}
				</select>
			</div>
		</div>

		<div>
			<div>
		  		<input class="button black" type="submit" value="Mentés">
		    </div>
		</div>

	</form>
</div>


<script type="text/javascript">
	$( document ).ready(function() {
	    if (!$('#ua_can_login').attr('checked')) $("#password").hide();
	});

	$('#ua_can_login').click(function() {
	    $("#password").toggle(this.checked);
	});

</script>