<%@ include file="/WEB-INF/templates/taglibs.jsp" %>

<style>
</style>

<div id="smart-decisions-configurations">
	<form id="formController" name="formController" action="${ctx}/pages/smartDecisionsConfigurations/smartDecisionsConfigurations">
		<input type="hidden" id="idWidget" name="idWidget" value="" />
		<input type="hidden" id="json" name="json" value="" />
		
		<div class="panel panel-default">
			<div class="panel-heading"><fmt:message key="citcorpore.comum.smartDecisionsConfigurations" /></div>
			<div class="panel-body">
				<div class="loading text-center" ng-if="widgets == undefined || _.isEmpty(widgets)"><fmt:message key="citcorpore.comum.aguardecarregando" /></div>
				
				<table class="widgets-table table table-hover" ng-if="widgets != undefined && !_.isEmpty(widgets)">
					<thead>
						<tr>
							<th><fmt:message key="ID" /></th>
							<th><fmt:message key="citcorpore.comum.nome" /></th>
							<th style="width: 100px"><fmt:message key="citcorpore.comum.acoes" /></th>
						</tr>
					</thead>
					<tbody>
						<tr ng-repeat="widget in widgets">
							<td>{{widget.id}}</td>
							<td>{{widget.name}}</td>
							<td><a type="button" class="btn btn-xs btn-citsmart" href="#/editWidget/{{widget.id}}"><fmt:message key="citcorpore.comum.editar" /></a></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</form>
</div>
