forked from Coded/SIPRP
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							132 lines
						
					
					
						
							5.9 KiB
						
					
					
				
			
		
		
	
	
							132 lines
						
					
					
						
							5.9 KiB
						
					
					
				| <!-- Search View -->
 | |
| <section id="SearchView" class="content">
 | |
| 
 | |
|      <div class="page-header">
 | |
|         <div class="row">
 | |
|             <div class="col-md-6">
 | |
|                <h3 class="m-b-none page-title">Pesquisa de Utentes</h3>
 | |
|             </div>
 | |
|             <div class="col-md-6">
 | |
|                
 | |
|             </div>
 | |
|         </div>        
 | |
|     </div>
 | |
| 
 | |
|     <form role="form" name="editForm" parsley-validate>
 | |
| 
 | |
|         <div class="panel panel-default">
 | |
|             <div class="panel-body">
 | |
| 
 | |
|                 <div class="form-horizontal">
 | |
| 
 | |
|                     <div class="form-group">
 | |
|                         <label class="col-sm-2 control-label">Empresa</label>
 | |
|                         <div class="col-sm-10">                       
 | |
|                             <custom-combo 
 | |
|                                 item-id="comboEmpresas"
 | |
|                                 bind-to-model="false"                                    
 | |
|                                 selected-value="" 
 | |
|                                 store-model="" 
 | |
|                                 store-actions-get="getEmpresas"                                     
 | |
|                                 value-field="id"
 | |
|                                 display-field="designacao_social"
 | |
|                                 add-empty-option="false"
 | |
|                                 on-change="onEmpresaChange(selectedValue, selectedRecord)">                                    
 | |
|                             </custom-combo>
 | |
|                         </div>
 | |
|                     </div>
 | |
| 
 | |
|                     <div class="form-group">
 | |
|                         <label class="col-sm-2 control-label">Estabelecimento</label>
 | |
|                         <div class="col-sm-10">
 | |
|                             <custom-combo 
 | |
|                                 item-id="comboEstabelecimentos"
 | |
|                                 bind-to-model="false"                                    
 | |
|                                 selected-value="" 
 | |
|                                 store-model="" 
 | |
|                                 store-actions-get="getEstabelecimentos"                                     
 | |
|                                 value-field="id"
 | |
|                                 display-field="nome"
 | |
|                                 add-empty-option="false"
 | |
|                                 on-change="onEstabelecimentoChange(selectedValue, selectedRecord)">                                    
 | |
|                             </custom-combo>
 | |
|                         </div>
 | |
|                     </div>
 | |
| 
 | |
|                     <div class="form-group">
 | |
|                         <label class="col-sm-2 control-label">Trabalhador</label>
 | |
|                         <div class="col-sm-10">
 | |
|                             <custom-combo 
 | |
|                                 item-id="comboTrabalhadores"
 | |
|                                 bind-to-model="false"                                    
 | |
|                                 selected-value="" 
 | |
|                                 store-model="" 
 | |
|                                 store-actions-get="getTrabalhadores"                                     
 | |
|                                 value-field="id"
 | |
|                                 display-field="nome"
 | |
|                                 add-empty-option="false"
 | |
|                                 on-change="onTrabalhadorChange(selectedValue, selectedRecord)">                                    
 | |
|                             </custom-combo>
 | |
|                         </div>
 | |
|                     </div>
 | |
| 
 | |
|                     <div class="form-group">
 | |
|                         <div class="col-sm-12">
 | |
| <!--                            <button ng-click="list()" type="button" class="btn btn-sm btn-primary pull-right">
 | |
|                                 <span class="glyphicon glyphicon-search"></span> Pesquisar
 | |
|                             </button>-->
 | |
|                             <button ng-click="clear()" type="button" class="btn btn-sm btn-default pull-right m-r-5">
 | |
|                                 <span class="glyphicon glyphicon-remove"></span> Limpar
 | |
|                             </button>
 | |
|                         </div>
 | |
|                     </div>
 | |
| 
 | |
|                 </div>
 | |
| 
 | |
|                 <table class="table table-striped table-hover" data-store="storeFichasTrabalhador" datatable>
 | |
|                     <thead>
 | |
|                         <tr>
 | |
|                             <th class="col-md-3 hidden-xs">Data</th>
 | |
|                             <th class="col-md-3 hidden-xs">Tipo</th>
 | |
|                             <th class="col-md-3">Autor</th>
 | |
|                             <th class="col-md-3"> </th>
 | |
|                         </tr>
 | |
|                     </thead>
 | |
|                     <tbody>
 | |
|                         <tr ng-repeat="item in storeFichasTrabalhador.items" ng-click="edit(item)">
 | |
|                             <td class="hidden-xs"><span ng-bind="item.data"></span></td>
 | |
|                             <td class="hidden-xs"><span ng-bind="item.tipo"></span></td>
 | |
|                             <td><span ng-bind="item.responsavel"></span></td>
 | |
|                             <td>
 | |
|                                 <button ng-click="edit(item)" type="button" class="btn btn-xs btn-default">
 | |
|                                     <span class="glyphicon glyphicon-pencil"></span>
 | |
|                                 </button>
 | |
|                             </td>
 | |
|                         </tr>
 | |
|                     </tbody>
 | |
|                 </table>
 | |
| 
 | |
|                 <div class="form-horizontal">
 | |
| 
 | |
|                     <div class="form-group">
 | |
|                         <div class="col-sm-12">
 | |
|                             <button ng-show="dadosTrabalhador != null" ng-click="add()" type="button" class="btn btn-sm btn-success">
 | |
|                                 <span class="glyphicon glyphicon-plus"></span> Novo
 | |
|                             </button>
 | |
|                         </div>
 | |
|                     </div>
 | |
| 
 | |
|                 </div>
 | |
| 
 | |
|             </div>
 | |
|         </div>
 | |
| 
 | |
|     </form>
 | |
| 
 | |
| 
 | |
| 
 | |
| </section>
 | |
| 
 | |
| 
 | |
| 
 |