Skip to content

Commit

Permalink
feat(web): titles to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsNotGoodName committed Sep 15, 2023
1 parent 5b6236c commit 913bd59
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions web/components/attachment_card.templ
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ templ AttachmentCard(props AttachmentCardProps) {
<div class="flex flex-1 flex-col justify-end gap-2 p-2">
<p class="break-all font-bold">{ props.Attachment.Name }</p>
<div class="join flex">
<a class="join-item btn tooltip flex flex-1 items-center" data-tip="Envelope" href={ routes.Envelope(props.Attachment.MessageID).URLQuery("tab=" + routes.EnvelopeTabAttachments.String()) }>
<a class="join-item btn flex flex-1 items-center" title="Envelope" href={ routes.Envelope(props.Attachment.MessageID).URLQuery("tab=" + routes.EnvelopeTabAttachments.String()) }>
@icons.Mail("h-5 w-5")
</a>
<a class="join-item btn tooltip flex flex-1 items-center" data-tip="View" hx-boost="false" href={ routes.AttachmentFile(props.Attachment.FileName()).URL() }>
<a class="join-item btn flex flex-1 items-center" title="View" hx-boost="false" href={ routes.AttachmentFile(props.Attachment.FileName()).URL() }>
@icons.Eye("h-5 w-5")
</a>
<a class="join-item btn tooltip flex flex-1 items-center" data-tip="Download" hx-boost="false" href={ routes.AttachmentFile(props.Attachment.FileName()).URLQuery("download=1") }>
<a class="join-item btn flex flex-1 items-center" title="Download" hx-boost="false" href={ routes.AttachmentFile(props.Attachment.FileName()).URLQuery("download=1") }>
@icons.Download("h-5 w-5")
</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions web/components/attachment_card_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/pages/attachment.templ
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ templ attachmentListView(m meta.Meta, props attachmentListViewProps) {
</div>
<div class="flex flex-col gap-4 p-4">
<div class="join flex items-center justify-end" data-loading-states>
<button class="btn btn-sm btn-info join-item tooltip-left tooltip" data-tip="delete orphan attachments" hx-post={ routes.AttachmentTrim().URLString() } data-loading-disable>
<button title="Delete Orphans" class="btn-sm btn btn-info join-item" hx-post={ routes.AttachmentTrim().URLString() } data-loading-disable>
<span data-loading-class="loading loading-spinner loading-sm">
@icons.Recycle("w-5 h-5")
</span>
Expand Down
2 changes: 1 addition & 1 deletion web/pages/attachment_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions web/pages/envelope.templ
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ templ envelopeListView(m meta.Meta, props envelopeListViewProps) {
}
}
<input name="search" type="text" placeholder="Search" class="input input-sm input-bordered join-item w-full max-w-xs" value={ props.EnvelopeRequestRequest.Search } />
<button type="submit" class="btn btn-sm btn-primary join-item">@icons.Search("w-5 h-5")</button>
<button title="Search" type="submit" class="btn btn-sm btn-primary join-item">@icons.Search("w-5 h-5")</button>
</form>
<div class="join flex items-center justify-end" data-loading-states>
<a class="btn btn-sm btn-success join-item" href={ routes.EnvelopeCreate().URL() } data-loading-states>
<a title="Add" class="btn btn-sm join-item btn-success" href={ routes.EnvelopeCreate().URL() } data-loading-states>
@icons.Add("w-5 h-5")
</a>
<button class="btn btn-sm btn-error join-item" hx-delete={ routes.EnvelopeList().URLString() } hx-confirm="Are you sure you wish to delete all envelopes?" data-loading-disable>
<button title="Delete All" class="btn btn-sm btn-error join-item" hx-delete={ routes.EnvelopeList().URLString() } hx-confirm="Are you sure you wish to delete all envelopes?" data-loading-disable>
<span data-loading-class="loading loading-spinner loading-sm">
@icons.Trash("w-5 h-5")
</span>
Expand Down Expand Up @@ -185,11 +185,11 @@ templ envelopeListView(m meta.Meta, props envelopeListViewProps) {
<th class="w-0 whitespace-nowrap">
<div class="flex flex-row justify-end gap-2">
if len(env.Attachments) != 0 {
<a href={ routes.Envelope(env.Message.ID).URLQuery("tab=" + routes.EnvelopeTabAttachments.String()) } class="tooltip tooltip-left flex items-center fill-current" data-tip={ strconv.Itoa(len(env.Attachments)) + " Attachment(s)" }>
<a title="Attachments" href={ routes.Envelope(env.Message.ID).URLQuery("tab=" + routes.EnvelopeTabAttachments.String()) } class="tooltip tooltip-left flex items-center fill-current" data-tip={ strconv.Itoa(len(env.Attachments)) + " Attachment(s)" }>
@icons.Attachment("h-4 w-4")
</a>
}
<button class="btn btn-error btn-xs join-item" hx-delete={ routes.Envelope(env.Message.ID).URLString() } hx-target="closest tr" hx-confirm="Are you sure you wish to delete this envelope?" >
<button title="Delete" class="btn btn-error btn-xs join-item" hx-delete={ routes.Envelope(env.Message.ID).URLString() } hx-target="closest tr" hx-confirm="Are you sure you wish to delete this envelope?" >
@icons.Trash("h-4 w-4")
</button>
</div>
Expand Down
10 changes: 5 additions & 5 deletions web/pages/envelope_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions web/pages/rule.templ
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ templ ruleListView(m meta.Meta, props ruleListViewProps) {
</div>
<div class="flex flex-col gap-4 p-4">
<div class="join flex items-center justify-end">
<a class="btn btn-sm btn-success" href={ routes.RuleCreate().URL() }>
<a title="Add" class="btn btn-sm btn-success" href={ routes.RuleCreate().URL() }>
@icons.Add("w-5 h-5")
</a>
</div>
Expand All @@ -35,7 +35,7 @@ templ ruleListView(m meta.Meta, props ruleListViewProps) {
<div class="flex items-center gap-2 pr-4">
if !rule.Internal {
<div data-loading-states>
<button class="btn btn-error btn-sm" hx-delete={ routes.Rule(rule.ID).URLString() } hx-confirm="Are you sure you wish to delete this rule?" hx-target="closest #rule-row" hx-swap="outerHTML" data-loading-disable>
<button title="Delete" class="btn btn-error btn-sm" hx-delete={ routes.Rule(rule.ID).URLString() } hx-confirm="Are you sure you wish to delete this rule?" hx-target="closest #rule-row" hx-swap="outerHTML" data-loading-disable>
<span data-loading-class="loading loading-spinner loading-xs">
@icons.Trash("h-4 w-4")
</span>
Expand Down
4 changes: 2 additions & 2 deletions web/pages/rule_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/pages/trace.templ
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ templ traceListView(m meta.Meta, props traceListViewProps) {
</div>
<div class="flex flex-col gap-4 p-4">
<div class="join flex items-center justify-end" data-loading-states>
<button class="btn btn-sm btn-error" hx-delete={ routes.TraceList().URLString() } hx-confirm="Are you sure you wish to delete all traces?" data-loading-disable>
<button title="Delete All" class="btn btn-sm btn-error" hx-delete={ routes.TraceList().URLString() } hx-confirm="Are you sure you wish to delete all traces?" data-loading-disable>
<span data-loading-class="loading loading-spinner loading-sm">
@icons.Trash("w-5 h-5")
</span>
Expand Down
2 changes: 1 addition & 1 deletion web/pages/trace_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 913bd59

Please sign in to comment.