add new properties to camp

This commit is contained in:
2021-04-15 19:11:33 +02:00
parent fed9986180
commit a304871aa3
6 changed files with 451 additions and 354 deletions

View File

@@ -1,7 +1,10 @@
<div class="form_wrapper">
<form method="post">
<input type="hidden" name="action" value="camp_create">
<div>
<label class="desc" for="camp_name">Tábor neve / típusa:</label>
<div><input type="text" name="camp_name" id="camp_name" required></div>
</div>
<div>
<label class="desc" for="camp_city">Helyszín:</label>
<div><input type="text" name="camp_city" id="camp_city" required></div>
@@ -39,28 +42,17 @@
</div>
</div>
<div>
<label class="desc" for="shuttles">Labda típus:</label>
<table>
{foreach $shuttle_array as $shuttle}
<tr>
<td><input type="checkbox" name="shuttles[]" value="{$shuttle->get_cst_id()}" class="coach_type"></td>
<td class="coach">{$shuttle->get_cst_name()}</td>
</tr>
{/foreach}
</table>
<label class="desc" for="camp_count">Létszám:</label>
<div><input type="number" name="camp_count" id="camp_count" min="1"></div>
</div>
<div>
<label class="desc" for="shuttles">Bejárás típusa:</label>
<table>
{foreach $accomodation_array as $accomodation}
<tr>
<td><input type="checkbox" name="accomodations[]" value="{$accomodation->get_cat_id()}" class="coach_type"></td>
<td class="coach">{$accomodation->get_cat_name()}</td>
</tr>
{/foreach}
</table>
<label class="desc" for="camp_price">Ár:</label>
<div><input type="number" name="camp_price" id="camp_price" min="0"></div>
</div>
<div>
<label class="desc" for="camp_info">Tábor információk:</label>
<div><textarea rows="7" name="camp_info" id="camp_info"></textarea></div>
</div>
<div>
<div>
<input class="button black" type="submit" value="Létrehozás">

View File

@@ -6,6 +6,10 @@
<input type="hidden" name="action" value="camp_update">
<input type="hidden" name="camp_id" value="{$camp->get_camp_id()}">
<div>
<label class="desc" for="camp_name">Tábor neve / típusa:</label>
<div><input type="text" name="camp_name" id="camp_name" value="{$camp->get_camp_name()}" required></div>
</div>
<div>
<label class="desc" for="camp_city">Helyszín:</label>
<div><input type="text" name="camp_city" id="camp_city" value="{$camp->get_camp_city()}" required></div>
@@ -43,28 +47,17 @@
</div>
</div>
<div>
<label class="desc" for="shuttles">Labda típus:</label>
<table>
{foreach $shuttle_array as $shuttle}
<tr>
<td><input type="checkbox" name="shuttles[]" value="{$shuttle->get_cst_id()}" class="coach_type" {if in_array($shuttle->get_cst_id(), $shuttles)}checked{/if}></td>
<td class="coach">{$shuttle->get_cst_name()}</td>
</tr>
{/foreach}
</table>
<label class="desc" for="camp_count">Létszám:</label>
<div><input type="number" min="1" name="camp_count" id="camp_count" value="{$camp->get_camp_count()}"></div>
</div>
<div>
<label class="desc" for="shuttles">Bejárás típusa:</label>
<table>
{foreach $accomodation_array as $accomodation}
<tr>
<td><input type="checkbox" name="accomodations[]" value="{$accomodation->get_cat_id()}" class="coach_type" {if in_array($accomodation->get_cat_id(), $accomodations)}checked{/if}></td>
<td class="coach">{$accomodation->get_cat_name()}</td>
</tr>
{/foreach}
</table>
<label class="desc" for="camp_price">Létszám:</label>
<div><input type="number" min="0" name="camp_price" id="camp_price" value="{$camp->get_camp_price()}"></div>
</div>
<div>
<label class="desc" id="title2" for="camp_info">Kapcsolat tartás:</label>
<div><textarea rows="7" name="camp_info" id="camp_info">{$camp->get_camp_info()}</textarea></div>
</div>
<div>
<div>
<input class="button black" type="submit" value="Mentés">