Language improvements
Signed-off-by: Graham Campbell <graham@mineuk.com>
This commit is contained in:
committed by
Graham Campbell
parent
81bbccb3c4
commit
08a016ff2b
@@ -6,9 +6,9 @@
|
||||
<i class="icon ion-navicon"></i>
|
||||
</div>
|
||||
<span class="uppercase">
|
||||
<i class="icons ion-ios-keypad"></i> {{ trans('cachet.dashboard.components') }}
|
||||
<i class="icons ion-ios-keypad"></i> {{ trans_choice('dashboard.components.components', 2) }}
|
||||
</span>
|
||||
> <small>Edit component</small>
|
||||
> <small>{{ trans('dashboard.components.edit.title') }}</small>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
@@ -16,9 +16,9 @@
|
||||
@if($savedComponent = Session::get('savedComponent'))
|
||||
<div class="alert alert-{{ $savedComponent->isValid() ? "success" : "danger" }}">
|
||||
@if($savedComponent->isValid())
|
||||
<strong>Awesome.</strong> Component updated.
|
||||
{{ sprintf("<strong>%s</strong> %s", trans('dashboard.notifications.awesome'), trans('dashboard.components.edit.success')) }}
|
||||
@else
|
||||
<strong>Whoops.</strong> Something went wrong with the component. {{ $savedComponent->getErrors() }}
|
||||
{{ sprintf("<strong>%s</strong> %s", trans('dashboard.notifications.whoops'), trans('dashboard.components.edit.failure').' '.$component->getErrors()) }}
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@@ -26,19 +26,19 @@
|
||||
<form name='EditComponentForm' class='form-vertical' role='form' action='/dashboard/components/{{ $component->id }}/edit' method='POST'>
|
||||
<fieldset>
|
||||
<div class='form-group'>
|
||||
<label for='incident-name'>Name</label>
|
||||
<label for='incident-name'>{{ trans('forms.components.name') }}</label>
|
||||
<input type='text' class='form-control' name='component[name]' id='component-name' required value='{{ $component->name }}' />
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label for='component-status'>Status</label>
|
||||
<label for='component-status'>{{ trans('forms.components.status') }}</label>
|
||||
<select name='component[status]' class='form-control'>
|
||||
@foreach(trans('cachet.component.status') as $statusID => $status)
|
||||
@foreach(trans('cachet.components.status') as $statusID => $status)
|
||||
<option value='{{ $statusID }}' {{ $statusID === $component->status ? "selected" : "" }}>{{ $status }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label>Description</label>
|
||||
<label>{{ trans('forms.components.group') }}</label>
|
||||
<textarea name='component[description]' class='form-control' rows='5'>{{ $component->description }}</textarea>
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
@@ -52,18 +52,18 @@
|
||||
</div>
|
||||
<hr />
|
||||
<div class='form-group'>
|
||||
<label>Link</label>
|
||||
<label>{{ trans('forms.components.link') }}</label>
|
||||
<input type='text' name='component[link]' class='form-control' value='{{ $component->link }}' />
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label>Tags</label>
|
||||
<label>{{ trans('forms.components.tags') }}</label>
|
||||
<textarea name='component[tags]' class='form-control' rows='2'>{{ $component->tags }}</textarea>
|
||||
<span class='help-block'>Comma separated.</span>
|
||||
<span class='help-block'>{{ trans('forms.components.tags-help') }}</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<button type="submit" class="btn btn-success">Save Component</button>
|
||||
<a class="btn btn-default" href="{{ route('dashboard.components') }}">Cancel</a>
|
||||
<button type="submit" class="btn btn-success">{{ trans('forms.update') }}</button>
|
||||
<a class="btn btn-default" href="{{ route('dashboard.components') }}">{{ trans('forms.cancel') }}</a>
|
||||
<input type='hidden' name='component[user_id]' value='{{ $component->agent_id || Auth::user()->id }}' />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user