Closes #126, components can have links and tags.
This commit is contained in:
@@ -38,6 +38,16 @@
|
||||
<label>Description</label>
|
||||
<textarea name='component[description]' class='form-control' rows='5'></textarea>
|
||||
</div>
|
||||
<hr />
|
||||
<div class='form-group'>
|
||||
<label>Link</label>
|
||||
<input type='text' name='component[link]' class='form-control' />
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label>Tags</label>
|
||||
<textarea name='component[tags]' class='form-control' rows='2'></textarea>
|
||||
<span class='help-block'>Comma separated.</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
|
||||
@@ -38,6 +38,16 @@
|
||||
<label>Description</label>
|
||||
<textarea name='component[description]' class='form-control' rows='5'>{{ $component->description }}</textarea>
|
||||
</div>
|
||||
<hr />
|
||||
<div class='form-group'>
|
||||
<label>Link</label>
|
||||
<input type='text' name='component[link]' class='form-control' value='{{ $component->link }}' />
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label>Tags</label>
|
||||
<textarea name='component[tags]' class='form-control' rows='2'>{{ $component->tags }}</textarea>
|
||||
<span class='help-block'>Comma separated.</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<button type="submit" class="btn btn-success">Save Component</button>
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
@if($components->count() > 0)
|
||||
<ul class='list-group components'>
|
||||
@foreach($components as $component)
|
||||
<li class='list-group-item component '>
|
||||
<li class='list-group-item component'>
|
||||
@if($component->link)
|
||||
<h3 class='pull-right'><a href='{{ $component->link }}' target='_blank'><i class='ion ion-link'></i></a></h3>
|
||||
@endif
|
||||
<h4>{{ $component->name }} <small class='text-component-{{ $component->status }}'>{{ $component->humanStatus }}</small></h4>
|
||||
@if($component->description)
|
||||
<p>{{ $component->description }}</p>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user