Merge branch 'response'
This commit is contained in:
commit
b2348b2df9
2 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
|
"log"
|
||||||
"net/url"
|
"net/url"
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -154,6 +155,7 @@ func yaml(content string) (interface{}, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
log.Println(result)
|
||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
name="{{.options.name}}"
|
name="{{.options.name}}"
|
||||||
class="{{if .options.inputClass}}{{.options.inputClass}}{{else}}form-control{{end}}"
|
class="{{if .options.inputClass}}{{.options.inputClass}}{{else}}form-control{{end}}"
|
||||||
id="{{.options.id}}"
|
id="{{.options.id}}"
|
||||||
placeholder="{{.options.placeholder}}" {{if .update}}value="{{.value}}"{{end}} {{if .options.otherAttrs}}{{.options.otherAttrs}}{{end}} {{if .options.required}}required{{end}}>
|
placeholder="{{.options.placeholder}}" {{if .update}}value="{{.value}}"{{end}} {{if .options.otherAttrs}}{{.options.otherAttrs|html}}{{end}} {{if .options.required}}required{{end}}>
|
||||||
{{if .options.help}}<small class="form-text text-muted">{{.options.help}}</small>{{end}}
|
{{if .options.help}}<small class="form-text text-muted">{{.options.help}}</small>{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in a new issue