4 changed files with 140 additions and 22 deletions
@ -0,0 +1,60 @@ |
|||||
|
{{define "document_upload"}} |
||||
|
<h2>Document Uploads</h2> |
||||
|
<div class="content"> |
||||
|
<h3 class="submenu-header">Filter Jobs</h3> |
||||
|
<form id="filter-form" class="submenu-grid" hx-post="/filter-jobs" hx-target="#job-results" hx-swap="innerHTML"> |
||||
|
|
||||
|
<!-- Inline Group: Job Name and Company --> |
||||
|
<div class="inline-input-group"> |
||||
|
<div class="input-group"> |
||||
|
<label for="job_name">Job Name</label> |
||||
|
<input id="job_name" name="job_name" class="card-input" type="text" placeholder="Enter Job Name"> |
||||
|
</div> |
||||
|
<div class="input-group"> |
||||
|
<label for="company">Company</label> |
||||
|
<input id="company" name="company" class="card-input" type="text" placeholder="Enter Company Name"> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<!-- Inline Group: Status and Tags --> |
||||
|
<div class="inline-input-group"> |
||||
|
<div class="input-group"> |
||||
|
<label for="status">Status</label> |
||||
|
<select id="status" name="status" class="card-input"> |
||||
|
<option value="">Select Status</option> |
||||
|
<option value="open">Open</option> |
||||
|
<option value="closed">Closed</option> |
||||
|
</select> |
||||
|
</div> |
||||
|
<div class="input-group"> |
||||
|
<label for="tags">Tags</label> |
||||
|
<input id="tags" name="tags" class="card-input" type="text" placeholder="Enter Tags"> |
||||
|
</div> |
||||
|
<div class="input-group"> |
||||
|
<label for="schedule_from">Schedule From</label> |
||||
|
<input id="schedule_from" name="schedule_from" class="card-input" type="date"> |
||||
|
</div> |
||||
|
<div class="input-group"> |
||||
|
<label for="schedule_to">Schedule To</label> |
||||
|
<input id="schedule_to" name="schedule_to" class="card-input" type="date"> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<!-- Inline Group: Date Range --> |
||||
|
<div class="inline-input-group"> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<!-- Action Buttons --> |
||||
|
<div class="form-footer"> |
||||
|
<button type="submit" class="btn-primary">Search</button> |
||||
|
<button type="reset" class="warning-button">Reset</button> |
||||
|
</div> |
||||
|
</form> |
||||
|
|
||||
|
<!-- Results --> |
||||
|
<div id="job-results" class="submenu-container"> |
||||
|
<!-- Search results will be dynamically loaded here --> |
||||
|
</div> |
||||
|
</div> |
||||
|
{{end}} |
||||
@ -1,21 +1,18 @@ |
|||||
{{define "invoice_search"}} |
{{define "invoice_search"}} |
||||
<div id="search-container"> |
<h2>Invoices</h2> |
||||
<input |
<div class="content"> |
||||
type="text" |
<div id="search-container"> |
||||
name="search" |
<input type="text" name="search" placeholder="Enter invoice number or id" hx-get="/invoices" |
||||
placeholder="Enter invoice number or id" |
hx-trigger="keyup changed delay:500ms" hx-target="#invoice-search-results" hx-indicator="#loading-indicator" /> |
||||
hx-get="/invoices" |
|
||||
hx-trigger="keyup changed delay:500ms" |
|
||||
hx-target="#invoice-search-results" |
|
||||
hx-indicator="#loading-indicator" /> |
|
||||
|
|
||||
<div id="loading-indicator" class="htmx-indicator"> |
<div id="loading-indicator" class="htmx-indicator"> |
||||
<span>Searching...</span> |
<span>Searching...</span> |
||||
<div class="loading-indicator"></div> |
<div class="loading-indicator"></div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
<br /> |
<br /> |
||||
<div id="invoice-search-results" class="fade-me-out"> |
<div id="invoice-search-results" class="fade-me-out"> |
||||
<!-- This is where the invoice details will be loaded --> |
<!-- This is where the invoice details will be loaded --> |
||||
|
</div> |
||||
</div> |
</div> |
||||
{{end}} |
{{end}} |
||||
Loading…
Reference in new issue