Translations of crop traits
List of traits is now displayed in a tab of the Crop details page.
CropTrait page shows the translated title and description:
We can create/edit/remove CropTraits with existing UI.
Displaying translations
Several entities come with database-backed user-provided translations (i.e. cannot be hardcoded in translations of the software). The *Lang
entities (in this case CropTraitLang
and CropTraitCodeLang
) need to be displayed to the user and the user needs to be able to make edits.
One option is to add a tab named Translations that for the selected crop trait displays two tables (two sections):
- Table of all
CropTraitLang
for thisCropTrait
- Table of all
CropTraitCodeLang
for allCropTraitCode
s for thisCropTrait
Clicking on something in the table row should open a popup dialog to update title
and description
. The popup has "Update" and "Cancel" buttons.
Forms
Forms generally allow for specifying the title
and description
in the current language when creating a new entry. Editing an existing form should not show title
and description
.