index.html.erb 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!-- BEGIN CONTAINER -->
  2. <div class="page-container">
  3. <!-- BEGIN CONTENT -->
  4. <div class="page-content-wrapper">
  5. <!-- BEGIN CONTENT BODY -->
  6. <!-- BEGIN PAGE HEAD-->
  7. <div class="page-head">
  8. <div class="container-fluid">
  9. <!-- BEGIN PAGE TITLE -->
  10. <div class="page-title">
  11. <h1>Productos </h1>
  12. </div>
  13. <!-- END PAGE TITLE -->
  14. </div>
  15. </div>
  16. <!-- END PAGE HEAD-->
  17. <!-- BEGIN PAGE CONTENT BODY -->
  18. <div class="page-content">
  19. <div class="container-fluid">
  20. <!-- BEGIN PAGE BREADCRUMBS -->
  21. <ul class="page-breadcrumb breadcrumb">
  22. <%= render_breadcrumbs :tag => :li, :separator => ' <i class="fa fa-circle"></i> ' %>
  23. </ul>
  24. <!-- END PAGE BREADCRUMBS -->
  25. <!-- BEGIN PAGE CONTENT INNER -->
  26. <div class="page-content-inner">
  27. <div id="notice">
  28. <% if success %>
  29. <div class="alert alert-success">
  30. <p><%= success %></p>
  31. </div>
  32. <% elsif warning %>
  33. <div class="alert alert-warning">
  34. <p><%= warning %></p>
  35. </div>
  36. <% end %>
  37. </div>
  38. <div class="row">
  39. <div class="col-md-12">
  40. <div class="portlet light ">
  41. <div class="portlet-title">
  42. <div class="caption">
  43. <i class="fa fa-list "></i>
  44. <span class="caption-subject bold uppercase">Lista de productos</span>
  45. </div>
  46. <div class="actions">
  47. <% if can? :create, Product %>
  48. <%= link_to new_product_path(:filter => @filter, :current_page => @current_page), {:class=>"btn bold green pull-right filtros"} do %>
  49. Nuevo Producto <i class="fa fa-plus"></i>
  50. <% end %>
  51. <% end %>
  52. </div>
  53. </div>
  54. <div class="portlet-body">
  55. <%= hidden_field_tag 'columns_definition', @column_definition %>
  56. <input type='hidden' name='filter' id='filter' value='<%= @filter %>' >
  57. <input type='hidden' name='current_page' id='current_page' value='<%= @current_page %>' >
  58. <table id='la_tabla' class="table table-striped table-bordered table-hover tableadvancedAjax" data-source="<%= products_url(format: "json") %>">
  59. <thead>
  60. <tr>
  61. <th>#</th>
  62. <th>Imagen</th>
  63. <th>Producto</th>
  64. <% if current_user.usertype == "A" || current_user.usertype == "SS" %>
  65. <th>Precio compra</th>
  66. <% end %>
  67. <th>Precio venta</th>
  68. <th>Línea</th>
  69. <th>Status</th>
  70. <th width="15%">Acciones</th>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. </tbody>
  75. </table>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <!-- END PAGE CONTENT INNER -->
  82. </div>
  83. </div>
  84. <!-- END PAGE CONTENT BODY -->
  85. <!-- END CONTENT BODY -->
  86. </div>
  87. <!-- END CONTENT -->
  88. </div>
  89. <!-- END CONTAINER -->