Skip to content

Instantly share code, notes, and snippets.

@mmarum-sugarcrm
Created July 6, 2015 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmarum-sugarcrm/4b60a2d217efe19d741e to your computer and use it in GitHub Desktop.
Save mmarum-sugarcrm/4b60a2d217efe19d741e to your computer and use it in GitHub Desktop.
Case Count by Status example dashlet Handlebars template
{{!
Case Count by Status example dashlet Handlebars template
We are reusing styling from the Sugar 7 Styleguide for our example dashlet.
Here we are borrowing CSS used in our Forecast Details dashlet which is suitable for display any set of name value pairs.
}}
<div class="forecast-details">
{{#each values}}
<div class="row-fluid">
<span class="span6">
{{name}}
</span>
<span class="span6 tright">
{{count}}
</span>
</div>
{{/each}}
<div class="row-fluid">
<strong class="span6">
{{! 'str' is the Sugar 7 Handlebars helper that translates a label into a localized language string}}
{{str "LBL_CASE_COUNT_BY_STATUS_TOTAL"}}
</strong>
<strong class="span6 tright">
{{totalCases}}
</strong>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment