Changeset 406146f in firmaeventos


Ignore:
Timestamp:
Nov 22, 2017, 1:35:30 PM (6 years ago)
Author:
lhernandez <lhernandez@…>
Branches:
master
Children:
fd66636
Parents:
aef49cb
Message:

Configuracion de la firma en el registro del evento implementada

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • eventos/templates/register.event.html

    r6312fce r406146f  
    5858
    5959{% block content %}
    60     <div class="content center">
     60    <div class="content">
     61      <div class="center">
    6162        <h5>Datos del Evento</h5><hr/><br>
    6263        <form id="form" method="post" enctype="multipart/form-data">
     
    7980                <div class="btn">
    8081                <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">
    8283                </div>
    8384                <div class="file-path-wrapper">
     
    8788               
    8889            </div>
     90          </div>
     91            <div class="col s8 m2 offset-s2">
    8992            <div id="pdf-main-container" style="display:none;"><center><h5>Configurar Posicion de la Firma</h5></center>
    9093                  <div id="pdf-loader2">Cargando documento ...</div>
     
    9295                    <div id="pdf-meta2">
    9396                      <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>
    10099                      </div>
    101100                      <div id="page-count-container">Página <div id="pdf-current-page2"></div> de <div id="pdf-total-pages2"></div></div>
    102101                    </div>
     102                    <img class="text" src="{% static 'img/QRCode.png' %}" id="texto"/>
    103103                    <div class="overflow" >
    104104                      <div id="container1" class=".cropper-hidden">
     
    112112                    <div id="page-loader2">Cargando página ...</div>
    113113              </div>
     114            </div>
     115            <div class="center">
    114116            <h5>Datos de los Participantes</h5><hr/><br>
    115117            <table class="striped" id="id_orders_table">
     
    144146                </tbody>
    145147            </table>
    146             <div>
     148            </div>
     149            <div class="center">
     150                {{ form.pos_x }}
     151                {{ form.pos_y }}
     152                {{ form.pag }}
    147153                <button type="submit" class="btn waves-effect blue darken-1">Registrar</button>
    148154            </div>
  • static/css/style.css

    r4db73c3 r406146f  
    5252    color: #1e88e5;
    5353}
     54
     55.overflow {
     56  position: relative;
     57  overflow: auto;
     58  width: 100%;
     59}
  • static/js/DraggableSortable.js

    r6312fce r406146f  
    3434          VALOR_X = parseInt(ui.position['left']);
    3535          VALOR_Y = parseInt(ui.position['top']);
     36          console.log(VALOR_X, VALOR_Y)
    3637        }
    37        
     38        $('#id_pos_x').val(VALOR_X)
     39        $('#id_pos_y').val(VALOR_Y)
     40        $('#id_pag').val(__CURRENT_PAGE)
    3841      },
    3942   
  • static/js/docsDraggable.js

    r6312fce r406146f  
    110110
    111111  // 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) {
    113113      alert('Error : Not a PDF');
    114114      return;
     
    128128
    129129  // 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]));
    131131
    132132
Note: See TracChangeset for help on using the changeset viewer.