~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/templates/client-settings.html -rw-r--r-- 1.1 KiB
72548bd7Drew DeVault API: Updates per core-go auth changes 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends "client-admin.html" %}
{% block content %}
<div class="row">
  <section class="col-md-6">
    <form method="POST" action="/oauth/register">
      {{csrf_token()}}
      <div class="form-group">
        <label for="client-name">Client Name <span class="text-danger">*</span></label>
        <input
          type="text"
          name="client-name"
          id="client-name"
          class="form-control {{valid.cls("client-name")}}"
          value="{{ client.client_name or "" }}" />
        {{valid.summary("client-name")}}
      </div>
      <div class="form-group">
        <label for="redirect-uri">Base Redirect URI <span class="text-danger">*</span></label>
        <input
          type="text"
          name="redirect-uri"
          id="redirect-uri"
          class="form-control {{valid.cls("redirect-uri")}}"
          value="{{ client.redirect_uri or "" }}" />
        {{valid.summary("redirect-uri")}}
      </div>
      <button type="submit" class="btn btn-primary">
        Submit {{icon("caret-right")}}
      </button>
    </form>
  </section>
</div>
{% endblock %}