package views
import (
"strconv"
"mocksnow/components/core"
)
type IncomingRow struct {
ID int
IncidentNumber string
Description string
ShortDescription string
Urgency string
Impact string
State string
ExternalID string
WorkNotes string
AssignmentGroup string
AssignedTo string
Category string
Subcategory string
CreatedAt string
}
templ IncomingTable(rows []IncomingRow) {
@core.Header()
Incoming API Calls
ID |
Incident # |
Description |
Short Description |
Urgency |
Impact |
State |
External ID |
Work Notes |
Assignment Group |
Assigned To |
Category |
Subcategory |
Created At |
for _, row := range rows {
{ strconv.Itoa(row.ID) } |
{ row.IncidentNumber } |
{ row.Description } |
{ row.ShortDescription } |
{ row.Urgency } |
{ row.Impact } |
{ row.State } |
{ row.ExternalID } |
{ row.WorkNotes } |
{ row.AssignmentGroup } |
{ row.AssignedTo } |
{ row.Category } |
{ row.Subcategory } |
{ row.CreatedAt } |
}
@core.Footer()
}