Skip to content

Commit

Permalink
feat: add satisfaction response to request details
Browse files Browse the repository at this point in the history
  • Loading branch information
codella committed Feb 8, 2024
1 parent 2ea7203 commit 48a2aa0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions templates/request_page.hbs
Expand Up @@ -127,6 +127,42 @@
</dl>
{{/if}}

{{#with satisfaction_response}}
{{#with rating}}
<dl class="request-details">
<dt>{{t 'rating'}}</dt>
<dd>
<div>
{{#is scale_type 'numeric'}}
{{t 'numerical_rating' value=value max_value=max_value}}
{{else}}
{{scale_value}}
{{/is}}
</div>

{{#link 'survey_response' id=../id}}
{{#if ../editable}}
{{t 'edit_feedback'}}
{{else}}
{{t 'view_feedback'}}
{{/if}}
{{/link}}
</dd>
</dl>
{{else}}
{{#if editable}}
<dl class="request-details">
<dt>{{t 'rating'}}</dt>
<dd>
{{#link 'survey_response' id=id}}
{{t 'add_feedback'}}
{{/link}}
</dd>
</dl>
{{/if}}
{{/with}}
{{/with}}

<dl class="request-details">
<dt>{{t 'requester'}}</dt>
<dd>{{request.requester.name}}</dd>
Expand Down

0 comments on commit 48a2aa0

Please sign in to comment.