Skip to content

Commit

Permalink
The html form was restructured.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbdavide committed Oct 11, 2017
1 parent 1a8dcbe commit cf0a748
Showing 1 changed file with 51 additions and 22 deletions.
73 changes: 51 additions & 22 deletions sales/templates/sales/register.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
Expand All @@ -12,46 +12,74 @@

<!-- Content -->
<div class="container">

<h1>Ingresar Venta</h1>
<form>

<form id="get_product">
<h3>Producto</h3>
<div class="form-group">

<label for="product-bar-code">Código: </label>
<input type="text" class="form-control" id="bar_code" placeholder="Código del producto" autofocus>

<label for="product-name">Nombre: </label>
<input type="text" class="form-control" id="name" readonly>

<div class="row">
<div class="col">
<label for="product-price">Precio: </label>
<label for="product-bar-code">Código: </label>
<div class="input-group">
<span class="input-group-addon">$</span>
<input type="text" id="price" class="form-control input-right" aria-label="Precio" placeholder="0" readonly="">
<span class="input-group-addon">.00</span>
<input type="text" class="form-control" id="bar_code" placeholder="Código del producto" autofocus>
<button type="submit" id="remove_product" class="btn btn-primary">
<span class="icon-search"></span>
</button>
</div>
</div>
<div class="col">
<label for="product-amount">Cantidad: </label>
<label for="product-price">Precio: </label>
<div class="input-group">
<button type="button" id="add_product" class="btn btn-danger">
<span class="icon-minus label"></span>
</button>
<input type="text" class="form-control input-right" id="amount" placeholder="0" readonly>
<button type="button" id="remove_product" class="btn btn-success">
<span class="icon-plus label"></span>
</button>
</div>
<span class="input-group-addon">$</span>
<input type="text" id="price" class="form-control input-right" aria-label="Precio" placeholder="0" readonly="">
<span class="input-group-addon">.00</span>
</div>
</div>
</div>

<div class="form-group">
<label for="product-name">Nombre: </label>
<input type="text" class="form-control" id="name" readonly>
</div>

</div>
</form>

<form id="register">
<div class="form-group">
<label for="bar-code">Descripción: </label>
<input type="text" class="form-control" id="descripcion" placeholder="Descripción">
</div>
<div class="form-group">
<label for="bar-code">Cédula Vendedor: </label>
<div class="input-group">
<span class="input-group-addon">C.C.</span>
<input type="text" class="form-control" id="cedula" placeholder="Cédula">
</div>
</div>
<div class="row">
<div class="col">
<label for="product-price">Porcentaje Vendedor: </label>
<div class="input-group">
<input type="text" id="price" class="form-control input-right" aria-label="Porcentaje" placeholder="0">
<span class="input-group-addon">%</span>
</div>
</div>
<div class="col">
<label for="product-amount">Cantidad: </label>
<div class="input-group">
<button type="button" id="remove_product" class="btn btn-danger">
<span class="icon-minus label"></span>
</button>
<input type="text" class="form-control input-right" id="amount" placeholder="0">
<button type="button" id="add_product" class="btn btn-success">
<span class="icon-plus label"></span>
</button>
</div>
</div>
</div>

<button type="submit" class="btn btn-primary">Enviar</button>

</form>
Expand All @@ -62,5 +90,6 @@ <h3>Producto</h3>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
<script src="/static/js/app.js"></script>
</body>
</html>

0 comments on commit cf0a748

Please sign in to comment.