Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-394

Fix i18n in nuxeo-data-table-form

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.1, 1.1.2
    • Fix Version/s: 1.0.2, 2.1.3
    • Component/s: UI

      Description

      The following does not work:

          <nuxeo-data-table role="widget" items="{{document.properties.toto:contact}}" orderable="true" editable="true">
            <nuxeo-data-table-column name="Name">
              <template>
                <div role="widget">[[item.name]]</div>
              </template>
            </nuxeo-data-table-column>
      
            <nuxeo-data-table-column name="Role">
              <template>
                <nuxeo-directory-suggestion role="widget" value="[[item.role]]" label="Role" readonly="true" directory-name="country"></nuxeo-directory-suggestion>
              </template>
            </nuxeo-data-table-column>
      
            <nuxeo-data-table-column name="Position">
              <template>
                <div role="widget">[[item.position]]</div>
              </template>
            </nuxeo-data-table-column>
      
            <nuxeo-data-table-form>
              <template>
                <nuxeo-input value="{{item.name}}" label="[[i18n('fox.name')]]" type="text"></nuxeo-input>
                <nuxeo-directory-suggestion value="{{item.role}}" label="[[i18n('fox.role')]]" directory-name="country"></nuxeo-directory-suggestion>
                <nuxeo-input value="{{item.position}}" label="[[i18n('fox.position')]]" type="text"></nuxeo-input>
              </template>
            </nuxeo-data-table-form>
          </nuxeo-data-table>
      

      The labels are blank (see screenshots).

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m