mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-18 05:58:18 +01:00
38 lines
1.2 KiB
PHP
38 lines
1.2 KiB
PHP
@extends('layout.dashboard')
|
|
|
|
@section('content')
|
|
<div class="header">
|
|
<i class="fa fa-list-ul"></i> {{ Lang::get('cachet.dashboard.components') }}
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<h3>Create a component</h3>
|
|
@if($component = Session::get('component'))
|
|
<div class='alert alert-{{ $component->isValid() ? "success" : "danger" }}'>
|
|
@if($component->isValid())
|
|
<strong>Awesome.</strong> Component added.
|
|
@else
|
|
<strong>Whoops.</strong> Something went wrong with the component. {{ $component->getErrors() }}
|
|
@endif
|
|
</div>
|
|
@endif
|
|
|
|
<form name='CreateComponentForm' class='form-vertical' role='form' action='/dashboard/components/add' method='POST'>
|
|
<fieldset>
|
|
<div class='form-group'>
|
|
<label for='incident-name'>Component Name</label>
|
|
<input type='text' class='form-control' name='component[name]' id='component-name' required />
|
|
</div>
|
|
<div class='form-group'>
|
|
<label>Description</label>
|
|
<textarea name='component[description]' class='form-control' rows='5'></textarea>
|
|
</div>
|
|
</fieldset>
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
<input type='hidden' name='component[user_id]' value='{{ Auth::user()->id }}' />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@stop
|