github.com/wanliu/go-oauth2-server@v0.0.0-20180817021415-f928fa1580df/web/includes/new_client.html (about) 1 {{ define "title"}}创建客户端{{ end }} 2 3 {{ define "content" }} 4 5 <div class="profile-content"> 6 <form method="POST" action="/web/clients"> 7 <div class="form-group {{ .form.ErrorStatus "Name" }}"> 8 <label class="control-label" for="client_name">名称</label> 9 <input type="text" class="form-control" id="client_name" aria-describedby="nameHelp" name="name" placeholder="应用名称..."> 10 {{ .form.ErrorMsg "Name" | raw}} 11 </div> 12 <div class="form-group {{ .form.ErrorStatus "RedirectURI" }}"> 13 <label class="control-label" for="client_redirect_uri">回调地址</label> 14 <input type="text" class="form-control" id="client_redirect_uri" aria-describedby="redirect_uriHelp" name="redirect_uri" placeholder="有效的 格式..."> 15 {{ .form.ErrorMsg "RedirectURI" | raw}} 16 </div> 17 <button type="submit" class="btn btn-success">创建</button> 18 </form> 19 </div> 20 {{ end }}