mirror of
https://github.com/tabler/tabler.git
synced 2026-10-19 14:24:21 +04:00
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
91 lines
2.9 KiB
Plaintext
91 lines
2.9 KiB
Plaintext
---
|
|
import Button from '@ui/Button.astro'
|
|
import InputGroup from '@ui/InputGroup.astro'
|
|
import FormGroup from '@ui/FormGroup.astro'
|
|
|
|
const reports = [
|
|
{ title: 'Simple', description: 'Provide only basic data needed for the report' },
|
|
{ title: 'Advanced', description: 'Insert charts and additional advanced analyses to be inserted in the report' },
|
|
]
|
|
const visibilityOptions = ['Private', 'Public', 'Hidden']
|
|
---
|
|
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">New report</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<FormGroup label="Name">
|
|
<input type="text" class="form-control" name="example-text-input" placeholder="Your report name" />
|
|
</FormGroup>
|
|
|
|
<label class="form-label">Report type</label>
|
|
<div class="form-selectgroup-boxes row mb-3">
|
|
{
|
|
reports.map((report, index) => (
|
|
<div class="col-lg-6">
|
|
<label class="form-selectgroup-item">
|
|
<input type="radio" name="report-type" value="1" class="form-selectgroup-input" checked={index === 0} />
|
|
<span class="form-selectgroup-label d-flex align-items-center p-3">
|
|
<span class="me-3">
|
|
<span class="form-selectgroup-check" />
|
|
</span>
|
|
<span class="form-selectgroup-label-content">
|
|
<span class="form-selectgroup-title strong mb-1">{report.title}</span>
|
|
<span class="d-block text-secondary">{report.description}</span>
|
|
</span>
|
|
</span>
|
|
</label>
|
|
</div>
|
|
))
|
|
}
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-8">
|
|
<FormGroup label="Report url">
|
|
<InputGroup prepend="https://tabler.io/reports/" flat inputClass="ps-0" value="report-01" />
|
|
</FormGroup>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<FormGroup label="Visibility">
|
|
<select class="form-select">
|
|
{
|
|
visibilityOptions.map((option, index) => (
|
|
<option value={index + 1} selected={index === 0}>
|
|
{option}
|
|
</option>
|
|
))
|
|
}
|
|
</select>
|
|
</FormGroup>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<FormGroup label="Client name">
|
|
<input type="text" class="form-control" />
|
|
</FormGroup>
|
|
</div>
|
|
<div class="col-lg-6">
|
|
<FormGroup label="Reporting period">
|
|
<input type="date" class="form-control" />
|
|
</FormGroup>
|
|
</div>
|
|
<div class="col-lg-12">
|
|
<FormGroup label="Additional information" class="">
|
|
<textarea class="form-control" rows="3"></textarea>
|
|
</FormGroup>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<Button text="Cancel" color="link link-secondary" dismiss />
|
|
<Button text="Create new report" icon="plus" color="primary" dismiss class="ms-auto" />
|
|
</div>
|