0 like 0 dislike
1 view
in Ruby by anonymous Bilge (165k points)
rails 5 default value text field, number field, combobox, select and focus

1 Answer

0 like 0 dislike
by anonymous Bilge (165k points)
<div class="field">
<%= form.label :seq1 %>
<%= form.text_area :seq1, id: :sequpair_seq1, autofocus: true %>
</div>

<div class="field">
<%= form.label :seq2 %>
<%= form.text_area :seq2, id: :sequpair_seq2 %>
</div>

<div class="field">
<%= form.label :mattype %>
<%= form.select :mattype, options_for_select(["BLOSUM62", "PAM"]) %>
</div>

<div class="field">
<%# form.label :result %>
<%= form.hidden_field :result, id: :sequpair_result %>
</div>

<div class="field">
<%= form.label :gap %>
<%= form.number_field :gap, id: :sequpair_gap, value: -10 %>
</div>

<div class="field">
<%= form.label :mismatch %>
<%= form.number_field :mismatch, id: :sequpair_mismatch, value: -1 %>
</div>

<div class="actions">
<%= form.submit %>
</div>
En güncel teknolojiler hakkında yeni şeyler öğren, bilmediklerini sor, bildiklerini paylaş...

Categories

...