This commit is contained in:
Ricsi
2016-12-15 23:27:55 +01:00
parent 08627484da
commit d458b996a4
46 changed files with 1138 additions and 386 deletions

View File

@@ -51,7 +51,7 @@
</div>
<div>
<label class="desc" id="title1" for="uk_address">Lakcím:</label>
<label class="desc" id="title1" for="uk_address">Lakhely (település):</label>
<div><input type="text" name="uk_address" id="uk_address" value="{$user_data.uk_address}"></div>
</div>
@@ -75,7 +75,7 @@
<div>
<label class="desc" id="title1" for="uk_email">Email cím:</label>
<label class="desc" id="title1" for="uk_email">E-mail cím:</label>
<div><input type="email" name="uk_email" id="uk_email" value="{$user_data.uk_email}"></div>
</div>
@@ -103,11 +103,17 @@
</div>
</div>
<div>
<label class="desc" id="title1" for="uk_shirt_note">Póló megjegyzés:</label>
<div><input type="text" name="uk_shirt_note" id="uk_shirt_note" value="{$user_data.uk_shirt_note}"></div>
</div>
<div>
<label class="desc" id="title1" for="uk_school_sc_id">Iskola neve:</label>
<div>
<select name="uk_school_sc_id" id="uk_school_sc_id">
<option value="null"> - </option>
<option value="null"> - (állítsd erre új iskola felvételéhez)</option>
{foreach $school_assoc_array as $school_array}
<option value="{$school_array.sc_id}"{if $school_array.sc_id == $user_data.uk_school_sc_id} selected{/if}>
{$school_array.sc_name}
@@ -117,6 +123,11 @@
</div>
</div>
<div class="add_school_block">
<label class="desc" id="title1" for="add_school">Új iskola felvétele:</label>
<div><input type="text" name="add_school" id="add_school"></div>
</div>
<div>
<label class="desc" id="title1" for="uk_school_city_scc_id">Iskola települése:</label>
<div>
@@ -137,10 +148,23 @@
<div><input type="text" name="uk_school_district" id="uk_school_district" value="{$user_data.uk_school_district}"></div>
</div>
<div>
<label class="desc" id="title1" for="uk_region_reg_id">Diákolimpia körzet:</label>
<div>
<select name="uk_region_reg_id" id="uk_region_reg_id">
<option value="null"> - </option>
{foreach $region_assoc_array as $region_array}
<option value="{$region_array.reg_id}"{if $region_array.reg_id == $user_data.uk_region_reg_id} selected{/if}>
{$region_array.reg_name}
</option>
{/foreach}
</select>
</div>
</div>
<div>
<label class="desc" id="title1" for="uk_parent_1">Szülő1:</label>
<label class="desc" id="title1" for="uk_parent_1">Szülő:</label>
<div>
<select name="uk_parent_1" id="uk_parent_1">
<option value="null"> - (állítsd erre új szülő felvételéhez)</option>
@@ -159,7 +183,7 @@
</div>
<div class="add_parent_1_block">
<label class="desc" id="title1" for="parent_1_email">Email címe:</label>
<label class="desc" id="title1" for="parent_1_email">E-mail cím:</label>
<div><input type="text" name="parent_1_email" id="parent_1_email"></div>
</div>
@@ -176,7 +200,7 @@
<div>
<label class="desc" id="title2" for="uk_parent_2">Szülő2:</label>
<label class="desc" id="title2" for="uk_parent_2">Szülő:</label>
<div>
<select name="uk_parent_2" id="uk_parent_2">
<option value="null"> - (állítsd erre új szülő felvételéhez)</option>
@@ -195,7 +219,7 @@
</div>
<div class="add_parent_2_block">
<label class="desc" id="title2" for="parent_2_email">Email címe:</label>
<label class="desc" id="title2" for="parent_2_email">E-mail cím:</label>
<div><input type="text" name="parent_2_email" id="parent_2_email"></div>
</div>
@@ -211,7 +235,21 @@
<br><br>
<br>
<div>
<label class="desc" id="title2" for="uk_contact">Kapcsolat tartás:</label>
<div><textarea rows="5" name="uk_contact" id="uk_contact">{$user_data.uk_contact}</textarea></div>
</div>
<br>
<div>
<label class="desc" id="title2" for="uk_other">Egyéb:</label>
<div><textarea rows="5" name="uk_other" id="uk_other">{$user_data.uk_other}</textarea></div>
</div>
<br>
<div>
@@ -230,6 +268,8 @@
else $(".add_parent_1_block").hide();
if ($("#uk_parent_2").val() == 'null') $(".add_parent_2_block").show();
else $(".add_parent_2_block").hide();
if ($("#uk_school_sc_id").val() == 'null') $(".add_school_block").show();
else $(".add_school_block").hide();
});
$('#uk_parent_1').change(function() {
@@ -240,4 +280,8 @@
$(".add_parent_2_block").toggle(this.value == 'null');
});
$('#uk_school_sc_id').change(function() {
$(".add_school_block").toggle(this.value == 'null');
});
</script>