Skip to content

Commit 913bd59

Browse files
committedSep 15, 2023
feat(web): titles to buttons
1 parent 5b6236c commit 913bd59

10 files changed

+24
-24
lines changed
 

‎web/components/attachment_card.templ

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ templ AttachmentCard(props AttachmentCardProps) {
1919
<div class="flex flex-1 flex-col justify-end gap-2 p-2">
2020
<p class="break-all font-bold">{ props.Attachment.Name }</p>
2121
<div class="join flex">
22-
<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()) }>
22+
<a class="join-item btn flex flex-1 items-center" title="Envelope" href={ routes.Envelope(props.Attachment.MessageID).URLQuery("tab=" + routes.EnvelopeTabAttachments.String()) }>
2323
@icons.Mail("h-5 w-5")
2424
</a>
25-
<a class="join-item btn tooltip flex flex-1 items-center" data-tip="View" hx-boost="false" href={ routes.AttachmentFile(props.Attachment.FileName()).URL() }>
25+
<a class="join-item btn flex flex-1 items-center" title="View" hx-boost="false" href={ routes.AttachmentFile(props.Attachment.FileName()).URL() }>
2626
@icons.Eye("h-5 w-5")
2727
</a>
28-
<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") }>
28+
<a class="join-item btn flex flex-1 items-center" title="Download" hx-boost="false" href={ routes.AttachmentFile(props.Attachment.FileName()).URLQuery("download=1") }>
2929
@icons.Download("h-5 w-5")
3030
</a>
3131
</div>

‎web/components/attachment_card_templ.go

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎web/pages/attachment.templ

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ templ attachmentListView(m meta.Meta, props attachmentListViewProps) {
2525
</div>
2626
<div class="flex flex-col gap-4 p-4">
2727
<div class="join flex items-center justify-end" data-loading-states>
28-
<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>
28+
<button title="Delete Orphans" class="btn-sm btn btn-info join-item" hx-post={ routes.AttachmentTrim().URLString() } data-loading-disable>
2929
<span data-loading-class="loading loading-spinner loading-sm">
3030
@icons.Recycle("w-5 h-5")
3131
</span>

‎web/pages/attachment_templ.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎web/pages/envelope.templ

+5-5
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ templ envelopeListView(m meta.Meta, props envelopeListViewProps) {
101101
}
102102
}
103103
<input name="search" type="text" placeholder="Search" class="input input-sm input-bordered join-item w-full max-w-xs" value={ props.EnvelopeRequestRequest.Search } />
104-
<button type="submit" class="btn btn-sm btn-primary join-item">@icons.Search("w-5 h-5")</button>
104+
<button title="Search" type="submit" class="btn btn-sm btn-primary join-item">@icons.Search("w-5 h-5")</button>
105105
</form>
106106
<div class="join flex items-center justify-end" data-loading-states>
107-
<a class="btn btn-sm btn-success join-item" href={ routes.EnvelopeCreate().URL() } data-loading-states>
107+
<a title="Add" class="btn btn-sm join-item btn-success" href={ routes.EnvelopeCreate().URL() } data-loading-states>
108108
@icons.Add("w-5 h-5")
109109
</a>
110-
<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>
110+
<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>
111111
<span data-loading-class="loading loading-spinner loading-sm">
112112
@icons.Trash("w-5 h-5")
113113
</span>
@@ -185,11 +185,11 @@ templ envelopeListView(m meta.Meta, props envelopeListViewProps) {
185185
<th class="w-0 whitespace-nowrap">
186186
<div class="flex flex-row justify-end gap-2">
187187
if len(env.Attachments) != 0 {
188-
<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)" }>
188+
<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)" }>
189189
@icons.Attachment("h-4 w-4")
190190
</a>
191191
}
192-
<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?" >
192+
<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?" >
193193
@icons.Trash("h-4 w-4")
194194
</button>
195195
</div>

‎web/pages/envelope_templ.go

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎web/pages/rule.templ

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ templ ruleListView(m meta.Meta, props ruleListViewProps) {
2323
</div>
2424
<div class="flex flex-col gap-4 p-4">
2525
<div class="join flex items-center justify-end">
26-
<a class="btn btn-sm btn-success" href={ routes.RuleCreate().URL() }>
26+
<a title="Add" class="btn btn-sm btn-success" href={ routes.RuleCreate().URL() }>
2727
@icons.Add("w-5 h-5")
2828
</a>
2929
</div>
@@ -35,7 +35,7 @@ templ ruleListView(m meta.Meta, props ruleListViewProps) {
3535
<div class="flex items-center gap-2 pr-4">
3636
if !rule.Internal {
3737
<div data-loading-states>
38-
<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>
38+
<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>
3939
<span data-loading-class="loading loading-spinner loading-xs">
4040
@icons.Trash("h-4 w-4")
4141
</span>

‎web/pages/rule_templ.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎web/pages/trace.templ

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ templ traceListView(m meta.Meta, props traceListViewProps) {
2727
</div>
2828
<div class="flex flex-col gap-4 p-4">
2929
<div class="join flex items-center justify-end" data-loading-states>
30-
<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>
30+
<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>
3131
<span data-loading-class="loading loading-spinner loading-sm">
3232
@icons.Trash("w-5 h-5")
3333
</span>

‎web/pages/trace_templ.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.