Created
January 2, 2020 21:17
-
-
Save victorgiraldes/935fa0871e14ce0039629bf691bcaaad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='row p-10'> | |
<div class='form-group'> | |
<div class='col-xs-6'> | |
<span class='form-control-static'>Produto</span> | |
<br> | |
<%- if d.object.id %> | |
<h4 class='m-t-10'><%= "#{d.object.input.commercial} " %> </h4> | |
<% else %> | |
<span class='select'> | |
<%= d.select :input_group_id, | |
grouped_options_for_select(@products, d.object.input_group_id), | |
{prompt: "Selecione o Produto"}, | |
class: 'form-control input_select' | |
%> | |
</span> | |
<% end %> | |
</div> | |
<div class='col-xs-2 text-center'> | |
<span class='form-control-static'> Estoque </span> | |
<h4> | |
<br> | |
<span class='amount_input'> </span> | |
</h4> | |
</div> | |
<div class='col-xs-3'> | |
<span class="form-control-static">Estoque Correto</span> <br> | |
<%- if d.object.id %> | |
<h4 class='m-t-10'><%= d.object.value_change %></h4> | |
<% else %> | |
<%= d.text_field :amount, class: 'form-control', "data-mask" => "number" %> | |
<% end %> | |
</div> | |
<div class='col-xs-1'> | |
<%= d.link_to_remove image_tag('delete.png'), title: 'Remover Item' %> | |
</div> | |
</div> | |
<div class='col-xs-12'> | |
<hr> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment