<div id="notice">
  <%= notice %>
</div>

<div class="page-header">
  <h1>Realms for <%= @edorg %></h1>
</div>

<table id="realms" class="table table-hover">
  <thead>
  <tr>
    <th><%= "Name" %></th>
    <th><%= "Unique Identifier" %></th>
    <th></th>
  </tr>
  </thead>
  <tbody>
  <% @realms.each do |realm| %>
      <tr id='<%= realm.id %>'>
        <td><%= link_to(realm.name, edit_realm_management_path(realm)) %></td>
        <td><%= realm.uniqueIdentifier %></td>
        <td class="rowAction">
          <%= link_to("Custom Roles", custom_role_path(realm), :class => "btn btn-info") %>&nbsp;
          <%= link_to '<i class="fa fa-trash-o"></i>'.html_safe + '  Delete', realm_management_path(realm), :method => :delete, :remote => true,
                      confirm: 'WARNING: Deleting will prevent any user associated with this realm from authenticating and will reset role mapping. Are you sure?', :class => 'btn btn-danger' %>
        </td>
      </tr>
  <% end %>
  </tbody>
</table>

<%= link_to "Add new", new_realm_management_path, :class => "btn btn-info" %>


<div class="page-header">
  <h1>Realms for <%= @edorg %></h1>
</div>

<table id="realms" class="table table-hover">
  <thead>
  <tr>
    <th><%= "Name" %></th>
    <th><%= "Unique Identifier" %></th>
    <th></th>
  </tr>
  </thead>
  <tbody>
  <% @realms.each do |realm| %>
      <tr id='<%= realm.id %>'>
        <td><%= link_to(realm.name, edit_realm_management_path(realm)) %></td>
        <td><%= realm.uniqueIdentifier %></td>
        <td class="rowAction">
          <%= link_to("Custom Roles", custom_role_path(realm), :class => "btn btn-info") %>&nbsp;
          <%= link_to '<i class="fa fa-trash-o"></i>'.html_safe + '  Delete', realm_management_path(realm), :method => :delete, :remote => true,
                      confirm: 'WARNING: Deleting will prevent any user associated with this realm from authenticating and will reset role mapping. Are you sure?', :class => 'btn btn-danger' %>
        </td>
      </tr>
  <% end %>
  </tbody>
</table>

<%= link_to "Add new", new_realm_management_path, :class => "btn btn-info" %>


Remove extra flash notice div
Remove extra flash notice div
