оптимизация UI/UX

This commit is contained in:
RomanGolienko 2024-12-03 13:51:43 +03:00
parent fbb88422d0
commit 2881642d7d
1 changed files with 32 additions and 31 deletions

View File

@ -29,13 +29,28 @@
{if $des == 'show'} {if $des == 'show'}
<a href="/modul/attendancelog/" role="button" class="btn"> Вернуться </a> <a href="/modul/attendancelog/" role="button" class="btn"> Вернуться </a>
<div class="row-fluid"> <div class="row-fluid">
<div class="span8"> <div class="span12">
<div class="widget blue"> <div class="widget blue">
<div class="widget-title"> <div class="widget-title">
<h4><i class="icon-reorder"></i> Посещение группы {$groupName} </h4> <h4><i class="icon-reorder"></i> Посещение группы {$groupName} </h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span> <span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
</div> </div>
<div class="widget-body"> <div class="widget-body">
<form action="" method="post">
<label for="date_request">Выберите дату</label>
<input
type="date"
name="date_request"
id="date_request"
max="{$currentTime['date']}"
{if isset($smarty.post.date_request)}
value="{$smarty.post.date_request}"
{else}
value="{$currentTime.date}"
{/if}
>
<button type="submit" class="btn btn-success"> Найти</button>
</form>
{if $actionResult|count < 1} {if $actionResult|count < 1}
<h3> У группы нет пар в этот день!</h3> <h3> У группы нет пар в этот день!</h3>
{else} {else}
@ -44,6 +59,9 @@
({$actionResult.day_name}) ({$actionResult.day_name})
{if isset($smarty.post.date_request)} {if isset($smarty.post.date_request)}
{$smarty.post.date_request} {$smarty.post.date_request}
{if $smarty.post.date_request == $currentTime.date }
<span class="label label-success"> Сегодня!</span>
{/if}
{else} {else}
{$currentTime.date} {$currentTime.date}
<span class="label label-success"> Сегодня!</span> <span class="label label-success"> Сегодня!</span>
@ -62,7 +80,7 @@
{$class.predmet} {$class.predmet}
</a> </a>
</div> </div>
<div id="collapse_{$class.day1}-{$class.time1}" class="accordion-body collapse {if $key == $currentTime.time1 } in {/if}"> <div id="collapse_{$class.day1}-{$class.time1}" class="accordion-body collapse {if $key == $currentTime.time1 } in {/if}">
<div class="accordion-inner"> <div class="accordion-inner">
<form action="" method="post"> <form action="" method="post">
<table class="table table-striped"> <table class="table table-striped">
@ -78,14 +96,7 @@
<td>{$student}</td> <td>{$student}</td>
<td> <td>
<input type="hidden" name="attendance_add_edit[attendance][{$student}]" value="off"> <input type="hidden" name="attendance_add_edit[attendance][{$student}]" value="off">
<input type="hidden" name="attendance_add_edit[info][time1]" value="{$class.time1}">
<input type="hidden" name="attendance_add_edit[info][predmet]" value="{$class.predmet}">
<input type="hidden" name="attendance_add_edit[info][gruppa]" value="{$groupName}">
{if isset($smarty.post.date_request)}
<input type="hidden" name="attendance_add_edit[info][date]" value="{$smarty.post.date_request}">
{else}
<input type="hidden" name="attendance_add_edit[info][date]" value="{$currentTime.date}">
{/if}
<label for="{$student|replace:' ':''}{$key}"></label> <label for="{$student|replace:' ':''}{$key}"></label>
<input class="custom-checkbox" type="checkbox" name="attendance_add_edit[attendance][{$student}]" id="{$student|replace:' ':''}{$key}" {if $att == 'on'} checked {/if}> <input class="custom-checkbox" type="checkbox" name="attendance_add_edit[attendance][{$student}]" id="{$student|replace:' ':''}{$key}" {if $att == 'on'} checked {/if}>
@ -94,6 +105,15 @@
{/foreach} {/foreach}
</tbody> </tbody>
</table> </table>
<input type="hidden" name="attendance_add_edit[info][time1]" value="{$class.time1}">
<input type="hidden" name="attendance_add_edit[info][predmet]" value="{$class.predmet}">
<input type="hidden" name="attendance_add_edit[info][gruppa]" value="{$groupName}">
{if isset($smarty.post.date_request)}
<input type="hidden" name="attendance_add_edit[info][date]" value="{$smarty.post.date_request}">
{else}
<input type="hidden" name="attendance_add_edit[info][date]" value="{$currentTime.date}">
{/if}
<input type="hidden" name="date_request" value="{$smarty.post.date_request}">
<button type="submit" class="btn btn-success">Сохранить</button> <button type="submit" class="btn btn-success">Сохранить</button>
</form> </form>
</div> </div>
@ -111,26 +131,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="span4">
<div class="widget yellow">
<div class="widget-title">
<h4><i class="icon-reorder"></i> Календарь посещений группы {$groupName} </h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
</div>
<div class="widget-body">
<form action="" method="post">
<label for="date_request">Выберите дату</label>
<input
type="date"
name="date_request"
id="date_request"
max="{$currentTime['date']}"
>
<button type="submit" class="btn btn-success"> Найти</button>
</form>
</div>
</div>
</div>
</div> </div>
{else} {else}
<div class="row-fluid"> <div class="row-fluid">
@ -141,7 +142,7 @@
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span> <span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
</div> </div>
<div class="widget-body"> <div class="widget-body">
<a href="/modul/attendancelog/main/show/{$myGrupps['id']}/">{$myGrupps.sokr}</a>
</div> </div>
</div> </div>