-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<template> | ||
<div class="q-px-sm"> | ||
<div class="text-h5">Report Template</div> | ||
|
||
<div class="q-px-sm"> | ||
<div class="text-body1">Test</div> | ||
</div> | ||
|
||
<div class="text-h5">Base Template</div> | ||
|
||
<div class="q-px-sm"> | ||
<div class="text-body1">Test</div> | ||
</div> | ||
|
||
<div class="text-h5">Data Query</div> | ||
|
||
<div class="q-px-sm"> | ||
<div class="text-body1"> | ||
Data Queries are used to save common database queries use them in | ||
templates. Behind the scenes, we are just creating a Django queryset. | ||
The only difference is these querysets are restricted to only retrieve | ||
data versus modifying data. | ||
</div> | ||
<div class="text-h6">Syntax</div> | ||
<div class="q-px-sm"> | ||
<div class="text-body1"> | ||
When you create Data Queries in the Data Query Editor you use JSON. | ||
You can also create Data Queries directly in the template variables | ||
which uses yaml syntax. | ||
</div> | ||
</div> | ||
|
||
<div class="text-body1"></div> | ||
|
||
<div class="text-h6">Structure</div> | ||
<div class="q-px-sm"> | ||
<div class="text-body1"> | ||
Ctrl+Space in the query editor to auto-complete values | ||
</div> | ||
|
||
<dl> | ||
<dt>* model (*string)</dt> | ||
<dd> | ||
This is the only required field. This specifies the table to query. | ||
</dd> | ||
<dt>* filter (object)</dt> | ||
<dd></dd> | ||
</dl> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const props = defineProps<{ | ||
section: "template" | "baseTemplate" | "dataQuery"; | ||
}>(); | ||
</script> |