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.
SIPRP/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/SearchForm/SearchView.html

142 lines
6.6 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>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-10">
<h4 class="section-title">Fichas</h4>
<table class="table table-hover table-striped" 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">&nbsp;</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in storeFichasTrabalhador.items">
<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>
</div>
<div class="form-horizontal">
<div class="form-group m-t-15">
<label class="col-sm-2 control-label"><span ng-show="dadosTrabalhador != null">Nova Ficha</span></label>
<div class="col-sm-10">
<button ng-show="dadosTrabalhador != null" ng-click="add(item)" ng-repeat="item in UserSession.tiposFichas" type="button" class="btn btn-sm btn-default m-r-5 m-b-5">
{{item.descricao}}
</button>
</div>
</div>
</div>
</div>
</div>
</form>
</section>