Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3475

Repeater header label doesn't support format informations

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.4.0
    • 4.4.0
    • None
    • None
    • 4.4 M5

      I would like a header label like this :

      Année {myDate:date("Y")}

      Where myDate is a datetime.
      But the format on date (and other types) is not supported. We should parse needed variables without the part after :.

      Ametys.form.ConfigurableFormPanel.Repeater = /\{([^\}\:]+)(\:[^\}]+)?\}/gi

          [RUNTIME-3475] Repeater header label doesn't support format informations

          Cédric Damioli made changes -
          Resolution New: Fixed [ 1 ]
          Sprint Original: 4.4 M5, 4.4 RC3 [ 51, 57 ] New: 4.4 M5 [ 51 ]
          Status Original: Feedback required [ 10000 ] New: Closed [ 6 ]
          Raphaël Franchet made changes -
          Assignee Original: Raphaël Franchet [ raphael ] New: Cédric Damioli [ cedric ]
          Status Original: In Progress [ 3 ] New: Feedback required [ 10000 ]
          Raphaël Franchet made changes -
          Attachment New: screenshot-2.png [ 23761 ]
          Raphaël Franchet made changes -
          Attachment New: screenshot-1.png [ 23760 ]
          Raphaël Franchet made changes -
          Status Original: Reopened [ 4 ] New: In Progress [ 3 ]
          Cédric Damioli made changes -
          Estimation Original: 1 - Easy [ 10219 ]
          Internal review Original: 2 - Long term [ 10217 ]
          Sprint Original: 4.4 M5 [ 51 ] New: 4.4 M5, 4.4 RC3 [ 51, 57 ]
          Cédric Damioli made changes -
          Assignee New: Raphaël Franchet [ raphael ]
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

          I have a repeater declared like following :

          <cms:repeater name="statistiques" initial-size="0">
              <cms:header-label>{type} - {date}</cms:header-label>	
          ...
          

          With type being an attribute of type 'content', and date an attribute of type 'datetime'

          The JS method #getReadableValue seems to be never called, and the date is never displayed in the header label

          Cédric Damioli added a comment - I have a repeater declared like following : <cms:repeater name= "statistiques" initial-size= "0" > <cms:header-label>{type} - {date}</cms:header-label> ... With type being an attribute of type 'content', and date an attribute of type 'datetime' The JS method #getReadableValue seems to be never called, and the date is never displayed in the header label
          Bérénice Maurel made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Raphaël Franchet made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Available for review [ 10005 ] New: Resolved [ 5 ]

            cedric Cédric Damioli
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: