[10f099e] | 1 | {% extends "base.inicio.html" %} |
---|
[3fa4fdc] | 2 | {% block titulo %}Registrar Organización Social - SAPIC {% endblock titulo %} |
---|
[10f099e] | 3 | {% block extracss %} |
---|
| 4 | {% load staticfiles %} |
---|
[3fa4fdc] | 5 | <link href="{% static 'bootstrap-3/css/bootstrap-toggle.min.css'%}" rel="stylesheet"> |
---|
| 6 | <link rel="stylesheet" href="{% static 'plugins/datepicker/datepicker3.css' %}"> |
---|
[10f099e] | 7 | {% endblock extracss %} |
---|
| 8 | {% block extrajs %} |
---|
[3fa4fdc] | 9 | <script src="{% static 'bootstrap-3/js/bootstrap-toggle.min.js'%}"></script> |
---|
| 10 | <script src="{% static 'js/formset.js'%}"></script> |
---|
| 11 | <script src="{% static 'plugins/datepicker/moment-with-locales.js' %}"></script> |
---|
| 12 | <!-- bootstrap datepicker --> |
---|
| 13 | <script src="{% static 'plugins/datepicker/bootstrap-datepicker.js' %}"></script> |
---|
| 14 | <script type="text/javascript"> |
---|
| 15 | $(function() { |
---|
| 16 | $('#id_orders_table tbody tr').formset({ |
---|
| 17 | // For inline formsets, be sure to set the prefix, as the default prefix |
---|
| 18 | // ('form') isn't correct. |
---|
| 19 | // Django appears to generate the prefix from the lowercase plural |
---|
| 20 | // name of the related model, with camel-case converted to underscores. |
---|
| 21 | prefix: 'vocero_set' |
---|
| 22 | }) |
---|
| 23 | }) |
---|
| 24 | $(function(){ |
---|
| 25 | $('#municipio, #parroquia').hide() |
---|
| 26 | $('#id_estado').change(function(event){ |
---|
| 27 | var url_mun = "{% url 'utils:obtener_municipios' %}" |
---|
| 28 | cargar_municipios($(this).val(), url_mun); |
---|
| 29 | }) |
---|
| 30 | $('#id_municipio').change(function(event){ |
---|
| 31 | var url_parr = "{% url 'utils:obtener_parroquias' %}" |
---|
| 32 | cargar_parroquias($(this).val(), url_parr); |
---|
| 33 | }) |
---|
| 34 | var eliminar = "<i class='fa fa-remove' title='Eliminar Tabla'>" |
---|
| 35 | $('.delete-row').text(''); |
---|
| 36 | $('.delete-row').append(eliminar); |
---|
| 37 | $('.add-row').click(function(event) { |
---|
| 38 | $('.delete-row').text(""); |
---|
| 39 | $('.delete-row').append(eliminar); |
---|
| 40 | }); |
---|
| 41 | var agregar = "<i class='fa fa-plus-circle' title='Agregar'>"; |
---|
| 42 | $('.add-row').html("<b>Agregar</b>"); |
---|
| 43 | $('.add-row').append(agregar); |
---|
| 44 | }); |
---|
| 45 | </script> |
---|
| 46 | <script type="text/javascript" src="{% static 'utils/list_ubicacion.js' %}"></script> |
---|
| 47 | <script type="text/javascript" src="{% static 'organizaciones/registro_organizaciones.js' %}"></script> |
---|
[10f099e] | 48 | {% endblock extrajs %} |
---|
| 49 | {% block contenido %} |
---|
[3fa4fdc] | 50 | <section class="contenido-sapic"> |
---|
| 51 | <div class="container-fluid"> |
---|
| 52 | <div class="row"> |
---|
[502a0f2] | 53 | |
---|
| 54 | |
---|
[3fa4fdc] | 55 | <!-- Menú lateral de navegación - INICIO --> |
---|
| 56 | <aside class="col-xs-12"> |
---|
| 57 | <div class="panel-sapic-nav"> |
---|
| 58 | <ul class="nav nav-tabs"> |
---|
| 59 | <li role="presentation" class="active"><a href="{% url 'organizaciones:registrar_organizacion' %}">Registrar organización social</a></li> |
---|
| 60 | <li role="presentation"><a href="{% url 'organizaciones:listar_organizacion' %}">Consultar organización social</a></li> |
---|
| 61 | </ul> |
---|
| 62 | </div> |
---|
| 63 | </aside> |
---|
| 64 | <!-- Menú lateral de navegación - FINAL --> |
---|
[502a0f2] | 65 | |
---|
[3fa4fdc] | 66 | |
---|
| 67 | <!-- Fomulario de registro - INICIO --> |
---|
| 68 | <div class="col-xs-12"> |
---|
| 69 | <div class="panel-sapic"> |
---|
| 70 | <div class="content-header"> |
---|
| 71 | <h2> Registro de Organizaciones Sociales </h2> |
---|
| 72 | </div> |
---|
| 73 | <div class="content"> |
---|
| 74 | <div class="box box-primary p-5"> |
---|
| 75 | <form id="form_project" method="post"> |
---|
| 76 | {% csrf_token %} |
---|
| 77 | |
---|
| 78 | <div class="row pb-3"> |
---|
| 79 | <div class="col-xs-12 col-sm-6"> |
---|
| 80 | {{forms.organizacion_social.fk_tipo_organizacion.label}} |
---|
| 81 | {{forms.organizacion_social.fk_tipo_organizacion}} |
---|
| 82 | </div> |
---|
| 83 | <div class="col-xs-12 col-sm-6"> |
---|
| 84 | {{forms.organizacion_social.codigo.label}} |
---|
| 85 | {{forms.organizacion_social.codigo}} |
---|
| 86 | </div> |
---|
| 87 | </div> |
---|
| 88 | |
---|
| 89 | <div class="row pb-3"> |
---|
| 90 | <div class="col-xs-12 col-sm-6"> |
---|
| 91 | {{forms.organizacion_social.rif.label}} |
---|
| 92 | {{forms.organizacion_social.rif}} |
---|
| 93 | </div> |
---|
| 94 | <div class="col-xs-12 col-sm-6"> |
---|
| 95 | {{forms.organizacion_social.situr.label}} |
---|
| 96 | {{forms.organizacion_social.situr}} |
---|
| 97 | </div> |
---|
| 98 | </div> |
---|
| 99 | |
---|
| 100 | <div class="row pb-3"> |
---|
| 101 | <div class="col-xs-12 col-sm-6"> |
---|
| 102 | {{forms.organizacion_social.nombre.label}} |
---|
| 103 | {{forms.organizacion_social.nombre}} |
---|
| 104 | </div> |
---|
| 105 | <div class="col-xs-12 col-sm-6"> |
---|
| 106 | {{forms.organizacion_social.email.label}} |
---|
| 107 | {{forms.organizacion_social.email}} |
---|
| 108 | </div> |
---|
| 109 | </div> |
---|
| 110 | |
---|
| 111 | <div class="row pb-3"> |
---|
| 112 | <div class="col-xs-12 col-sm-6"> |
---|
| 113 | {{forms.organizacion_social.fecha_conformacion.label}} |
---|
| 114 | {{forms.organizacion_social.fecha_conformacion}} |
---|
| 115 | </div> |
---|
| 116 | <div class="col-xs-12 col-sm-6"> |
---|
| 117 | {{forms.organizacion_social.sector.label}} |
---|
| 118 | {{forms.organizacion_social.sector}} |
---|
| 119 | </div> |
---|
| 120 | </div> |
---|
| 121 | |
---|
| 122 | <div class="row pb-5"> |
---|
| 123 | <div class="col-xs-12 col-sm-4"> |
---|
| 124 | {{forms.organizacion_social.estado.label}} |
---|
| 125 | {{forms.organizacion_social.estado}} |
---|
| 126 | </div> |
---|
| 127 | <div class="col-xs-12 col-sm-4" id="municipio"> |
---|
| 128 | {{forms.organizacion_social.municipio.label}} |
---|
| 129 | {{forms.organizacion_social.municipio}} |
---|
| 130 | </div> |
---|
| 131 | <div class="col-xs-12 col-sm-4" id="parroquia"> |
---|
| 132 | {{forms.organizacion_social.localidad.label}} |
---|
| 133 | {{forms.organizacion_social.localidad}} |
---|
| 134 | </div> |
---|
| 135 | </div> |
---|
| 136 | |
---|
| 137 | <div class="row pb-3"> |
---|
| 138 | <div class="col-xs-12"> |
---|
| 139 | <span class="pr-3">{{forms.organizacion_social.activa.label}}</span> |
---|
| 140 | {{forms.organizacion_social.activa}} |
---|
| 141 | </div> |
---|
| 142 | </div> |
---|
| 143 | |
---|
| 144 | <div class="row"> |
---|
| 145 | <div class="col-xs-12 has-feedback"> |
---|
| 146 | <div class="box p-3"> |
---|
| 147 | <div class="box-header"> |
---|
| 148 | <h3 class="box-title"> |
---|
| 149 | Voceros |
---|
| 150 | </h3> |
---|
| 151 | </div> |
---|
| 152 | <div class="box-body table-responsive no-padding"> |
---|
| 153 | <table class="table table-hover " id="id_orders_table"> |
---|
| 154 | <thead> |
---|
| 155 | <tr> |
---|
| 156 | <th scope="col">Documento de Identidad</th> |
---|
| 157 | <th scope="col">Nombres y Apellidos</th> |
---|
| 158 | </tr> |
---|
| 159 | </thead> |
---|
| 160 | <tbody> |
---|
| 161 | {{ forms.voceros.management_form }} |
---|
| 162 | {% for form in forms.voceros %} |
---|
| 163 | <tr id="{{ form.prefix }}-row"> |
---|
| 164 | <td> |
---|
| 165 | {{ form.fk_tipo_documento }} |
---|
| 166 | {{ form.documento_identidad }} |
---|
| 167 | </td> |
---|
| 168 | <td> |
---|
| 169 | {{ form.nombres }} {{ form.apellidos }} |
---|
| 170 | </td> |
---|
| 171 | <td class="text-center"></td> |
---|
| 172 | </tr> |
---|
| 173 | {% endfor %} |
---|
| 174 | </tbody> |
---|
| 175 | </table> |
---|
| 176 | </div> |
---|
| 177 | </div> |
---|
| 178 | </div> |
---|
| 179 | </div> |
---|
| 180 | |
---|
| 181 | <div class="row"> |
---|
| 182 | <div class="col-xs-12 col-sm-6 col-sm-offset-3"> |
---|
| 183 | <button type="submit" class="btn btn-primary btn-block btn-fla">Registrar Organización</button> |
---|
| 184 | </div> |
---|
| 185 | </div> |
---|
| 186 | |
---|
| 187 | </form> |
---|
| 188 | </div> |
---|
[502a0f2] | 189 | </div> |
---|
[cd20b73] | 190 | </div> |
---|
[49db2df] | 191 | </div> |
---|
[3fa4fdc] | 192 | <!-- Fomulario de registro - FINAL --> |
---|
| 193 | |
---|
| 194 | |
---|
| 195 | </div> |
---|
[10f099e] | 196 | </div> |
---|
[3fa4fdc] | 197 | </section> |
---|
[10f099e] | 198 | {% endblock contenido %} |
---|