Changeset 406146f in firmaeventos
- Timestamp:
- Nov 22, 2017, 1:35:30 PM (6 years ago)
- Branches:
- master
- Children:
- fd66636
- Parents:
- aef49cb
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
eventos/templates/register.event.html
r6312fce r406146f 58 58 59 59 {% block content %} 60 <div class="content center"> 60 <div class="content"> 61 <div class="center"> 61 62 <h5>Datos del Evento</h5><hr/><br> 62 63 <form id="form" method="post" enctype="multipart/form-data"> … … 79 80 <div class="btn"> 80 81 <span for="icon_prefix {{ form.archivo.auto_id }}">Archivo</span> 81 <input type="file" name="file" id="file" accept=" .pdf">82 <input type="file" name="file" id="file" accept="application/pdf"> 82 83 </div> 83 84 <div class="file-path-wrapper"> … … 87 88 88 89 </div> 90 </div> 91 <div class="col s8 m2 offset-s2"> 89 92 <div id="pdf-main-container" style="display:none;"><center><h5>Configurar Posicion de la Firma</h5></center> 90 93 <div id="pdf-loader2">Cargando documento ...</div> … … 92 95 <div id="pdf-meta2"> 93 96 <div id="pdf-buttons2"> 94 <button type="button" id="pdf-prev2" class="btn btn-default btn-sm"> 95 <span class="glyphicon glyphicon-step-backward"></span> 96 </button> 97 <button type="button" id="pdf-next2" class="btn btn-default btn-sm"> 98 <span class="glyphicon glyphicon-step-forward"></span> 99 </button> 97 <a class="waves-effect waves-light btn" id="pdf-prev2"><i class="material-icons">keyboard_arrow_left</i></a> 98 <a class="waves-effect waves-light btn" id="pdf-next2"><i class="material-icons">keyboard_arrow_right</i></a> 100 99 </div> 101 100 <div id="page-count-container">Página <div id="pdf-current-page2"></div> de <div id="pdf-total-pages2"></div></div> 102 101 </div> 102 <img class="text" src="{% static 'img/QRCode.png' %}" id="texto"/> 103 103 <div class="overflow" > 104 104 <div id="container1" class=".cropper-hidden"> … … 112 112 <div id="page-loader2">Cargando página ...</div> 113 113 </div> 114 </div> 115 <div class="center"> 114 116 <h5>Datos de los Participantes</h5><hr/><br> 115 117 <table class="striped" id="id_orders_table"> … … 144 146 </tbody> 145 147 </table> 146 <div> 148 </div> 149 <div class="center"> 150 {{ form.pos_x }} 151 {{ form.pos_y }} 152 {{ form.pag }} 147 153 <button type="submit" class="btn waves-effect blue darken-1">Registrar</button> 148 154 </div> -
static/css/style.css
r4db73c3 r406146f 52 52 color: #1e88e5; 53 53 } 54 55 .overflow { 56 position: relative; 57 overflow: auto; 58 width: 100%; 59 } -
static/js/DraggableSortable.js
r6312fce r406146f 34 34 VALOR_X = parseInt(ui.position['left']); 35 35 VALOR_Y = parseInt(ui.position['top']); 36 console.log(VALOR_X, VALOR_Y) 36 37 } 37 38 $('#id_pos_x').val(VALOR_X) 39 $('#id_pos_y').val(VALOR_Y) 40 $('#id_pag').val(__CURRENT_PAGE) 38 41 }, 39 42 -
static/js/docsDraggable.js
r6312fce r406146f 110 110 111 111 // Validate whether PDF 112 if(['application/pdf'].indexOf($("#file -sign-ft_Vble").get(0).files[0].type) == -1) {112 if(['application/pdf'].indexOf($("#file").get(0).files[0].type) == -1) { 113 113 alert('Error : Not a PDF'); 114 114 return; … … 128 128 129 129 // Send the object url of the pdf 130 showPDF2(URL.createObjectURL($("#file -sign-ft_Vble").get(0).files[0]));130 showPDF2(URL.createObjectURL($("#file").get(0).files[0])); 131 131 132 132
Note: See TracChangeset
for help on using the changeset viewer.