2021-07-02 11:35:50 -04:00
|
|
|
<section class="user-content">
|
2019-09-11 10:09:41 -04:00
|
|
|
<h1>{{model.name}}</h1>
|
|
|
|
<p>{{model.description}}</p>
|
2022-06-17 09:01:34 -04:00
|
|
|
|
2019-09-11 10:09:41 -04:00
|
|
|
<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}}
|
2022-06-17 09:01:34 -04:00
|
|
|
|
|
|
|
{{d-button
|
|
|
|
action=(action "run")
|
|
|
|
icon="play"
|
|
|
|
label="explorer.run"
|
|
|
|
class="btn-primary"
|
|
|
|
type="submit"
|
|
|
|
}}
|
2022-06-14 11:07:02 -04:00
|
|
|
|
|
|
|
{{d-button
|
|
|
|
action=(action "toggleBookmark")
|
|
|
|
label=bookmarkLabel
|
|
|
|
icon=bookmarkIcon
|
|
|
|
class=bookmarkClassName
|
|
|
|
}}
|
2019-09-11 10:09:41 -04:00
|
|
|
</form>
|
2022-06-17 09:01:34 -04:00
|
|
|
|
2019-09-11 10:09:41 -04:00
|
|
|
{{conditional-loading-spinner condition=loading}}
|
2022-06-17 09:01:34 -04:00
|
|
|
|
2019-09-11 10:09:41 -04:00
|
|
|
{{#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>
|