camp modfications

This commit is contained in:
Ricsi
2017-06-16 20:49:46 +02:00
parent fa0e1a6488
commit f0d4bb9e7a
8 changed files with 25 additions and 19 deletions

View File

@@ -219,7 +219,7 @@
</tr>
</table>
<div>
<input id="submit_apply" class="button black middle" type="submit" value="Jelentkezés leadása">
<input id="submit_apply" class="button apply middle" type="submit" value="Jelentkezés leadása" disabled="disabled">
</div>
</form>
@@ -373,11 +373,10 @@ $("#cc_list").change(function() {
$("#accept_terms").change(function() {
if ($("#accept_terms").is(':checked')) {
$("#submit_apply").show();
$("#submit_apply").css('display', 'block');
$("#submit_apply").prop('disabled', false);
}
else {
$("#submit_apply").hide();
$("#submit_apply").prop('disabled', true);
}
});

View File

@@ -167,7 +167,7 @@
<td>
{$apply->get_capp_date()|substr:0:16}
</td>
<td style="color: {$color}; font-weight: bold;">
<td style="color: {if $apply->get_capp_status() == 'Elfogadva'}green{else}red{/if}; font-weight: bold;">
{$apply->get_capp_status()}
</td>
<td>

View File

@@ -29,7 +29,7 @@
<div class="list_item" {if $camp->has_pending_apply() || $camp->has_deleted_apply()}style="background-color: #ff9205;"{/if}>
<img src="/_image/camp.png">
{$camp->get_camp_from()|substr:0:4}.
{$months[$camp->get_camp_from()|date_format:"%m"]}. {$camp->get_camp_from()|date_format:"%e"}. -
{$months[$camp->get_camp_from()|date_format:"%m"]} {$camp->get_camp_from()|date_format:"%e"}. -
{if $camp->get_camp_from()|date_format:"%m" != $camp->get_camp_to()|date_format:"%m"}
{$months[$camp->get_camp_to()|date_format:"%m"]}.
{/if}
@@ -78,7 +78,11 @@ $( document ).ready(function() {
$( ".list" ).find( divs ).hide();
var div_list = $( ".list" ).find( divs );
open_block(div_list[0].id);
//open_block(div_list[0].id);
//alert(div_list.length);
for (var i = 0; i <= div_list.length - 1; i++) {
open_block(div_list[i].id);
}
});