mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-06 06:39:27 +00:00
0ff635f5ea
- UDF for person and prestudent only - Added CSS for widgets - Fixed checkbox - Improved aesthetics of widgets
39 lines
1.2 KiB
PHP
39 lines
1.2 KiB
PHP
<?php Widget::printStartBlock(${Widget::HTML_ARG_NAME}); ?>
|
|
|
|
<div class="div-table">
|
|
<div class="div-row">
|
|
<?php
|
|
if (isset(${Widget::HTML_ARG_NAME}[UDFWidgetTpl::LABEL]))
|
|
{
|
|
?>
|
|
<div class="div-cell-label valign-middle width-150px">
|
|
<label for="<?php echo ${Widget::HTML_ARG_NAME}[Widget::HTML_ID]; ?>">
|
|
<?php echo ${Widget::HTML_ARG_NAME}[UDFWidgetTpl::LABEL]; ?>
|
|
</label>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
<div class="div-cell-data width-30px">
|
|
<input
|
|
type="checkbox"
|
|
<?php Widget::printAttribute(${Widget::HTML_ARG_NAME}, Widget::HTML_ID); ?>
|
|
<?php Widget::printAttribute(${Widget::HTML_ARG_NAME}, Widget::HTML_NAME); ?>
|
|
<?php Widget::printAttribute(${Widget::HTML_ARG_NAME}, UDFWidget::REQUIRED); ?>
|
|
<?php Widget::printAttribute(${Widget::HTML_ARG_NAME}, UDFWidgetTpl::REGEX); ?>
|
|
<?php Widget::printAttribute(${Widget::HTML_ARG_NAME}, UDFWidgetTpl::TITLE); ?>
|
|
<?php
|
|
$checked = '';
|
|
if (${CheckboxWidget::VALUE_FIELD} === true)
|
|
{
|
|
$checked = 'checked';
|
|
}
|
|
?>
|
|
<?php echo $checked; ?>
|
|
value="<?php echo CheckboxWidget::CHECKBOX_VALUE; ?>"
|
|
>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php Widget::printEndBlock(${Widget::HTML_ARG_NAME}); ?>
|