Compare commits
No commits in common. "f1772b99f358418251aef707af1236b60a3a2d3d" and "259f2f4b79e53325c94b0428e7e81444b280fefc" have entirely different histories.
f1772b99f3
...
259f2f4b79
6 changed files with 1 additions and 32 deletions
|
|
@ -1,9 +0,0 @@
|
||||||
package components
|
|
||||||
|
|
||||||
type ContentPagination struct {
|
|
||||||
PageStartRecord int
|
|
||||||
PageEndRecord int
|
|
||||||
TotalRecords int
|
|
||||||
PrevLink string
|
|
||||||
NextLink string
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
{{define "content_pagination"}}
|
|
||||||
<div class="pagination-container">
|
|
||||||
<ul class="pagination pagination-sm">
|
|
||||||
<li class="page-item">{{.PageStartRecord}} - {{.PageEndRecord}} of {{.TotalRecords}}</li>
|
|
||||||
<li class="page-item"> </li>
|
|
||||||
<li class="page-item"><a class="page-link{{if eq .PrevLink ""}} disabled"{{else}}" href="{{.PrevLink}}"{{end}}>«</a></li>
|
|
||||||
<li class="page-item"><a class="page-link{{if eq .NextLink ""}} disabled"{{else}}" href="{{.NextLink}}"{{end}}>»</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
|
|
@ -11,10 +11,4 @@ type FormInput struct {
|
||||||
IsDisabled bool
|
IsDisabled bool
|
||||||
Autocomplete bool
|
Autocomplete bool
|
||||||
IsRequired bool
|
IsRequired bool
|
||||||
CustomAtt []CustomAtt
|
|
||||||
}
|
|
||||||
|
|
||||||
type CustomAtt struct {
|
|
||||||
AttName string
|
|
||||||
AttValue string
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,6 @@
|
||||||
{{if ne .Value ""}}
|
{{if ne .Value ""}}
|
||||||
value="{{.Value}}"
|
value="{{.Value}}"
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .CustomAtt }}
|
|
||||||
{{range $options := .CustomAtt}}
|
|
||||||
{{$options.AttName}}="{{$options.AttValue}}"
|
|
||||||
{{end}}
|
|
||||||
{{end}}
|
|
||||||
aria-describedby="{{.ID}}Help">
|
aria-describedby="{{.ID}}Help">
|
||||||
{{if ne .Hint ""}}<small id="{{.ID}}Help" class="form-text text-muted">{{.Hint}}</small>{{end}}
|
{{if ne .Hint ""}}<small id="{{.ID}}Help" class="form-text text-muted">{{.Hint}}</small>{{end}}
|
||||||
{{if ne .Error ""}}<div class="error">{{.Error}}</div>{{end}}
|
{{if ne .Error ""}}<div class="error">{{.Error}}</div>{{end}}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ type FormSelect struct {
|
||||||
SelectedOption FormSelectOption
|
SelectedOption FormSelectOption
|
||||||
Label string
|
Label string
|
||||||
AllOptions []FormSelectOption
|
AllOptions []FormSelectOption
|
||||||
IsMultiple bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type FormSelectOption struct {
|
type FormSelectOption struct {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{{define "form_select"}}
|
{{define "form_select"}}
|
||||||
<div class="input-container">
|
<div class="input-container">
|
||||||
<label for="{{.ID}}" class="form-label">{{.Label}}</label>
|
<label for="{{.ID}}" class="form-label">{{.Label}}</label>
|
||||||
<select class="form-select" id="{{.ID}}" name="{{.ID}}"{{if eq .IsMultiple true}} multiple{{end}}>
|
<select class="form-select" id="{{.ID}}" name="{{.ID}}">
|
||||||
{{range $options := .AllOptions}}
|
{{range $options := .AllOptions}}
|
||||||
<option value="{{$options.Value}}" {{if eq $options.Value $.SelectedOption.Value }}selected="selected"{{end}}>{{$options.Caption}}</option>
|
<option value="{{$options.Value}}" {{if eq $options.Value $.SelectedOption.Value }}selected="selected"{{end}}>{{$options.Caption}}</option>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue