36 lines
1.0 KiB
Elixir
36 lines
1.0 KiB
Elixir
<h1>User Settings</h1>
|
|
<h2><pre><%= @user.username %></pre></h2>
|
|
|
|
<a href="<%= Routes.account_path(@conn, :change_password) %>" class="btn btn-secondary">Change Password</a>
|
|
|
|
<a href="<%= Routes.account_path(@conn, :change_fever_password) %>" class="btn btn-secondary">Change Fever Password</a>
|
|
|
|
<h2 class="mt-4">Approved Clients</h2>
|
|
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Client</th>
|
|
<th>Revoke Access</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<%= for {approved, fervor} <- @clients do %>
|
|
<tr>
|
|
<td>
|
|
<%= if fervor.website do %>
|
|
<a href="<%= fervor.website %>"><%= fervor.client_name %></a>
|
|
<% else %>
|
|
<%= fervor.client_name %>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<%= form_tag Routes.account_path(@conn, :remove_client), method: :post do %>
|
|
<input type="hidden" name="client_id" value="<%= approved.client_id %>">
|
|
<%= submit "Revoke", class: "btn btn-danger" %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table> |