Skewed request details

6 Kommentare

  • Nicole S. - Community Manager
    Zendesk Community Team

    Hi Tobias - 

    I checked in with some of our Community Moderators who have some expertise in Guide, and they said it is probably an issue with your html. Would you be able to share the code so they can take a look at it? 

     

    0
  • Ifra Saqlain
    Community Moderator

    Hi Toblas,

     

    Here is only some request details as you provided in the screenshot. Now you can fix your HTML code by this or you can remove some if you want. 

     

     <div class="collapsible-sidebar-body">

            {{#if request.followup_source_id}}

              <dl class="request-details">

                <dt>{{t 'followup'}}</dt>

                <dd>{{link 'request' id=request.followup_source_id}}</dd>

              </dl>

            {{/if}}



    // Request Details Block

            <dl class="request-details">




    // Start Requester name code

              <dt>{{t 'requester'}}</dt>

              <dd>{{request.requester.name}}</dd>

    // End




    // Start Created date code

              <dt>{{t 'created'}}</dt>

              <dd>{{date request.created_at}}</dd>

    // End




    // Start Last activity date code

              <dt>{{t 'last_activity'}}</dt>

              <dd>{{date request.updated_at}}</dd>

              {{#if collaborators}}

                <dt>{{t 'ccs'}}</dt>

                <dd>

                  <ul class="request-collaborators">

                    {{#each collaborators}}

                      <li title={{name}}>{{name}}</li>

                    {{/each}}

                  </ul>

                </dd>

              {{/if}}

            </dl>

            <dl class="request-details">

              {{#if assignee}}

                <dt>{{t 'assignee'}}</dt>

                <dd>

                  {{assignee.name}}

                </dd>

              {{/if}}

    // End




    // Start Ticket ID code

              <dt>{{t 'id'}}</dt>

              <dd>#{{request.id}}</dd>

              {{#form 'organization' id='request-organization'}}

                <dt>{{t 'organization'}}</dt>

                <dd>{{select 'organization'}}</dd>

              {{/form}}

    // End




    // Start Status code

              <dt>{{t 'status'}}</dt>

              <dd>

              <span class="status-label status-label-{{request.status}}" title="{{request.status_description}}">

                {{request.status_name}}

              </span>

              </dd>

              {{#if request.type}}

                <dt>{{t 'type'}}</dt>

                <dd>

                  {{request.type_name}}

                  {{#is request.type 'task'}}

                    {{t 'task_due_date' due_date=request.due_date}}

                  {{/is}}

    // End


                </dd>

              {{/if}}

            </dl>

          </div>

     

    I hope it resolve your bug.

    If any query let me know :)

     

    Team

    1
  • Tobias Funder

    Hi Ifra,

    Where am I supposed to put this code? In which .hbs? And am I supposed to delete the current code in there or something specific?

    0
  • Ifra Saqlain
    Community Moderator

    Hi,

    This code is for request_page.hbs  where your request details sidebar exists. Where you removed request details.

    Yes, you can remove your request details sidebar code and put that given code. After doing copy and paste, remove comments like // start....  // End.

    Let me know your queries :)

    Thank You

    0
  • Tobias Funder

    It worked. Thank you!

    0
  • Ifra Saqlain
    Community Moderator

    Cheers :)

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk