Announcement

Collapse
No announcement yet.

Shared Calendar View - Display entity with avatar only

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Shared Calendar View - Display entity with avatar only

    I tried modifying "..\client\modules\crm\src\views\calendar\calendar .js" because I want to do two things:

    - Have the event entity title appear as "<user avatar> <military format time> <event entity name>" in the calendar
    - I want the time to be in military time format without the am/pm

    I butchered an example below:
    Click image for larger version  Name:	calendar_display.jpg Views:	1 Size:	12.9 KB ID:	38621

    The idea is that I want more space in the calendar. Displaying the user avatar and name on a second line is making the shared calendar very busy.

    I was able to remove line 681 to disable the second line on the calendar but that's not really what I want.. I couldn't figure-it-out.

    Thanks
    Last edited by ashballan; 06-06-2018, 08:01 PM.

  • #2
    Nobody has any ideas how to do this?

    Comment


    • #3

      if (event.userIdList) {
      event.userIdList.forEach(function (userId) {
      var avatarHtml = this.getHelper().getAvatarHtml(userId, 'small', 13);
      var $span = $('<span class="user">').html(avatarHtml);
      $content.prepend($span);
      }, this);
      }

      Comment


      • #4
        That worked perfect! Thank you!

        Comment

        Working...
        X