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

@@ -1,23 +1,19 @@
<div class="form_wrapper">
<form method="post">
<input type="hidden" name="action" value="school_update">
<div class="buttons">
<a href="/admin/create/school" class="addbutton add-big">Új iksola hozzáadása</a>
</div>
{foreach $school_assoc_array as $school}
<div>
<div style="float: left;">
<input type="text" name="sc_{$school.sc_id}" id="sc_{$school.sc_id}" value="{$school.sc_name}">
<a href="/admin/delete_school/{$school.sc_id}" class="addbutton delete">Törlés</a>
</div>
</div>
<div class="buttons">
{/foreach}
<div>
<div style="float: left;">
<input class="button black" type="submit" value="Mentés">
</div>
<a href="/admin/create/school" class="addbutton add-big">Új iskola hozzáadása</a>
</div>
<div class="list wide">
{foreach $schools as $school}
<a href="/admin/schools/{$school->get_sc_id()}">
<div class="list_item">
<img src="/_image/school.png">
{$school->get_sc_name()}
{if $school->get_sc_school_city()}
({$school->get_sc_school_city()->get_scc_city()})
{/if}
</div>
</form>
</a>
{/foreach}
</div>