added camp leader view, camp list with kids
This commit is contained in:
@@ -115,7 +115,7 @@
|
||||
{$apply->get_capp_camp_id()->get_camp_to()|date_format:"%e"}.
|
||||
</div>
|
||||
</div>
|
||||
{if $page == 'admin' || $page == 'taborvezeto'}
|
||||
{if $page != "tabor"}
|
||||
<div class="list_item">
|
||||
<label class="desc">
|
||||
<img src="/_image/person.png">
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
<a href="/admin/deny_apply/{$apply->get_capp_id()}"><img src="/_image/delete.png"></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href='mailto:{$apply->get_responsible_contact()->get_cc_email()}?subject=Tollaslabda tábor {$camp->get_camp_from()|substr:0:4}.{$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}{$camp->get_camp_to()|date_format:"%e"}.
|
||||
<a href='mailto:{$apply->get_responsible_contact()->get_cc_email()}?subject=Tollaslabda tábor {$camp->get_camp_from()|substr:0:4}. {$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}{$camp->get_camp_to()|date_format:"%e"}.
|
||||
&body=Kedves {$apply->get_responsible_contact()->get_cc_name()}!'>{$apply->get_responsible_contact()->get_cc_email()}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -148,7 +148,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<h1 class="apply">Visszaigazolt jelentkezések ({count($apply_array)} fő)</h1>
|
||||
<h1 class="apply">Visszaigazolt jelentkezések ({count($camp->get_camp_applies())} fő)</h1>
|
||||
<div class="outer">
|
||||
<table class="apply_table">
|
||||
<tr>
|
||||
|
||||
65
template/templates/camp_details.tpl
Normal file
65
template/templates/camp_details.tpl
Normal file
@@ -0,0 +1,65 @@
|
||||
<div class="list full_width camp_list">
|
||||
{foreach $camps as $camp}
|
||||
|
||||
<span onclick="block_action('camp_'+{$camp->get_camp_id()})" class="date_separator clickable">
|
||||
{$camp->get_camp_from()|substr:0:4}.
|
||||
{$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}
|
||||
{$camp->get_camp_to()|date_format:"%e"}., {$camp->get_camp_type()->get_ct_name()}
|
||||
|
||||
|
||||
({$camp->get_camp_city()})
|
||||
<img src="/_image/open_folder.png">
|
||||
<div class="float_right">
|
||||
{count($camp->get_camp_applies())} fő
|
||||
</div>
|
||||
</span>
|
||||
|
||||
<div id="camp_{$camp->get_camp_id()}" class="month_block">
|
||||
{foreach $camp->get_camp_applies() as $apply}
|
||||
|
||||
<a href="/{if $page == 'admin'}admin{else}taborvezeto{/if}/{if $page == 'admin'}apply{else}jelentkezes{/if}/{$apply->get_capp_id()}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/person.png">
|
||||
{$apply->get_capp_camp_kid_ck_id()->get_ck_name()}
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
function open_block(block_id) {
|
||||
$("#"+block_id).slideDown("slow");
|
||||
}
|
||||
|
||||
function close_block(block_id) {
|
||||
$("#"+block_id).slideUp("slow");
|
||||
}
|
||||
|
||||
function block_action(block_id) {
|
||||
if ($("#"+block_id).is(':hidden')) {
|
||||
open_block(block_id);
|
||||
}
|
||||
else {
|
||||
close_block(block_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$( document ).ready(function() {
|
||||
var divs = $( "div[class=month_block]" );
|
||||
$( ".list" ).find( divs ).hide();
|
||||
var div_list = $( ".list" ).find( divs );
|
||||
|
||||
//open_block(div_list[0].id);
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
@@ -3,6 +3,8 @@
|
||||
<a href="/admin/create/camp" class="addbutton add-big">Új tábor létrehozása</a>
|
||||
<a href="/admin/camp_types" class="addbutton add-big">Tábor típusok</a>
|
||||
<a href="/admin/camp_shirt_type" class="addbutton add-big">Pólók</a>
|
||||
<a href="/admin/camp_user" class="addbutton add-big">Táborvezetők</a>
|
||||
<a href="/admin/camp_details" class="addbutton add-big">Turnus lista</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list full_width">
|
||||
|
||||
@@ -50,6 +50,8 @@
|
||||
{$log->get_log_user()->get_uk_name()}
|
||||
{elseif $log->get_log_category()->get_logc_type() == 3}
|
||||
{$log->get_log_user()->get_cu_email()}
|
||||
{elseif $log->get_log_category()->get_logc_type() == 4}
|
||||
{$log->get_log_user()->get_ucl_name()}
|
||||
{/if}
|
||||
</td>
|
||||
<td>{$log->get_log_category()->get_logc_title()}</td>
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
{$user_login->get_uk_name()}
|
||||
{elseif $page == 'tabor'}
|
||||
{$user_login->get_cu_email()}
|
||||
{elseif $page == 'taborvezeto'}
|
||||
{$user_login->get_ucl_name()}
|
||||
{/if}
|
||||
</span>
|
||||
</li>
|
||||
@@ -25,7 +27,7 @@
|
||||
|
||||
{else}
|
||||
|
||||
<li class="login"><a href="/{$page}">{if $page == 'tabor'}Tollaslabda táborok 2017. nyár{else}Badminton Coach{/if}</a></li>
|
||||
<li class="login"><a href="/{$page}">{if $page == 'tabor' || $page == 'taborvezeto'}Tollaslabda táborok 2017. nyár{else}Badminton Coach{/if}</a></li>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -39,6 +41,8 @@
|
||||
{$user_login->get_uk_name()}
|
||||
{elseif $page == 'tabor'}
|
||||
{$user_login->get_cu_email()}
|
||||
{elseif $page == 'taborvezeto'}
|
||||
{$user_login->get_ucl_name()}
|
||||
{/if}
|
||||
</span>
|
||||
<img src="/_image/logout{if $page == 'view' || $page == 'preview'}_blue{/if}.png">
|
||||
|
||||
22
template/templates/user_camp_leader_create.tpl
Normal file
22
template/templates/user_camp_leader_create.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" value="user_camp_leader_create">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ucl_name">Név:</label>
|
||||
<div><input type="text" name="ucl_name" id="ucl_name" required></div>
|
||||
</div>
|
||||
|
||||
<div id="password">
|
||||
<label class="desc" id="title1" for="ucl_password">Jelszó:</label>
|
||||
<div><input type="password" name="ucl_password" id="ucl_password"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Létrehozás">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
26
template/templates/user_camp_leader_data_edit.tpl
Normal file
26
template/templates/user_camp_leader_data_edit.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<div class="buttons">
|
||||
<a href="/admin/delete_camp_leader/{$user->get_ucl_id()}" class="addbutton delete-big">Táborvezető törlése</a>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="user_camp_leader_update">
|
||||
<input type="hidden" name="ucl_id" value="{$user->get_ucl_id()}">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ucl_name">Név:</label>
|
||||
<div><input type="text" name="ucl_name" id="ucl_name" value="{$user->get_ucl_name()}" required></div>
|
||||
</div>
|
||||
|
||||
<div id="password">
|
||||
<label class="desc" id="title1" for="ucl_password">Jelszó:</label>
|
||||
<div><input type="password" name="ucl_password" id="ucl_password"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<input class="button black" type="submit" value="Mentés">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
17
template/templates/user_camp_leader_list.tpl
Normal file
17
template/templates/user_camp_leader_list.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class="buttons">
|
||||
|
||||
<a href="/admin/create/user_camp_leader" class="addbutton add-big">Új táborvezető hozzáadása</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="list">
|
||||
{foreach $ucl_array as $ucl}
|
||||
<a href="/admin/camp_user/{$ucl->get_ucl_id()}">
|
||||
<div class="list_item">
|
||||
<img src="/_image/person.png">
|
||||
{$ucl->get_ucl_name()}
|
||||
</div>
|
||||
</a>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user