Skip to content

Commit

Permalink
Made some changes in the structure of the information
Browse files Browse the repository at this point in the history
  • Loading branch information
cbdavide committed Oct 20, 2017
1 parent af56967 commit 409fab4
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 49 deletions.
65 changes: 40 additions & 25 deletions sales/templates/sales/create_expense.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,51 @@
<body>

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

<h1>Salida</h1>

<form id="register">
<div class="row">
<div class="col-lg-3"></div>
<div class="col-md-12 col-lg-6">
<div class="row" style="margin-top: 20px">
<div class="col">
<h1>Salida</h1>
</div>
<div class="col">
<div class="text-right">
<a class="btn btn-primary pull-right" href="{% url 'sales:home'%}">Regresar</a>
</div>
</div>
</div>
<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" required>
</div>
<div class="form-group">
<label for="bar-code">Descripción: </label>
<input type="text" class="form-control" id="descripcion" placeholder="Descripción" required>
</div>

<div class="row">
<div class="col">
<div class="form-group">
<label for="product-price">Precio: </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" required>
<span class="input-group-addon">.00</span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="product-price">Precio: </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" required>
<span class="input-group-addon">.00</span>
</div>
</div>
</div>
</div>

<div class="form-group">
<div class=text-right>
<button type="submit" id="enviar" class="btn btn-primary pull-right">Enviar</button>
</div>
<div class="form-group">
<div class=text-right>
<button type="submit" id="enviar" class="btn btn-primary pull-right">Enviar</button>
</div>
</div>
</form>
</div>
</form>
<div class="col-lg-3"></div>
</div>

</div>

<!-- Dependencies -->
Expand Down
12 changes: 10 additions & 2 deletions sales/templates/sales/create_product_sale.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@

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

<h1>Venta de producto</h1>
<div class="row" style="margin-top: 20px">
<div class="col">
<h1>Venta de producto</h1>
</div>
<div class="col">
<div class="text-right">
<a class="btn btn-primary pull-right" href="{% url 'sales:home'%}">Regresar</a>
</div>
</div>
</div>
<form id="get_product">

<div class="form-group">
Expand Down
12 changes: 10 additions & 2 deletions sales/templates/sales/create_service_sale.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@

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

<h1>Venta de servicio</h1>
<div class="row" style="margin-top: 20px">
<div class="col">
<h1>Venta de servicio</h1>
</div>
<div class="col">
<div class="text-right">
<a class="btn btn-primary pull-right" href="{% url 'sales:home'%}">Regresar</a>
</div>
</div>
</div>

<form id="register">
<div class="form-group">
Expand Down
47 changes: 27 additions & 20 deletions sales/templates/sales/lista.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,46 @@
</head>
<body>
<div class="container">
<table class="table table-hover table-bordered">
<thead class="thead-inverse">
<tr>
<th class="text-center"></th>
<th class="text-center">Nombre</th>
<th class="text-center">Saldo</th>
</tr>
</thead>
<div class="row" style="margin-top: 20px">
<div class="col">
</div>
<div class="col">
<div class="text-right">
<a class="btn btn-primary pull-right" href="{% url 'sales:home'%}">Regresar</a>
</div>
</div>
</div>
<h3>Ganancias</h3>
<table class="table table-hover">
<tbody id="table">
<tr id="row_base" hidden="">
<th class="text-right"scope="row"></th>
<td class=""></td>
<td colspan="2"></td>
<td class="text-right"></td>
</tr>
</tbody>
</table>
<h3>Gastos</h3>
<table class="table table-hover table-bordered">
<thead class="thead-inverse">
<tr>
<th class="text-center"></th>
<th class="text-center">Nombre</th>
<th class="text-center">Saldo</th>
</tr>
</thead>
<table class="table table-hover">
<tbody id="table_expense">
<tr id="row_base" hidden="">
<th class="text-right"scope="row"></th>
<td class=""></td>
<td colspan="2"></td>
<td class="text-right"></td>
</tr>
</tbody>
</table>
<h3>Entradas Netas:</h3>
<table class="table table-hover">
<tbody id="table_expense">
<tr id="row_base">
<td colspan="2">Ingreso en efectivo:</td>
<td class="text-right" ><span id="cash"></span></td>
</tr>
<tr id="row_base">
<td colspan="2">Ingreso en trajeta de crédito:</td>
<td class="text-right"><span id="credit"></span></td>
</tr>
</tbody>
</table>
</div>
<script src="/static/js/jquery-3.2.1.min.js"></script>
<script src="/static/js/popper.min.js"></script>
Expand Down

0 comments on commit 409fab4

Please sign in to comment.