UI для выбора преподавателем или секретарем деканата старосты группы в системе

This commit is contained in:
RomanGolienko 2024-12-13 17:12:34 +03:00
parent b3ceee1515
commit b4345c1e55
1 changed files with 24 additions and 5 deletions

View File

@ -26,7 +26,7 @@
</div> </div>
</div> </div>
{if $des == 'headman_add_edit'} {if $des == 'add_edit'}
<div class="row-fluid"> <div class="row-fluid">
<div class="span3"> <div class="span3">
<div class="widget blue"> <div class="widget blue">
@ -40,7 +40,7 @@
<tbody> <tbody>
{foreach from=$facult_groups key=key item=group} {foreach from=$facult_groups key=key item=group}
<tr> <tr>
<td><a href="/modul/attendancelog/headman/add_edit/{$group['id']}?fo={$group['fo']}}/">{$group.sokr}</a></td> <td style="text-align: center"><a href="/modul/attendancelog/headman/add_edit/{$group['id']}/"> <h4>{$group.sokr}</h4></a></td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
@ -49,13 +49,32 @@
</div> </div>
</div> </div>
<div class="span9"> <div class="span9">
{if isset($headmanPageActionResult.headman) }
<div style="width: 100%; text-align: center"> <h3>Староста выбран(а)! <br>{$headmanPageActionResult.headman}</h3> </div>
{/if}
<div class="widget blue"> <div class="widget blue">
<div class="widget-title"> <div class="widget-title">
<h4><i class="icon-reorder"></i> Назначить старосту </h4> <h4><i class="icon-reorder"></i> Назначить старосту </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" {if isset($headmanPageActionResult.headman) } style="display: none" {/if}>
<h2>Выберите группу для назначения старосты в системе! <div> <--</div></h2> <form action="" method="post">
<table class="table table-striped table-bordered">
<caption><h4>{$headmanPageActionResult.current_group.sokr}</h4></caption>
<tbody>
{foreach from=$headmanPageActionResult.students key=user_id item=info}
<tr>
<td> <h5>{$info.student_name}</h5> </td>
<td style="min-width: 30%"><h5><input type="radio" name="headman_request" value="{$user_id}" {if $info.headman == 1} checked {/if}></h5></td>
</tr>
{/foreach}
</tbody>
</table>
<div class="" style="width: 100%; text-align: center">
<button type="submit" class="btn btn-success"> Сделать старостой</button>
</div>
</form>
</div> </div>
</div> </div>
</div> </div>
@ -74,7 +93,7 @@
<tbody> <tbody>
{foreach from=$facult_groups key=key item=group} {foreach from=$facult_groups key=key item=group}
<tr> <tr>
<td style="text-align: center"><a href="/modul/attendancelog/headman/add_edit/{$group['id']}?fo={$group['fo']}/"><h4>{$group.sokr}</h4></a></td> <td style="text-align: center"><a href="/modul/attendancelog/headman/add_edit/{$group['id']}/"><h4>{$group.sokr}</h4></a></td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>