feat: separate descriptions from labels
This commit is contained in:
parent
04647f3bcd
commit
78419357b5
|
|
@ -20,26 +20,29 @@
|
||||||
<label>
|
<label>
|
||||||
{{if .ClaimantId}}
|
{{if .ClaimantId}}
|
||||||
{{if eq .ClaimantId $.CurrentUserId}}
|
{{if eq .ClaimantId $.CurrentUserId}}
|
||||||
<input type="checkbox" name="claimed" value="{{.Id}}" {{if .Sent}}disabled{{end}}>
|
<input type="checkbox" aria-describedby="wish_detail_{{.Id}}" name="claimed" value="{{.Id}}" {{if
|
||||||
|
.Sent}}disabled{{end}}>
|
||||||
{{else}}
|
{{else}}
|
||||||
<input type="checkbox" disabled>
|
<input type="checkbox" aria-describedby="wish_detail_{{.Id}}" disabled>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<input type="checkbox" name="unclaimed" value="{{.Id}}" {{if .Sent}}disabled{{end}}>
|
<input type="checkbox" aria-describedby="wish_detail_{{.Id}}" name="unclaimed" value="{{.Id}}" {{if
|
||||||
|
.Sent}}disabled{{end}}>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .Sent}}
|
{{if .Sent}}
|
||||||
<s>{{.Name}}</s>
|
<s>{{.Name}}</s>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{.Name}}
|
{{.Name}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .ClaimantId}}
|
|
||||||
{{if eq .ClaimantId $.CurrentUserId}}
|
|
||||||
<span style="color: blue;">{{if .Sent}}Completed{{else}}Claimed{{end}} by you</span>
|
|
||||||
{{else}}
|
|
||||||
<span style="color: red;">{{if .Sent}}Completed{{else}}Claimed{{end}} by {{.ClaimantName}}</span>
|
|
||||||
{{end}}
|
|
||||||
{{end}}
|
|
||||||
</label>
|
</label>
|
||||||
|
{{if .ClaimantId}}
|
||||||
|
{{if eq .ClaimantId $.CurrentUserId}}
|
||||||
|
<span id="wish_detail_{{.Id}}" style="color: blue;">{{if .Sent}}Completed{{else}}Claimed{{end}} by you</span>
|
||||||
|
{{else}}
|
||||||
|
<span id="wish_detail_{{.Id}}" style="color: red;">{{if .Sent}}Completed{{else}}Claimed{{end}} by
|
||||||
|
{{.ClaimantName}}</span>
|
||||||
|
{{end}}
|
||||||
|
{{end}}
|
||||||
</li>
|
</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
<li>
|
<li>
|
||||||
<label>
|
<label>
|
||||||
{{if .Sent}}
|
{{if .Sent}}
|
||||||
<input type="checkbox" disabled>
|
<input aria-describedby="todo_detail_{{.Id}}" type="checkbox" disabled>
|
||||||
{{else}}
|
{{else}}
|
||||||
<input type="checkbox" name="gift" value="{{.Id}}">
|
<input type="checkbox" name="gift" value="{{.Id}}">
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
@ -57,8 +57,11 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
{{.Name}}
|
{{.Name}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</em> for <a href="/{{.RecipientRef}}">{{.RecipientName}}</a>
|
</em>
|
||||||
</label>
|
</label>
|
||||||
|
<span id="todo_detail_{{.Id}}">
|
||||||
|
for <a href="/{{.RecipientRef}}">{{.RecipientName}}</a>
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue