<div class="page-header" >

	<div class="container">
		<div class="row">
			<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
				<h1>All registered Subscribed Resources</h1>
				<h3>View and manage system Subscribed Resources</h3>
				<a class="btn btn-success btn-lg" data-toggle="modal" ng-href="#!/add_subscribed_resource"> <i class="pull-left"></i>&nbsp;&nbsp;Create New<br>Subscribed resource</a>
				<br>
				<br>
				<table id="grid1" tr-ng-grid="" class="usersGrid" items="subscribedresources"
					fields="['id', 'uuid', 'url', 'owner.name', 'active' ]">
					<thead>
						<tr>
							<th field-name="id" display-name="Id" cell-width="5em"
								display-align="right"></th>

							<th field-name="url" display-name="URL"></th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td nowrap="nowrap">
								<p>Last update: <strong>{{gridItem.lastUpdate| date:'medium'}}</strong></p>
								<a class="btn btn-danger" ng-click="deleteSubscribedResource(gridItem, gridItem.id, gridItem.url)"><i class="fa fa-trash-o "></i></a>
								<a class="btn btn-primary" ng-href="#!/edit_subscribed_resource/{{gridDisplayItem.id}}"><i class="fa fa-pencil-square-o "></i></a>									
								<a class="btn btn-info" ng-click="clickToOpen(gridItem, gridItem.id, gridItem.url)""><i class="fa fa-info-circle "></i></a>
							</td>
						</tr>
					</tbody>
				</table>

			</div>
		</div>
	</div>
</div>