src/ApplicationBundle/Resources/views/pages/system/modals/approve_document_modal.html.twig line 1

Open in your IDE?
  1. <style>
  2.     #approveDocument .radio input[type="radio"]{
  3.         margin-left: 0px;
  4.     }
  5.     #approveDocument .radio input[type="radio"]:not(:checked)+.btn.btn-success,
  6.     #approveDocument .radio input[type="radio"]:not(:checked)+label.btn.btn-info,
  7.     #approveDocument .radio input[type="radio"]:not(:checked)+label.btn.btn-primary,
  8.     #approveDocument .radio input[type="radio"]:not(:checked)+label.btn.btn-danger
  9.     {
  10.         background-color: #f2f3f3;
  11.     }
  12.     #approveDocument .radio input[type="radio"]:not(:checked)+label.btn.btn-success
  13.     {
  14.         color: #4caf50;
  15.     }
  16.     #approveDocument .radio input[type="radio"]:not(:checked)+label.btn.btn-info
  17.     {
  18.         color: #0c7cd5;
  19.     }
  20.     #approveDocument .radio input[type="radio"]:not(:checked)+label.btn.btn-primary
  21.     {
  22.         color: #077871;
  23.     }
  24.     #approveDocument .radio input[type="radio"]:not(:checked)+label.btn.btn-danger
  25.     {
  26.         color: #ea1c0d;
  27.     }
  28.     #approveDocument .radio input[type="radio"]:checked+label.btn.btn-success,
  29.     #approveDocument .radio input[type="radio"]:checked+label.btn.btn-info,
  30.     #approveDocument .radio input[type="radio"]:checked+label.btn.btn-primary,
  31.     #approveDocument .radio input[type="radio"]:checked+label.btn.btn-danger
  32.     {
  33.         /*color: unset;*/
  34.         /*background-color: unset;*/
  35.     }
  36. </style>
  37. {% if not approval_data is defined %}
  38.     {% set approval_data={} %}
  39. {% endif %}
  40. <div class="modal fade" id="approveDocument" tabindex="-1" role="dialog" aria-labelledby="approveDocument">
  41.     <div class="modal-dialog" role="document">
  42.         <div class="modal-content">
  43.             <div class="modal-header">
  44.                 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  45.                 <h4 class="modal-title" id="myModalLabel">Approve Document</h4>
  46.             </div>
  47.             <form class="form" method="post" id="approval_form" action="{{ url('approve_document') }}" >
  48.             <div class="modal-body">
  49.                     <div class="body">
  50.                         <div class="form-group" style="text-align: center;">
  51.                             <h5>Select an Action</h5>
  52.                             <div class="radio" >
  53.                                 <input type="radio" style="position: relative;"  id="radio1" name="approvalAction" value="1">
  54.                                 <label for="radio1" class="btn btn-success"  style="min-width: 80%;" >Approve</label>
  55.                             </div>
  56.                             <div class="radio" >
  57.                                 <input type="radio" style="position: relative;"  id="radio2" name="approvalAction" value="2" >
  58.                                 <label for="radio2" class="btn btn-info"  style="min-width: 80%;" >Revert</label>
  59.                             </div>
  60.                             <div class="radio " >
  61.                                 <input type="radio" style="position: relative;" name="approvalAction" id="forward_doc_check" value="3" >
  62.                                 <label class="btn btn-primary" id="forward_doc_check_label"  style="min-width: 80%;" for="radio3" >Forward</label>
  63.                             </div>
  64.                             <div class="radio " >
  65.                                 <input type="radio" style="position: relative;" id="radio4" name="approvalAction" value="0" >
  66.                                 <label for="radio4" class="btn btn-danger"  style="min-width:80%;"  >Decline </label>
  67.                             </div>
  68.                         </div>
  69.                         <div class="form-group" id="forward_doc_div" style="display: none">
  70.                             <label for="inputEmail3">Forward To:</label>
  71.                                 <select name="forwardTo" class="form-control "  id="approveDocumentForwardUserList">
  72.                                     {#<option value="">Select User...</option>#}
  73. {#                                    {% if approval_data.userList is defined %}#}
  74. {#                                    {% for user in approval_data.userList %}#}
  75. {#                                        <option value="{{ user['id'] }}">{{ user['name'] }}-{{ user['position'] }}</option>#}
  76. {#                                    {% endfor %}#}
  77. {#                                    {% endif %}#}
  78.                                 </select>
  79.                         </div>
  80.                             <div class="row">
  81.                                 <div class="form-group" id="approvalHash" style="">
  82.                             <div class="col col-md-12 col-sm-12">
  83.                                 <b>Please provide your approval hash</b>
  84.                                 <div class="input-group">
  85.                                     <div class="form-line">
  86.                                         <input type="password" class="form-control"  autocomplete="off" id="approveDocumentApprovalHash" name="approvalHash" placeholder="Enter ...">
  87.                                     </div>
  88.                                      <span class="input-group-addon mobile_only approval_submit" style="padding-top: 0px;">
  89.                                                <button type="submit" class="btn btn-primary " style="">Confirm</button>
  90.                                             </span>
  91.                                 </div>
  92.                             </div>
  93.                             {#<div class="col col-md-6 col-sm-6">#}
  94.                                 {#<button type="submit" class="btn btn-primary ">Confirm</button>#}
  95.                             {#</div>#}
  96.                             </div>
  97.                             {#<label for="inputEmail3" class="col-sm-6 control-label">Please provide your approval hash</label>#}
  98.                                 {#<input type="password" class="form-control col-sm-6" autocomplete="off" name="approvalHash" placeholder="Enter ...">#}
  99.                             {#<button type="submit" class="btn btn-primary ">Confirm</button>#}
  100.                         </div>
  101.                         <div class="form-group">
  102.                             <textarea name="approvalNote" class="form-control" rows="3" placeholder="Your Comment Or Note"></textarea>
  103.                         </div>
  104. {#                        <input type="hidden" name="approvalRowId" id="approvalRowEqId"  value="_UNSET_">#}
  105.                         <input type="hidden" name="approvalEntity" id="approvalEntity"  value="{{ approval_data.entity is defined ? approval_data.entity :'' }}">
  106.                         <input type="hidden" name="approvalId" id="approvalId" value="{{ approval_data.approvalId is defined ? approval_data.approvalId :'' }}">
  107.                         <input type="hidden" name="approvalEntityId" id="approvalEntityId" value="{{ approval_data.entityId is defined ? approval_data.entityId :'' }}">
  108.                     </div>
  109.                     <!-- /.body -->
  110.                     <!-- /.body -->
  111.             </div>
  112.             <div class="modal-footer" style="text-align: center">
  113.                 {#<button type="submit" class="btn btn-primary ">Confirm</button>#}
  114.                 {#<button type="button" class="btn btn-link waves-effect printOptionsModalPrintButton">PRINT</button>#}
  115.                 {#<button type="button" class="btn btn-link waves-effect" data-dismiss="modal">CLOSE</button>#}
  116.             </div>
  117.             </form>
  118.         </div>
  119.     </div>
  120. </div>