Conjunto b85c099 en seiven
- Fecha y hora:
- 09/05/2017 09:31:30 (hace 7 años)
- Branches:
- master, carga
- Children:
- 3608aa6
- Parents:
- 55b55b6
- Ficheros:
-
- 2 añadidos
- 5 editados
Leyenda
- No modificado
- Añadido
- Eliminado
-
productivo/templates/productivo.menu.area.html
r55b55b6 rb85c099 13 13 <div class="col-md-3"> 14 14 <img src="{% static 'img/area-productiva/unidad-economica.png' %}" 15 alt="{% trans 'Unidad Económica' %}" class="img-area img-responsive" data-action=""> 16 <h2 class="text-center">Unidad Económica</h2> 15 alt="{% trans 'Unidad Económica' %}" class="img-area img-responsive" 16 data-action="{% url 'consultar_unidad_economica' %}"> 17 <h2 class="text-center">{% trans 'Unidad Económica' %}</h2> 17 18 </div> 18 19 <div class="col-md-3"> 19 20 <img src="{% static 'img/area-productiva/actividades-economicas.png' %}" 20 21 alt="{% trans 'Actividades Economicas' %}" class="img-area img-responsive" data-action=""> 21 <h2 class="text-center"> Actividades Económicas</h2>22 <h2 class="text-center">{% trans 'Actividades Económicas' %}</h2> 22 23 </div> 23 24 <div class="col-md-3"> 24 25 <img src="{% static 'img/area-productiva/productos.png' %}" 25 26 alt="{% trans 'Productos' %}" class="img-area img-responsive" data-list="list_productos"> 26 <h2 class="text-center"> Productos</h2>27 <h2 class="text-center">{% trans 'Productos' %}</h2> 27 28 <ul id="list_productos" style="display: none"> 28 29 <li> … … 38 39 alt="{% trans 'Maquinaria y Equipos' %}" class="img-area img-responsive" 39 40 data-list="list_maquinaria_equipos"> 40 <h2 class="text-center"> Maquinaria y Equipos</h2>41 <h2 class="text-center">{% trans 'Maquinaria y Equipos' %}</h2> 41 42 <ul id="list_maquinaria_equipos" style="display: none"> 42 43 <li> -
productivo/urls.py
r55b55b6 rb85c099 13 13 from __future__ import unicode_literals 14 14 from django.conf.urls import url 15 from . import views as productivo_views 15 from django.contrib.auth.decorators import login_required 16 from .views import consultar_datos, UnidadEconomicaView 16 17 17 18 18 19 urlpatterns = [ 19 url(r'^consultar-datos/?$', productivo_views.consultar_datos, name='productivo-consultar-datos'), 20 url(r'^consultar-datos/?$', consultar_datos, name='productivo-consultar-datos'), 21 url(r'^consultar-datos/unidad-economica/$', login_required(UnidadEconomicaView.as_view()), 22 name="consultar_unidad_economica"), 20 23 ] 21 24 -
productivo/views.py
r55b55b6 rb85c099 15 15 from django.contrib.auth.decorators import login_required 16 16 from django.shortcuts import render 17 from django.urls import reverse_lazy 18 from django.views.generic import FormView 19 20 from .forms import UnidadEconomicaForm 17 21 18 22 … … 29 33 """ 30 34 return render(request, 'productivo.menu.area.html', {}) 35 36 37 class UnidadEconomicaView(FormView): 38 template_name = 'productivo.unidad.economica.html' 39 form_class = UnidadEconomicaForm 40 success_url = reverse_lazy('consultar_unidad_economica') -
static/css/app.css
r55b55b6 rb85c099 136 136 color: #FFFFFF; 137 137 } 138 .panel-produccion h2 { 138 .panel-produccion .panel-footer { 139 background: transparent; 140 border-top: 0; 141 } 142 .panel-produccion.menu .panel-body h2 { 139 143 color: #5C737C; 140 144 } … … 143 147 border: solid 1px #5C737C; 144 148 border-radius: 10%; 149 } 150 .panel-produccion .btn-warning { 151 background-color: #E5491E; 152 border: solid 1px #E5491E; 145 153 } 146 154 /** Fin panel producción **/ … … 275 283 } 276 284 277 285 /** Tablas **/ 286 .dataTables_wrapper { 287 border: 1px solid #5C737C; 288 border-radius: 5px; 289 padding: 10px; 290 margin-top: 20px; 291 } 292 table thead th:not(:first-child) { 293 text-align: center; 294 } 295 #datos-consultados { 296 display: none; 297 } 298 299 300 .select2-container { 301 min-width: 85px; 302 } 278 303 279 304 -
static/js/layouts.js
r9ae3a72 rb85c099 1 1 $(document).ready(function() { 2 2 var select2 = $(".select2"), refresh_captcha = $('.js-captcha-refresh'), 3 input_captcha = $('input[name="captcha_1"]'), input_fecha = $(".fecha"), 4 file = $("#file"), form_upload = $('#form-upload-file') ;3 input_captcha = $('input[name="captcha_1"]'), input_fecha = $(".fecha"), check_all = $('#check_all'), 4 file = $("#file"), form_upload = $('#form-upload-file'), data_table = $(".dataTable"); 5 5 6 6 if (select2.length > 0) { … … 84 84 }); 85 85 } 86 87 if (data_table.length) { 88 $.extend( $.fn.dataTableExt.oStdClasses, { 89 "sFilterInput": "form-control input-sm", 90 "sLengthSelect": "form-control select2" 91 }); 92 /** Inicializa los elementos del dataTable */ 93 data_table.dataTable({ 94 "language": { 95 "url": '//cdn.datatables.net/plug-ins/1.10.15/i18n/Spanish.json' 96 }, 97 "ordering": true, 98 "order": [[0, 'asc']], 99 "bDestroy": true, 100 "bPaginate": true, 101 "bInfo": true, 102 "initComplete": function(settings, json) { 103 $('.dataTables_length select').select2(); 104 } 105 }); 106 } 107 108 if (check_all.length) { 109 check_all.on('click', function() { 110 $("#result-consult").find("tbody").find("input[type='checkbox']").each(function() { 111 $(this).prop('checked', check_all.is(':checked')); 112 }); 113 }); 114 } 86 115 });
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.