Skip to content

Instantly share code, notes, and snippets.

@ShaileshPrajapati-BTC
Last active January 24, 2017 13:16
Show Gist options
  • Save ShaileshPrajapati-BTC/a2f8f5084b5020efae3f0ecafabe212e to your computer and use it in GitHub Desktop.
Save ShaileshPrajapati-BTC/a2f8f5084b5020efae3f0ecafabe212e to your computer and use it in GitHub Desktop.
<h3>Convert Currency to Bitcoin</h3>
<div class="row">
<div class="col-sm-3">
<span class="label label-default">Select Currency</span>
<%= select_tag 'Currency', options_for_select(@Currency.keys),class:'form-control' %>
</div>
<div class = "col-sm-3">
<span class="label label-default">Enter Value</span>
<%= text_field_tag :value,"", class: 'form-control' %>
</div>
<div class = "col-sm-3">
<span class="label label-default">Convert to Bitcoin</span>
<%= submit_tag "Submit", :id => "convert", :class => "form-control" %>
</div>
</div>
<br><br>
<div class="row ">
<div class="col-sm-10 text-center">
<h3 id="result"/>
</div>
</div>
<br><br>
<h3>Convert Bitcoin to Currency</h3>
<div class="row">
<div class = "col-sm-3">
<span class="label label-default">Enter Bitcoin </span>
<%= number_field_tag :bitcoin_value,"", class: 'form-control' %>
</div>
<div class="col-sm-3">
<span class="label label-default">Select Currency</span>
<%= select_tag 'BCurrency', options_for_select(@Currency.keys),class:'form-control' %>
</div>
<div class = "col-sm-3">
<span class="label label-default">Bitcoin to Currency</span>
<%= submit_tag "Submit", :id => "bittocurrency", :class => "form-control" %>
</div>
</div>
<br><br>
<div class="row ">
<div class="col-sm-10 text-center">
<h3 id="bit_to_curr"/>
</div>
</div>
<br><br>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment