45 lines
1.4 KiB
HTML
45 lines
1.4 KiB
HTML
<form action="" method="post">
|
|
{% csrf_token %}
|
|
|
|
|
|
<div class="row lign-items-center">
|
|
<div class="form-group col-md-3">
|
|
<label for="articulo_id">Articulo</label>
|
|
<select class="form-control" name="articulo" id="articulo_id" data-placeholder="Selecciona Articulos">
|
|
{% for articulo in articulo %}
|
|
<option value="{{articulo.id}}">{{forloop.counter}} - {{articulo.articulo}} - {{articulo.cantidad}}</option>
|
|
{% endfor %}
|
|
</select>
|
|
|
|
{% for error in formulario_envio.errors.articulo %}
|
|
<span class="error">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="unidad_id">Unidad</label>
|
|
<select class="form-control" name="unidad" id="unidad_id">
|
|
{% for unidad in unidad %}
|
|
<option value="{{unidad.id}}"> {{forloop.counter}} - {{unidad.nombreUnidad}}</option>
|
|
{% endfor %}
|
|
</select>
|
|
{% for error in formulario_envio.errors.unidad %}
|
|
<span class="error">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="form-group col-md-2">
|
|
<label for="cantidad"> Cantidad</label>
|
|
<input type="number" class="form-control" name="cantidad" id="cantidad">
|
|
{% for error in formulario_envio.errors.cantidad %}
|
|
<span class="error">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="form-group col-md-4 d-flex align-items-center" style="padding-top: 30px;">
|
|
<button type="submit" class="btn btn-dark">+</button>
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|