<div class="container" id="detail-container">
	<div class="row">
		<div class="col-md-9">
			<div class="component" ng-show="deployment">
				<div class="title">
					<div class="pull-right">
						<a ng-click="returnToList()" class="action">&larr; {{'GENERAL.ACTION.RETURN-TO-LIST' | translate}}</a>
					</div>
					<h2>{{deployment.name || deployment.id}}</h2>
				</div>

				<div class="property-wrapper">
					<table>
						<tr class="property">
							<td class="property-name" translate="DECISION-TABLE-DEPLOYMENT.ID"></td>
							<td>{{deployment.id}}</td>
							<td class="property-name" translate="DECISION-TABLE-DEPLOYMENT.NAME"></td>
							<td>{{deployment.name | empty}}</td>
						</tr>
						<tr class="property">
							<td class="property-name" translate="DECISION-TABLE-DEPLOYMENT.TIME"></td>
							<td>{{deployment.deploymentTime | dateformat:'full'}}</td>
							<td class="property-name" translate="DECISION-TABLE-DEPLOYMENT.CATEGORY"></td>
							<td>{{deployment.category | empty}}</td>
						</tr>
						<tr class="property">
                            <td class="property-name" translate="DECISION-TABLE-DEPLOYMENT.TENANTID"></td>
                            <td>{{deployment.tenantId | empty}}</td>
							<td ng-if="deployment.parentDeploymentId" class="property-name" translate="DECISION-TABLE-DEPLOYMENT.PARENT-DEPLOYMENT-ID"></td>
							<td ng-if="deployment.parentDeploymentId"><a ng-href="#/app-deployment/{{deployment.parentDeploymentId}}"><i class="glyphicon glyphicon-zoom-in"></i> {{deployment.parentDeploymentId}}</a></td>
						</tr>
					</table>
				</div>
			</div>
		</div>
	    <div class="col-md-3">
			<div class="component tip-left">
				<div class="title">
					<h2 translate="GENERAL.TITLE.ACTIONS"></h2>
				</div>
				<ul class="list-group">
					  <li>
					    <button type="button" class="btn btn-sm btn-default btn-danger" ng-click="deleteDeployment()">
							<i class="glyphicon glyphicon-remove"></i><span translate="DECISION-TABLE-DEPLOYMENTS.ACTION.DELETE"></span>
					    </button>
					  </li>
				</ul>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-md-9">
			<div class="component">
				<div class="title">
					<div class="pull-right">
						<a ng-click="showAllDecisionTables()" class="action"><i class="glyphicon glyphicon-zoom-in"></i> {{'DECISION-TABLE-DEPLOYMENT.ACTION.SHOW-ALL-DEFINITIONS' | translate}}</a>
					</div>
					<h2 translate="DECISION-TABLE-DEPLOYMENT.TITLE.DECISION-TABLES"></h2>
				</div>
				<div class="grid-wrapper grid-wrapper-compact" ng-if="decisionTables">
					<div class="grid-message" ng-if="decisionTables.size > 0">
	                       <span>{{'DECISION-TABLE-DEPLOYMENT.DECISION-TABLES-MESSAGE' | translate:decisionTables}}</span>
	                   </div>
	                    <div class="grid-message" ng-if="decisionTables.size == 0">
	                       <span>{{'DECISION-TABLE-DEPLOYMENT.DECISION-TABLES-MESSAGE-EMPTY' | translate}}</span>
	                   </div>
					<div ng-grid="gridDecisionTables" class="gridStyle" ng-if="gridDecisionTables && decisionTables.data" ng-show="decisionTables.size > 0"></div>
				</div>
			</div>
		</div>
	</div>
</div>
