2014-12-04 15:32:46 +00:00
|
|
|
|
@extends('layout.dashboard')
|
2014-11-25 22:41:38 +00:00
|
|
|
|
|
|
|
|
|
@section('content')
|
2014-12-04 21:56:54 +00:00
|
|
|
|
<div class="header">
|
2014-12-29 10:15:25 -06:00
|
|
|
|
<span class="uppercase">
|
|
|
|
|
<i class="icon ion-speedometer"></i> {{ Lang::get('cachet.dashboard.dashboard') }}
|
|
|
|
|
</span>
|
2014-12-04 21:56:54 +00:00
|
|
|
|
</div>
|
2014-12-29 10:15:25 -06:00
|
|
|
|
<div class="content-wrapper">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-12">
|
2014-12-30 13:57:38 +00:00
|
|
|
|
<h4 class='sub-header'>Component Statuses</h4>
|
|
|
|
|
<div class='panel panel-default'>
|
|
|
|
|
<div class='list-group'>
|
|
|
|
|
@forelse($components as $component)
|
|
|
|
|
<div class='list-group-item'>
|
|
|
|
|
{{ Form::open(['class' => 'component-inline']) }}
|
|
|
|
|
<div class='row striped-list-item'>
|
|
|
|
|
<div class='col-md-4'>
|
|
|
|
|
<strong>{{ $component->name }}</strong>
|
|
|
|
|
</div>
|
|
|
|
|
<div class='col-md-8 text-right'>
|
|
|
|
|
@foreach(Lang::get('cachet.component.status') as $statusID => $status)
|
|
|
|
|
<div class='radio-inline'>
|
|
|
|
|
<label>
|
|
|
|
|
<input type='radio' name='status' value='{{ $statusID }}' {{ $component->status === $statusID ? "checked" : null }} />
|
|
|
|
|
{{ $status }}
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
@endforeach
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<input type='hidden' name='component_id' value='{{ $component->id }}' />
|
|
|
|
|
{{ Form::close() }}
|
|
|
|
|
</div>
|
|
|
|
|
@empty
|
|
|
|
|
<div class='list-group-item text-danger'>You should add a component.</div>
|
|
|
|
|
@endforelse
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class='alert alert-success alert-dismissable hide fade in out' role='alert'>
|
|
|
|
|
<button type='button' class='close'>
|
|
|
|
|
<span aria-hidden='true'>×</span>
|
|
|
|
|
</button>
|
|
|
|
|
Component updated.
|
|
|
|
|
</div>
|
2014-12-29 10:15:25 -06:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2014-11-25 22:41:38 +00:00
|
|
|
|
@stop
|