<div class="page-header">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="<%= dashboard_path %>"><%= t("views.right_panel.button.home") %></a></li>
     <li class="breadcrumb-item"><%= t("views.right_panel.detail.membership_setting") %></li>
    <span class="float-right">
      <%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
    </span>
  </ol>
</div>
<div class="card">
  <div class="card-block">
    <table class="table">
      <thead>
        <tr>
          <th>Membership type</th>
          <th>Is active</th>
          <th>Gateway communication type</th>
          <th>Gateway url</th>
          <th>Auth token</th>
          <th>Merchant account</th>
          <th>Created by</th>
          
          <th>Action</th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td><%= @settings_membership_setting.membership_type %></td>
          <td><%= @settings_membership_setting.is_active %></td>
          <td><%= @settings_membership_setting.gateway_communication_type %></td>
          <td><%= @settings_membership_setting.gateway_url %></td>
          <td><%= @settings_membership_setting.auth_token %></td>
          <td><%= @settings_membership_setting.merchant_account rescue ''%></td>
          <td><%= @settings_membership_setting.created_by %></td>
          <td colspan="" align="">
            <%= link_to t("views.btn.edit"), edit_settings_membership_setting_path(@settings_membership_setting),:class => 'btn btn-primary btn-sm waves-effect' %>
            <button class="delete btn btn-danger btn-sm waves-effect" data-ref="<%= settings_membership_settings_path(@settings_membership_setting)%>" data-method="delete" disabled>
                <%= t("views.btn.delete") %>
            </button>

            <span class="hidden" id="delete_text">
                <h6>Are you sure you want to delete this row ?</h6>
                <h6>This action can't be undo. </h6> 
            </span>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</div>

</div>


