Subversion Repositories SmartDukaan

Rev

Rev 29222 | Rev 31075 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>LOGISTICS</h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                                <li><i class="icon_document_alt"></i>Provider</li>      
                                        
                        </ol>
                </div>
        </div>
        
                <form id="promoter-info-form">
                <div id="promoter-details" style="background:white;background-color:white;padding:10px;">
                        <h4 class="modelHeaderCustom" style="font-size:22px;">Provider Information</h4>
                        <div>
                                <div class = "row">
                                        <div class="col-lg-2 form-group">
                                                <input placeholder="Name" id="providerName" name="providerName" type="text" value="" class="form-control input-sm">
                                        </div>
                                        
                                        <div class="col-lg-2 form-group">
                                                <input placeholder="email" id="promoterEmail" name="promoterEmail" type="text" value="" class="form-control input-sm">
                                        </div>
                                        
                                        <div class="col-lg-2 form-group">
                                                <input placeholder="mobile" id="providerMobile" maxlength="10" minlength="10" name="providerMobile" type="text" value="" class="form-control input-sm">
                                        </div>
                                        
                                                <div class="col-lg-2 form-group">
                                                <input placeholder="Account Number" id="accountNo"  name="accountNo" type="text" value="" class="form-control input-sm">
                                        </div>
                                        
                                                        
                                                <div class="col-lg-2">
                                                <select  class="form-control input-sm" id ="provideractive" placeholder="Status">
                                                         <option value="" disabled selected>Status</option>
                                                          <option value="false">False</option>
                                                          <option value="true">True</option>
                                                </select>
                                                </div>
                                        
                                                                
                                <div class="col-lg-2">
                                                <input class="btn btn-primary create-provider"  type="button" value="create provider">  
                                        </div>
                                </div>  
                                                
                                        
                                </div>
                        
                                
                </div>
                </div>
        
        </form>
        
        
        <div class="col-lg-12">
                                 <table id="providerdetails" class="table table-striped table-advance table-hover" style="width:100%">
                                 <thead>
                                        <tr>
                                        <th>Id</th>
                                        <th>Provider Name</th>
                                        <th>Email</th>
                                        <th>Phone</th>
                                        <th>Account No</th>
                                    <th>Delivery Type</th>
                                        
                                        <th>Status</th>
                                        
                                        </tr>
                                 </thead>
                                <tbody>
                                    #foreach($provider in $providers)
                                        <tr>
                                     <td>$provider.getId()</td>
                                     <td>$provider.getName()</td>
                                     #if($providerDetails.get($provider.getId()).getEmail())
                                     <td>$providerDetails.get($provider.getId()).getEmail()</td>
                                     #else
                                     <td>-</td>
                                     #end
                                     #if($providerDetails.get($provider.getId()).getPhone())
                                     <td>$providerDetails.get($provider.getId()).getPhone()</td>
                                     #else
                                      <td>-</td>
                                     #end
                                     #if($providerDetails.get($provider.getId()).getAccountNo())
                                 <td>$providerDetails.get($provider.getId()).getAccountNo()</td>
                                 #else
                                 <td>-</td>
                                 #end
                                 #if($providerDetails.get($provider.getId()).getType())
                                     <td>$providerDetails.get($provider.getId()).getType()</td>
                                     #else
                                      <td>-</td>
                                     #end
                                   
                                     <td>$provider.isActive()</td>
                                   
                                        </tr>
                                        #end
                            </tbody>
                        </table>
                                                </div>
                                                
                
                        
                <div class="col-lg-2">
                                                <input class="btn btn-primary generate-awb"  type="button" value="create awb">  
                                        </div>
        
        </section>
        
        <script>
        
        $(document).ready(function() {

  
                  var table = $('#providerdetails').DataTable( {
                   "scrollX": true,
                        orderCellsTop: true,
                        fixedHeader: true
                    } );
                });
        </script>