update membershp payment method

This commit is contained in:
Aung Myo
2018-09-13 18:03:48 +06:30
parent b1480a5066
commit 85fcd43ac2
5 changed files with 37 additions and 11 deletions

View File

@@ -9,15 +9,25 @@
<div class="form-inputs p-l-15">
<%= f.input :payment_method %>
<%= f.input :is_active %>
<%= f.input :gateway_communication_type %>
<%= f.input :gateway_url %>
<%= f.input :auth_token %>
<%= f.input :merchant_account_id %>
<%= f.input :additional_parameters %>
<!-- <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", "Default", "Device"] %>
<%= 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 btn-lg waves-effect' %>
<%= f.submit "Submit",:class => 'btn btn-primary submitBtn btn-lg waves-effect' %>
</div>
<% end %>
</div>
@@ -50,4 +60,19 @@
</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>
-->