@model MemberCenter.Web.Models.Admin.OAuthClientFormViewModel

<div class="admin-page-title">
  <h1>@L["Add OAuth Client"]</h1>
</div>

<form method="post" class="admin-form-panel">
  @Html.AntiForgeryToken()
  <label>@L["Tenant ID"]</label>
  <select asp-for="TenantId">
    <option value="">@L["Select a tenant"]</option>
@foreach (var tenant in Model.Tenants)
{
    <option value="@tenant.Id">@tenant.Name</option>
}
  </select>
  <span asp-validation-for="TenantId"></span>

  <label>@L["Name"]</label>
  <input asp-for="Name" />
  <span asp-validation-for="Name"></span>

  <label>@L["Client Type"]</label>
  <select asp-for="ClientType">
    <option value="public">public</option>
    <option value="confidential">confidential</option>
  </select>
  <span asp-validation-for="ClientType"></span>

  <label>@L["Usage"]</label>
  <select asp-for="Usage">
    <option value="tenant_api">tenant_api</option>
    <option value="send_api">send_api</option>
    <option value="web_login">web_login</option>
    <option value="webhook_outbound">webhook_outbound</option>
    <option value="platform_service">platform_service</option>
    <option value="file_api">file_api</option>
  </select>
  <span asp-validation-for="Usage"></span>

  <label>@L["Redirect URIs (comma-separated, required for web_login / webhook_outbound)"]</label>
  <input asp-for="RedirectUris" />
  <span asp-validation-for="RedirectUris"></span>

  <button type="submit" class="account-action-button">@L["Save"]</button>
</form>
