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>Create a component</small>
|
||||
> <small>{{ trans('dashboard.components.add.title') }}</small>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
@@ -16,9 +16,9 @@
|
||||
@if($component = Session::get('component'))
|
||||
<div class='alert alert-{{ $component->isValid() ? "success" : "danger" }}'>
|
||||
@if($component->isValid())
|
||||
<strong>Awesome.</strong> Component added.
|
||||
{{ sprintf("<strong>%s</strong> %s", trans('dashboard.notifications.awesome'), trans('dashboard.components.add.success')) }}
|
||||
@else
|
||||
<strong>Whoops.</strong> Something went wrong with the component. {{ $component->getErrors() }}
|
||||
{{ sprintf("<strong>%s</strong> %s", trans('dashboard.notifications.whoops'), trans('dashboard.components.add.failure').' '.$component->getErrors()) }}
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@@ -26,23 +26,23 @@
|
||||
<form name='CreateComponentForm' class='form-vertical' role='form' action='/dashboard/components/add' method='POST'>
|
||||
<fieldset>
|
||||
<div class='form-group'>
|
||||
<label for='incident-name'>Name</label>
|
||||
<label for='component-name'>{{ trans('forms.components.name') }}</label>
|
||||
<input type='text' class='form-control' name='component[name]' id='component-name' required />
|
||||
</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 }}'>{{ $status }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label>Description</label>
|
||||
<label>{{ trans('forms.components.description') }}</label>
|
||||
<textarea name='component[description]' class='form-control' rows='5'></textarea>
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label>Group</label>
|
||||
<label>{{ trans('forms.components.group') }}</label>
|
||||
<select name='component[group_id]' class='form-control'>
|
||||
<option selected></option>
|
||||
@foreach($groups as $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' />
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label>Tags</label>
|
||||
<label>{{ trans('forms.components.tags') }}</label>
|
||||
<textarea name='component[tags]' class='form-control' rows='2'></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">Submit</button>
|
||||
<a class="btn btn-default" href="{{ route('dashboard.components') }}">Cancel</a>
|
||||
<button type="submit" class="btn btn-success">{{ trans('forms.create') }}</button>
|
||||
<a class="btn btn-default" href="{{ route('dashboard.components') }}">{{ trans('forms.cancel') }}</a>
|
||||
<input type='hidden' name='component[user_id]' value='{{ Auth::user()->id }}' />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -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>
|
||||
|
||||
+7
-7
@@ -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.groups.groups', 2) }}
|
||||
</span>
|
||||
> <small>Create a component group</small>
|
||||
> <small>{{ trans('dashboard.components.groups.add.title') }}</small>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
@@ -16,9 +16,9 @@
|
||||
@if($group = Session::get('group'))
|
||||
<div class='alert alert-{{ $group->isValid() ? "success" : "danger" }}'>
|
||||
@if($group->isValid())
|
||||
<strong>Awesome.</strong> Component group created.
|
||||
{{ sprintf("<strong>%s</strong> %s", trans('dashboard.notifications.awesome'), trans('dashboard.components.groups.add.success')) }}
|
||||
@else
|
||||
<strong>Whoops.</strong> Something went wrong with the group. {{ $group->getErrors() }}
|
||||
{{ sprintf("<strong>%s</strong> %s", trans('dashboard.notifications.whoops'), trans('dashboard.components.groups.add.failure').' '.$group->getErrors()) }}
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@@ -26,13 +26,13 @@
|
||||
<form name='CreateComponentGroupForm' class='form-vertical' role='form' action='/dashboard/components/groups/add' method='POST'>
|
||||
<fieldset>
|
||||
<div class='form-group'>
|
||||
<label for='incident-name'>Name</label>
|
||||
<label for='incident-name'>{{ trans('forms.components.groups.name') }}</label>
|
||||
<input type='text' class='form-control' name='group[name]' id='group-name' required />
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<button type="submit" class="btn btn-success">Submit</button>
|
||||
<a class="btn btn-default" href="{{ route('dashboard.components.groups') }}">Cancel</a>
|
||||
<button type="submit" class="btn btn-success">{{ trans('forms.add') }}</button>
|
||||
<a class="btn btn-default" href="{{ route('dashboard.components.groups') }}">{{ trans('forms.cancel') }}</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,37 @@
|
||||
@extends('layout.dashboard')
|
||||
|
||||
@section('content')
|
||||
<div class='content-panel'>
|
||||
@if(isset($subMenu))
|
||||
@include('partials.dashboard.sub-sidebar')
|
||||
@endif
|
||||
<div class="content-wrapper">
|
||||
<div class="header sub-header">
|
||||
<span class="uppercase">
|
||||
<i class="icons ion-ios-keypad"></i> {{ trans_choice('dashboard.components.groups.groups', 2) }}
|
||||
</span>
|
||||
<a class="btn btn-sm btn-success pull-right" href="{{ route('dashboard.components.groups.add') }}">
|
||||
{{ trans('dashboard.components.groups.add.title') }}
|
||||
</a>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 striped-list">
|
||||
@forelse($groups as $group)
|
||||
<div class='row striped-list-item'>
|
||||
<div class='col-md-8'>
|
||||
<strong>{{ $group->name }}</strong>
|
||||
</div>
|
||||
<div class='col-md-4 text-right'>
|
||||
<a href='#' class='btn btn-default'>{{ trans('forms.edit') }}</a>
|
||||
<a href='#' class='btn btn-danger'>{{ trans('forms.delete') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<div class='list-group-item text-danger'>{{ trans('dashboard.components.add.message') }}</div>
|
||||
@endforelse
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -8,10 +8,10 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="header sub-header">
|
||||
<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>
|
||||
<a class="btn btn-sm btn-success pull-right" href="{{ route('dashboard.components.add') }}">
|
||||
{{ trans('cachet.dashboard.component-add') }}
|
||||
{{ trans('dashboard.components.add.title') }}
|
||||
</a>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@@ -32,13 +32,13 @@
|
||||
@endif
|
||||
</div>
|
||||
<div class='col-md-4 text-right'>
|
||||
<a href='/dashboard/components/{{ $component->id }}/edit' class='btn btn-default'>Edit</a>
|
||||
<a href='/dashboard/components/{{ $component->id }}/delete' class='btn btn-danger'>Delete</a>
|
||||
<a href='/dashboard/components/{{ $component->id }}/edit' class='btn btn-default'>{{ trans('forms.edit') }}</a>
|
||||
<a href='/dashboard/components/{{ $component->id }}/delete' class='btn btn-danger'>{{ trans('forms.delete') }}</a>
|
||||
</div>
|
||||
<input type='hidden' rel='order' name='component[{{ $component->id }}]' value='{{ $component->order }}' />
|
||||
</div>
|
||||
@empty
|
||||
<div class='list-group-item text-danger'>You should add a component.</div>
|
||||
<div class='list-group-item text-danger'>{{ trans('dashboard.components.add.message') }}</div>
|
||||
@endforelse
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user