created coach site
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
<div class="form_wrapper">
|
||||
<form method="post">
|
||||
<div class="buttons">
|
||||
<a href="/admin/delete_coach/{$user_data.ua_id}" class="addbutton delete-big">Edző törlése</a>
|
||||
<a href="/admin/delete_coach/{$coach->get_ua_id()}" class="addbutton delete-big">Edző törlése</a>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="coach_data_edit">
|
||||
<input type="hidden" name="ua_id" value="{$user_data.ua_id}">
|
||||
<input type="hidden" name="ua_id" value="{$coach->get_ua_id()}">
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ua_name">Név:</label>
|
||||
<div><input type="text" name="ua_name" id="ua_name" value="{$user_data.ua_name}" required></div>
|
||||
<div><input type="text" name="ua_name" id="ua_name" value="{$coach->get_ua_name()}" required></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="ua_can_login">Be tud lépni:</label>
|
||||
<div><input type="checkbox" name="ua_can_login" id="ua_can_login" {if $user_data.ua_password != ''}checked{/if}></div>
|
||||
<label class="desc" id="title1" for="ua_can_login">Admin:</label>
|
||||
<div><input type="checkbox" name="ua_admin" id="ua_admin" {if $coach->get_ua_admin()}checked{/if}></div>
|
||||
</div>
|
||||
|
||||
<div id="password">
|
||||
@@ -29,16 +29,4 @@
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
if (!$('#ua_can_login').attr('checked')) $("#password").hide();
|
||||
});
|
||||
|
||||
$('#ua_can_login').click(function() {
|
||||
$("#password").toggle(this.checked);
|
||||
});
|
||||
|
||||
</script>
|
||||
</div>
|
||||
77
template/templates/coach_diary.tpl
Normal file
77
template/templates/coach_diary.tpl
Normal file
@@ -0,0 +1,77 @@
|
||||
<div class="list half_width">
|
||||
{foreach $trainings as $training}
|
||||
{if
|
||||
$training@first ||
|
||||
(
|
||||
$trainings[$training@index]->get_tr_date()|substr:5:2 != $trainings[$training@index-1]->get_tr_date()|substr:5:2
|
||||
)
|
||||
|
||||
}
|
||||
{if !$training@first &&
|
||||
$trainings[$training@index]->get_tr_date()|substr:5:2 != $trainings[$training@index-1]->get_tr_date()|substr:5:2
|
||||
}
|
||||
</div>
|
||||
{/if}
|
||||
<span onclick="block_action('block_{$training->get_tr_date()|substr:0:4}{$training->get_tr_date()|substr:5:2}');" class="date_separator clickable">{$trainings[$training@index]->get_tr_date()|substr:0:4}.
|
||||
{$months[$trainings[$training@index]->get_tr_date()|substr:5:2]} ({$user_login->get_training_count_in_month($training->get_tr_date()|substr:0:4,$training->get_tr_date()|substr:5:2)})
|
||||
<img src="/_image/open_folder.png">
|
||||
</span>
|
||||
<div id="block_{$training->get_tr_date()|substr:0:4}{$training->get_tr_date()|substr:5:2}" class="month_block">
|
||||
{/if}
|
||||
<div class="list_item line_height14 bigger_space">
|
||||
<span class="size20 bold">
|
||||
{$training->get_tr_date()|substr:0:4}.
|
||||
{$months[$trainings[$training@index]->get_tr_date()|substr:5:2]}
|
||||
{$training->get_tr_date_day()}.
|
||||
{$days[$training->get_tr_date_day_of_week()]}
|
||||
{$training->get_tr_date_time()}
|
||||
</span>
|
||||
<br>
|
||||
{if $training->get_tr_training_type_trt_id()}{$training->get_tr_type_name_by_id()} edzés{/if}
|
||||
{$training->get_tr_duration()} p
|
||||
{if $training->is_coach()}
|
||||
{foreach $training->get_tr_coaches_name() as $coach_name}
|
||||
{if $coach_name@first}({/if}{$coach_name}{if $coach_name@last}){else}, {/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
|
||||
</div>
|
||||
{if $training@last}
|
||||
</div>
|
||||
{/if}
|
||||
{/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>
|
||||
@@ -2,6 +2,7 @@
|
||||
<form method="post">
|
||||
<input type="hidden" name="action" id="action" value="login">
|
||||
<input type="hidden" name="user_type" id="user_type" value="1">
|
||||
<input type="hidden" name="page" id="page" value="{$page}">
|
||||
<div>
|
||||
<label class="desc" id="title1" for="user_name">Név:</label>
|
||||
<div><input type="text" name="user_name" id="user_name" required></div>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
Menü ≡
|
||||
</a>
|
||||
<span class="mobile_logout">
|
||||
{if $page == 'admin'}
|
||||
{if $page == 'admin' || $page == 'coach'}
|
||||
{$user_login->get_ua_name()}
|
||||
{else}
|
||||
{$user_login->get_uk_name()}
|
||||
@@ -31,7 +31,7 @@
|
||||
<li class="logout">
|
||||
<a href="{if $page == 'preview'}#{else}/{$page}/logout{/if}">
|
||||
<span class="name">
|
||||
{if $page == 'admin'}
|
||||
{if $page == 'admin' || $page == 'coach'}
|
||||
{$user_login->get_ua_name()}
|
||||
{else}
|
||||
{$user_login->get_uk_name()}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="danger">
|
||||
|
||||
Változás, téves vagy hiányzó adat esetén a helyes információt e-mail-ben kérjük megadni: <a href="mailto:szucs.zoltan@interware.hu?subject={$user_login->get_uk_name()}">szucs.zoltan@interware.hu</a>
|
||||
Változás, téves vagy hiányzó adat esetén a helyes információt e-mail-ben kérjük megadni: <a href="mailto:szucs.zoltan@tollaslabda.info?subject={$user_login->get_uk_name()}">szucs.zoltan@tollaslabda.info</a>
|
||||
|
||||
</div>
|
||||
<div class="list">
|
||||
|
||||
Reference in New Issue
Block a user