Skip to content

Commit

Permalink
Merge pull request #2876 from nstapelbroek/feature/re-align-optional-…
Browse files Browse the repository at this point in the history
…component-label

Place the '* optional' label behind the Component form field
  • Loading branch information
jbrooksuk committed Jan 21, 2018
2 parents 7a4ec05 + 08e1be0 commit 7155b77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions resources/lang/en/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
'name' => 'Name',
'status' => 'Status',
'component' => 'Component',
'component_status' => 'Component Status',
'message' => 'Message',
'message-help' => 'You may also use Markdown.',
'occurred_at' => 'When did this incident occur?',
Expand Down
4 changes: 2 additions & 2 deletions resources/views/dashboard/incidents/add.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</div>
@if(!$components_in_groups->isEmpty() || !$components_out_groups->isEmpty())
<div class="form-group">
<label>{{ trans('forms.incidents.component') }}</label>
<label>{{ trans('forms.incidents.component') }}</label> <small class="text-muted">{{ trans('forms.optional') }}</small>
<select name="component_id" class="form-control" v-model="component.id">
<option value="" selected></option>
@foreach($components_in_groups as $group)
Expand All @@ -86,10 +86,10 @@
<option value="{{ $component->id }}">{{ $component->name }}</option>
@endforeach
</select>
<span class='help-block'>{{ trans('forms.optional') }}</span>
</div>
@endif
<div class="form-group" id="component-status" v-if="component.id">
<label>{{ trans('forms.incidents.component_status') }}</label>
<div class="panel panel-default">
<div class="panel-body">
<div class="radio-items">
Expand Down

0 comments on commit 7155b77

Please sign in to comment.