github.com/wanliu/go-oauth2-server@v0.0.0-20180817021415-f928fa1580df/web/includes/authorize.html (about)

     1  {{ define "title"}}授权{{ end }}
     2  
     3  {{ define "content" }}
     4  <div class="container">
     5    <div class="page-header">
     6      <h1>授权</h1>
     7    </div>
     8    {{ if .error }}
     9    <div class="alert alert-danger" role="alert">{{ .error }}div>
    10    {{ else }}
    11    <form action="" method="post">
    12      <div class="form-group">
    13        <p><b>{{ or .clientName.String .clientID  }}</b> 想代表您执行的操作.</p>
    14        {{ if .token }}
    15        <p>授权多久有效期 <b>{{ .clientID }}</b> 至?</p>
    16        <div class="radio">
    17          <label class="radio-inline">
    18            <input type="radio" name="lifetime" value="3600"> 1 小时
    19          </label>
    20          <label class="radio-inline">
    21            <input type="radio" name="lifetime" value="86400"> 1 天
    22          </label>
    23          <label class="radio-inline">
    24            <input type="radio" name="lifetime" value="604800" checked> 1 星期
    25          </label>
    26        </div>
    27        {{ end }}
    28      </div>
    29      <div class="row">
    30        <div class="col-md-3 col-sm-4 col-xs-6">
    31          <input type="submit" class="btn btn-lg btn-block btn-primary" name="allow" value="授予">
    32        </div>
    33        <div class="col-md-3 col-sm-4 col-xs-6">
    34          <input type="submit" class="btn btn-lg btn-block btn-danger" name="deny" value="拒绝">
    35        </div>
    36      </div>
    37    </form>
    38    {{ end }}
    39  </div>
    40  {{ end }}