add cookie secret as env, fix components

This commit is contained in:
Zeni Kim 2024-10-15 22:00:46 -05:00
parent 45e7079005
commit cc74165659
4 changed files with 46 additions and 13 deletions

View file

@ -6,7 +6,7 @@
</tr>
</thead>
<tbody>
{{range .AllTD}}<tr scope="row">{{range .}}<td {{ if .ID }}id="{{.ID}}"{{end}}>{{ .Value }}</td>{{end}}</tr>{{end}}
{{- range .AllTD}}<tr scope="row">{{range .}}<td {{ if .ID }}id="{{.ID}}"{{end}}>{{ .Value }}</td>{{end}}</tr>{{- end}}
</tbody>
</table>
{{end}}

View file

@ -1,7 +1,7 @@
package components
type FormTextarea struct {
ID string
Label string
AllOptions []FormSelectOption
ID string
Label string
Value string
}

View file

@ -1,6 +1,6 @@
{{define "form_textarea"}}
<div class="input-container">
<label for="{{.ID}}" class="form-label">{{.Label}}</label>
<textarea class="form-control" id="{{.ID}}" name="{{.ID}}" rows="3"></textarea>
<textarea class="form-control" id="{{.ID}}" name="{{.ID}}" rows="3">{{.Value}}</textarea>
</div>
{{end}}