school and school_city class

user edit with parent edit included (ajax)
city and school connected
overview updated
This commit is contained in:
Ricsi
2017-01-12 22:59:36 +01:00
parent 9c7f678e74
commit 20781a0847
20 changed files with 617 additions and 184 deletions

View File

@@ -0,0 +1,46 @@
<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>