discourse-data-explorer/assets/javascripts/discourse/templates/group-reports-show.hbs

44 lines
1019 B
Handlebars
Raw Normal View History

<section class="user-content">
<h1>{{model.name}}</h1>
<p>{{model.description}}</p>
<form class="query-run" {{action "run" on="submit"}}>
{{#if hasParams}}
<div class="query-params">
{{#each model.param_info as |pinfo|}}
{{param-input params=model.params info=pinfo}}
{{/each}}
</div>
{{/if}}
{{d-button
action=(action "run")
icon="play"
label="explorer.run"
class="btn-primary"
type="submit"
}}
{{d-button
action=(action "toggleBookmark")
label=bookmarkLabel
icon=bookmarkIcon
class=bookmarkClassName
}}
</form>
{{conditional-loading-spinner condition=loading}}
{{#if results}}
<div class="query-results">
{{#if showResults}}
{{query-result query=model content=results group=group}}
{{else}}
{{#each results.errors as |err|}}
<pre class="query-error"><code>{{~err}}</code></pre>
{{/each}}
{{/if}}
</div>
{{/if}}
</section>