2019-03-31 15:52:20 +00:00
|
|
|
<h1>User Settings</h1>
|
2019-04-01 16:24:22 +00:00
|
|
|
<h2><pre><%= @user.username %></pre></h2>
|
2019-03-31 15:52:20 +00:00
|
|
|
|
2019-04-01 16:24:22 +00:00
|
|
|
<a href="<%= Routes.account_path(@conn, :change_password) %>" class="btn btn-secondary">Change Password</a>
|
2019-03-31 17:19:11 +00:00
|
|
|
|
2019-04-01 16:24:22 +00:00
|
|
|
<a href="<%= Routes.account_path(@conn, :change_fever_password) %>" class="btn btn-secondary">Change Fever Password</a>
|
2019-04-01 15:29:03 +00:00
|
|
|
|
2019-08-30 18:27:52 +00:00
|
|
|
<section class="mt-4">
|
|
|
|
<h2>Import/Export Data</h2>
|
|
|
|
<%= form_for @conn, Routes.account_path(@conn, :import), [method: :post, multipart: true], fn f -> %>
|
|
|
|
<%= file_input f, :file %>
|
|
|
|
<%= submit "Import OPML", class: "btn btn-primary" %>
|
|
|
|
<% end %>
|
2019-08-30 23:44:51 +00:00
|
|
|
<%= form_for @conn, Routes.account_path(@conn, :export), [method: :post, class: "mt-2"], fn f -> %>
|
|
|
|
<%= submit "Export OPML", class: "btn btn-primary" %>
|
|
|
|
<% end %>
|
2019-08-30 18:27:52 +00:00
|
|
|
</section>
|
2019-04-01 15:29:03 +00:00
|
|
|
|
2019-08-30 18:27:52 +00:00
|
|
|
<section class="mt-4">
|
|
|
|
<h2>Approved Clients</h2>
|
|
|
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
2019-04-01 16:24:22 +00:00
|
|
|
<tr>
|
2019-08-30 18:27:52 +00:00
|
|
|
<th>Client</th>
|
|
|
|
<th>Revoke Access</th>
|
2019-04-01 16:24:22 +00:00
|
|
|
</tr>
|
2019-08-30 18:27:52 +00:00
|
|
|
</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>
|
|
|
|
</section>
|