github.com/wawandco/ox@v0.13.6-0.20230809142027-913b3d837f2a/plugins/tools/ox/resource/templates/form.html.tmpl (about)

     1  {{ range $p := .Model.Attrs -}}
     2      {{ if eq $p.CommonType "text" -}}
     3          <%= f.TextAreaTag("{{$p.Name.Pascalize}}", {rows: 10}) %>
     4      {{ else -}}
     5          {{ if eq $p.CommonType "bool" -}}
     6              <%= f.CheckboxTag("{{$p.Name.Pascalize}}", {unchecked: false}) %>
     7          {{ else -}}
     8              <%= f.InputTag("{{$p.Name.Pascalize}}") %>
     9          {{ end -}}
    10      {{ end -}}
    11  {{ end -}}
    12  
    13  <button class="btn btn-success" role="submit">Save</button>