- Added class label[udf-required=true]::after to skin/widgets.class

- Added attribute udf-required to tag label in the HTML components widges
This commit is contained in:
Paolo
2017-08-09 17:10:10 +02:00
parent 226eda73e5
commit d7bed89869
5 changed files with 20 additions and 4 deletions
+4 -1
View File
@@ -7,7 +7,10 @@
{
?>
<div class="div-cell-label valign-middle width-150px">
<label for="<?php echo ${Widget::HTML_ARG_NAME}[Widget::HTML_ID]; ?>">
<label
for="<?php echo ${Widget::HTML_ARG_NAME}[Widget::HTML_ID]; ?>"
<?php Widget::printAttribute(${Widget::HTML_ARG_NAME}, UDFWidget::REQUIRED); ?>
>
<?php echo ${Widget::HTML_ARG_NAME}[UDFWidgetTpl::LABEL]; ?>
</label>
</div>
+4 -1
View File
@@ -12,7 +12,10 @@
}
?>
<div class="div-cell width-150px <?php echo $align; ?>">
<label for="<?php echo ${Widget::HTML_ARG_NAME}[Widget::HTML_ID]; ?>">
<label
for="<?php echo ${Widget::HTML_ARG_NAME}[Widget::HTML_ID]; ?>"
<?php Widget::printAttribute(${Widget::HTML_ARG_NAME}, UDFWidget::REQUIRED); ?>
>
<?php echo ${Widget::HTML_ARG_NAME}[UDFWidgetTpl::LABEL]; ?>
</label>
</div>
+4 -1
View File
@@ -7,7 +7,10 @@
{
?>
<div class="div-cell width-150px valign-top">
<label for="<?php echo ${Widget::HTML_ARG_NAME}[Widget::HTML_ID]; ?>">
<label
for="<?php echo ${Widget::HTML_ARG_NAME}[Widget::HTML_ID]; ?>"
<?php Widget::printAttribute(${Widget::HTML_ARG_NAME}, UDFWidget::REQUIRED); ?>
>
<?php echo ${Widget::HTML_ARG_NAME}[UDFWidgetTpl::LABEL]; ?>
</label>
</div>
+4 -1
View File
@@ -7,7 +7,10 @@
{
?>
<div class="div-cell width-150px valign-middle">
<label for="<?php echo ${Widget::HTML_ARG_NAME}[Widget::HTML_ID]; ?>">
<label
for="<?php echo ${Widget::HTML_ARG_NAME}[Widget::HTML_ID]; ?>"
<?php Widget::printAttribute(${Widget::HTML_ARG_NAME}, UDFWidget::REQUIRED); ?>
>
<?php echo ${Widget::HTML_ARG_NAME}[UDFWidgetTpl::LABEL]; ?>
</label>
</div>
+4
View File
@@ -14,6 +14,10 @@
display: table-cell;
}
label[udf-required=true]::after {
content: "*";
}
.div-cell-data {
display: table-cell;
}