
<div class="row">
  <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
    <div class="card">
      <div class="body">
        <%= simple_form_for([:settings, @settings_payment_method_setting]) do |f| %>
        <%= f.error_notification %>

        <div class="form-inputs p-l-15">
          <%= f.input :payment_method %>
          <%= f.input :is_active %>
          <!-- <div class="form-group gateway_communication_type bmd-form-group">
            <%= f.label :gateway_communication_type, 'Gateway Communication Type'%>
            <select class="form-control col-md-12 gateway_type"  name="gateway_communication_type" >
            <option value="">Select Gateway Type</option>
              <option value="Api">Api</option>
              <option value="Device">Device</option>
              <option value="Default">Default</option>
            </select> 
          </div>  -->
           <%= f.input :gateway_communication_type,:class=>'gateway_type', collection: [ "Api", "Device", "Manual"] %>
          <%= f.input :gateway_url ,:class=>'gateway_type', :required => true %>
          <%= f.input :auth_token ,:class=>'auth_token', :required => true %>
          <%= f.input :merchant_account_id ,:class=>'merchant_id', :required => true%>
          <%= f.input :additional_parameters, as: :text %>

        </div>

        <div class="form-actions p-l-15">
          <%= f.submit "Submit",:class => 'btn btn-primary submitBtn btn-lg waves-effect' %>
        </div>
        <% end %>
      </div>
    </div>
  </div>
  <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
    <div class="card">
      <div class="body">
        <h5><i class="material-icons md-18">view_headline <%= t("views.right_panel.header.page_detail") %></i></h5>
        <p>
        1) <%= t("views.right_panel.detail.payment_method") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.payment_method_txt") %> <br>
        2) <%= t("views.right_panel.detail.is_active") %> - <%= t("views.right_panel.detail.checkbox") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.is_active_txt") %> <br>
        3) <%= t("views.right_panel.detail.gateway") %> <%= t("views.right_panel.detail.comm_type") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.gateway_txt") %> <%= t("views.right_panel.detail.comm_type_txt") %> <br>
        4) <%= t("views.right_panel.detail.gateway") %> <%= t("views.right_panel.detail.url_txt") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.gateway_txt") %> <%= t("views.right_panel.detail.url_txt") %> <br>
        5) <%= t("views.right_panel.detail.auth_token") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.auth_token_txt") %>  <br>
        6) <%= t("views.right_panel.detail.merchant_account") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.merchant_account_txt") %>  <br>
        7) <%= t("views.right_panel.detail.additional_parameters") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.additional_parameters_txt") %>  <br>
        </p>
        <h5><i class="material-icons md-18">list <%= t("views.right_panel.header.button_lists") %></i> </h5>
        <p>
        1) <%= t("views.right_panel.button.submit") %> - <%= t("views.right_panel.detail.submit_btn_txt") %> <%= t("views.right_panel.detail.payment_method_txt") %> <br>
        </p>
        <h5><i class="material-icons md-18">list <%= t("views.right_panel.header.link_lists") %></i> </h5>
        <p>
          1) <%= t("views.right_panel.button.home") %> - <%= t("views.right_panel.detail.home_txt") %> <br>
          2) <%= t("views.right_panel.button.back") %> - <%= t("views.right_panel.detail.back_txt") %> <%= t("views.right_panel.detail.payment_method_txt") %> <br>
        </p>
      </div>
    </div>  
  </div>
</div>

<!--  <script type="text/javascript">
  $(function() { 
    $(document).on('click', '#payment_method_setting_gateway_communication_type', function(event){
      if ($(this).val() == "Api") {
        $('.submitBtn').attr("disabled", true);
      }else{
        $('.submitBtn').removeAttr("disabled");
      }
    });  
    $( "#payment_method_setting_gateway_url" ).keypress(function() {
      
    });
  });
</script>

 -->