Chore: Add Account Users to Admin Panel (#859)
- Show errors on login page - Dashboard for admin panel
This commit is contained in:
@@ -12,9 +12,8 @@ as defined by the routes in the `admin/` namespace
|
||||
|
||||
|
||||
<nav class="navigation" role="navigation">
|
||||
<%= link_to "Back to app", root_url, class: "button button--alt" %>
|
||||
<%= link_to "Logout", super_admin_logout_url , class: "button button--alt" %>
|
||||
|
||||
<%= link_to "Dashboard", super_admin_root_url, class: "button button--alt" %>
|
||||
|
||||
<% Administrate::Namespace.new(namespace).resources.each do |resource| %>
|
||||
<%= link_to(
|
||||
display_resource_name(resource),
|
||||
@@ -24,4 +23,8 @@ as defined by the routes in the `admin/` namespace
|
||||
<% end %>
|
||||
|
||||
<%= link_to "Sidekiq", sidekiq_web_url , class: "button" %>
|
||||
|
||||
<div style="margin-top: 300px;">
|
||||
<%= link_to "Logout", super_admin_logout_url , class: "button button--alt" %>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
<div class="small-12 medium-4 column">
|
||||
<%= form_for(resource, as: resource_name, url: '/super_admin/sign_in', html: { class: 'login-box column align-self-top'}) do |f| %>
|
||||
<div class="column log-in-form">
|
||||
<% if flash[:error].present? %>
|
||||
<div data-alert class="alert-box warning"><%= flash[:error] %></div>
|
||||
<% end %>
|
||||
<label>
|
||||
Email
|
||||
<%= f.email_field :email, autofocus: true, autocomplete: "email", placeholder: "Email eg: someone@example.com" %>
|
||||
|
||||
Reference in New Issue
Block a user