demands_component.html

 1   <#include "/commons_site.html"/>
 2   <#include "demand_component_util.html"/>
 3   
 4   <#if crm_user?has_content>
 5       <!-- Doesn't display the draft block if the checkbox is not checked in the parameters -->
 6       
 7       <div class="panel panel-mcp" id="demandes">
 8           <div class="panel-heading hidden">
 9             <a name="mesdemandes"></a>
 10             <h4 class="panel-title">
 11               <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseMyRequests" aria-expanded="true" aria-controls="collapseMyRequests">
 12                  Mes demandes
 13               </a>
 14             </h4>
 15           </div>
 16           <div class="panel-body">
 17           <div class="table-responsive">
 18              
 19             <form method="post" action="" class="form">
 20              <input type="hidden" name="session" value="true">
 21               <#if demands_list?has_content>
 22                   
 23                   <@tabDemands listDemand=demands_list displayArchiveAction=true/>
 24               </form>
 25                 <form method="post" action="">
 26                   <input type="hidden" name="session" value="true">
 27                </form>
 28                   <@paginationSite paginator/>
 29               <#else>
 30                 <table class="table table-hover">
 31                   <thead>
 32                     <tr>
 33                       <th></th>
 34                       <th><span>Date</span></th>
 35                       <th><span>#i18n{crm.crm.columnStatus}</span></th>
 36                       <th><span>#i18n{crm.crm.columnNotification}</span></th>
 37                     </tr>
 38                   </thead>
 39                   <tbody>
 40                        <tr>
 41                              <td></td>
 42                              <td colspan="3" class="text-center text-warning">
 43                                        <i class="fa fa-warning"></i>  Aucune demande en cours.
 44                              </td>
 45                          </tr>
 46                      </tbody>
 47                    </table>
 48                  </#if>
 49                  </div>
 50               </div>
 51           </div>
 52     
 53   </#if>
 54   
 55   
 56   
 57   
 58       
 59   <script>
 60   
 61   
 62   /*
 63   $( function() {
 64     $(".navbar-nav > li").removeClass("active");
 65       $(".navbar-nav > li#demarches").addClass("active");
 66   });
 67   */
 68   </script>