Skip to content

Commit

Permalink
bold i18n labels when required closes #330
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Feb 18, 2020
1 parent 6e6293b commit 353ce44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ In order to read more about upgrading and BC breaks have a look at the [UPGRADE
+ [#435](https://github.com/luyadev/luya-module-admin/issues/435) Problem when clicking on checkboxes when initvalue is true (active) state.
+ [#426](https://github.com/luyadev/luya-module-admin/issues/426) Fixed a bug where color plugin does not work when model is empty.
+ [#448](https://github.com/luyadev/luya-module-admin/issues/448) Added checking if the user is not a guest, for the 'view' action to work in $authOptional on Api Controllers
+ [#330](https://github.com/luyadev/luya-module-admin/issues/330) Mark required i18n fields with bold label, like none i18n fields.

## 2.4.1 (16. December 2019)

Expand Down
1 change: 1 addition & 0 deletions src/ngrest/render/RenderCrud.php
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ public function generatePluginHtml(array $element, $configContext)
'configContext' => $configContext,
'languages' => Lang::getQuery(),
'helpButtonHtml' => $this->createFieldHelpButton($element, $configContext),
'isRequired' => $this->getModel()->isAttributeRequired($element['name']),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/ngrest/_crudform_i18n_pluginhtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
?>
<div class="form-i18n" ng-class="{'has-field-help': getFieldHelp('<?= $element['name']; ?>')}">
<?= $helpButtonHtml; ?>
<label class="form-i18n-label">
<label class="form-i18n-label <?php if ($isRequired): ?>font-weight-bold<?php endif; ?>">
<?= $element['alias']; ?>
</label>
<div class="row">
Expand Down

0 comments on commit 353ce44

Please sign in to comment.