Skip to content

Commit

Permalink
admin strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Remo committed Apr 17, 2014
1 parent 055a5b3 commit 303fe44
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 49 deletions.
12 changes: 6 additions & 6 deletions app/views/admin/categories/edit.blade.php
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
@section('title','Editing category')
@section('title', trans('admin.editing_category'))

@section('content')
<div class="container">
<div class="row">
<div class="col-lg-6">
<div class="page-header">
<h1>Editing a category <a href="{{ url('admin/categories')}}" class="btn btn-lg btn-default pull-right">Cancel</a></h1>
<h1>{{ trans('admin.editing_a_category') }} <a href="{{ url('admin/categories')}}" class="btn btn-lg btn-default pull-right">{{ trans('admin.cancel') }}</a></h1>
</div>

@if($errors->all())
<div class="bs-callout bs-callout-danger">
<h4>Please fix the errors below:</h4>
<h4>{{ trans('admin.please_fix_errors') }}</h4>
{{ HTML::ul($errors->all())}}
</div>
@endif

{{ Form::model($category,array('class'=>'form-horizontal'))}}
<div class="form-group">
<label for="name" class="col-lg-2 control-label">Name</label>
<label for="name" class="col-lg-2 control-label">{{ trans('admin.name') }}</label>
<div class="col-lg-10">
{{ Form::text('name',null,array('class'=>'form-control'))}}
</div>
</div>
<div class="form-group">
<label for="description" class="col-lg-2 control-label">Description</label>
<label for="description" class="col-lg-2 control-label">{{ trans('admin.description') }}</label>
<div class="col-lg-10">
{{ Form::textarea('description',null,array('class'=>'form-control','rows'=>'5'))}}
</div>
</div>
<div class="form-group">
<div class="col-lg-10 col-lg-offset-2">
{{ Form::submit('Save category',array('class'=>'btn btn-primary btn-block')); }}
{{ Form::submit( trans('admin.save_category') ,array('class'=>'btn btn-primary btn-block')); }}
</div>
</div>
{{ Form::close()}}
Expand Down
32 changes: 16 additions & 16 deletions app/views/admin/categories/list.blade.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
@section('title','Viewing categories')
@section('title', trans('admin.viewing_category'))

@section('content')
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="page-header">
<h1>Categories for Laravel tricks <span class="pull-right"> <a data-toggle="modal" href="#add_category" class="btn btn-primary btn-lg">Add new Category</a></span></h1>
<h1>{{ trans('admin.category_for_tricks') }} <span class="pull-right"> <a data-toggle="modal" href="#add_category" class="btn btn-primary btn-lg">{{ trans('admin.add_new_category') }}</a></span></h1>
</div>

<table class="table">
<thead>
<tr>
<th>Title</th>
<th>Description</th>
<th># of Tricks</th>
<th class="col-lg-3 text-right">Actions</th>
<th>{{ trans('admin.title') }}</th>
<th>{{ trans('admin.description') }}</th>
<th>{{ trans('admin.num_of_tricks') }}</th>
<th class="col-lg-3 text-right">{{ trans('admin.actions') }}</th>
</tr>
</thead>
<tbody id="sortable">
Expand All @@ -26,8 +26,8 @@
<td>{{ $category->tricks->count()}}</td>
<td>
<div class="btn-group pull-right">
<a class="btn btn-primary btn-sm" href="{{url('admin/categories/view/'.$category->id)}}">Edit</a>
<a class="delete_toggler btn btn-danger btn-sm" rel="{{$category->id}}">Delete</a>
<a class="btn btn-primary btn-sm" href="{{url('admin/categories/view/'.$category->id)}}">{{ trans('admin.edit') }}</a>
<a class="delete_toggler btn btn-danger btn-sm" rel="{{$category->id}}">{{ trans('admin.delete') }}</a>
</div>
</td>
</tr>
Expand All @@ -44,24 +44,24 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Adding new category</h4>
<h4 class="modal-title">{{ trans('admin.adding_new_category') }}</h4>
</div>
<div class="modal-body">
@if($errors->all())
<div class="bs-callout bs-callout-danger">
<h4>Please fix the errors below:</h4>
<h4>{{ trans('admin.please_fix_errors') }}</h4>
{{ HTML::ul($errors->all())}}
</div>
@endif
{{ Form::open(array('class'=>'form-horizontal'))}}
<div class="form-group">
<label for="title" class="col-lg-2 control-label">Name</label>
<label for="title" class="col-lg-2 control-label">{{ trans('admin.name') }}</label>
<div class="col-lg-10">
{{ Form::text('name',null,array('class'=>'form-control'))}}
</div>
</div>
<div class="form-group">
<label for="url" class="col-lg-2 control-label">Description</label>
<label for="url" class="col-lg-2 control-label">{{ trans('admin.description') }}</label>
<div class="col-lg-10">
{{ Form::textarea('description',null,array('class'=>'form-control','rows'=>'4'))}}
</div>
Expand All @@ -84,14 +84,14 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Are you sure?</h4>
<h4 class="modal-title">{{ trans('admin.are_you_sure') }}</h4>
</div>
<div class="modal-body">
<p class="lead text-center">This Category will be deleted!</p>
<p class="lead text-center">{{ trans('admin.category_will_be_deleted') }}</p>
</div>
<div class="modal-footer">
<a data-dismiss="modal" href="#delete_category" class="btn btn-default">Keep</a>
<a href="" id="delete_link" class="btn btn-danger">Delete</a>
<a data-dismiss="modal" href="#delete_category" class="btn btn-default">{{ trans('admin.keep') }}</a>
<a href="" id="delete_link" class="btn btn-danger">{{ trans('admin.delete') }}</a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
Expand Down
10 changes: 5 additions & 5 deletions app/views/admin/tags/edit.blade.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
@section('title','Editing tag')
@section('title', trans('admin.editing_tag'))

@section('content')
<div class="container">
<div class="row">
<div class="col-lg-6">
<div class="page-header">
<h1>Editing a tag <a href="{{ url('admin/tags')}}" class="btn btn-lg btn-default pull-right">Cancel</a></h1>
<h1>{{ trans('admin.editing_a_tag') }} <a href="{{ url('admin/tags')}}" class="btn btn-lg btn-default pull-right">{{ trans('admin.cancel') }}</a></h1>
</div>
@if($errors->all())
<div class="bs-callout bs-callout-danger">
<h4>Please fix the errors below:</h4>
<h4>{{ trans('admin.please_fix_errors') }}</h4>
{{ HTML::ul($errors->all())}}
</div>
@endif

{{ Form::model($tag,array('class'=>'form-horizontal'))}}
<div class="form-group">
<label for="name" class="col-lg-2 control-label">Name</label>
<label for="name" class="col-lg-2 control-label">{{ trans('admin.name') }}</label>
<div class="col-lg-10">
{{ Form::text('name',$tag->name,array('class'=>'form-control'))}}
</div>
</div>
<div class="form-group">
<div class="col-lg-10 col-lg-offset-2">
{{ Form::submit('Save tag',array('class'=>'btn btn-primary btn-block')); }}
{{ Form::submit(trans('admin.save_tag'), array('class'=>'btn btn-primary btn-block')); }}
</div>
</div>
{{ Form::close()}}
Expand Down
28 changes: 14 additions & 14 deletions app/views/admin/tags/list.blade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@section('title','Viewing tags')
@section('title', trans('admin.viewing_tags'))

@section('content')
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="page-header">
<h1>All Tags <span class="pull-right"><a data-toggle="modal" href="#add_tag" class="btn btn-primary btn-lg">Add new Tag</a></span></h1>
<h1>{{ trans('admin.all_tags') }} <span class="pull-right"><a data-toggle="modal" href="#add_tag" class="btn btn-primary btn-lg">{{ trans('admin.add_new_tag') }}</a></span></h1>
</div>
</div>
</div>
Expand All @@ -14,8 +14,8 @@
<table class="table">
<thead>
<tr>
<th>Tag</th>
<th class="col-lg-3 text-right">Actions</th>
<th>{{ trans('admin.tag') }}</th>
<th class="col-lg-3 text-right">{{ trans('admin.actions') }}</th>
</tr>
</thead>
<tbody>
Expand All @@ -24,8 +24,8 @@
<td><a href="{{url('admin/tags/view/'.$tag->id)}}">{{ $tag->name }}</a></td>
<td>
<div class="btn-group pull-right">
<a class="btn btn-primary btn-sm" href="{{url('admin/tags/view/'.$tag->id)}}">Edit</a>
<a class="delete_toggler btn btn-danger btn-sm" rel="{{$tag->id}}">Delete</a>
<a class="btn btn-primary btn-sm" href="{{url('admin/tags/view/'.$tag->id)}}">{{ trans('admin.edit') }}</a>
<a class="delete_toggler btn btn-danger btn-sm" rel="{{$tag->id}}">{{ trans('admin.delete') }}</a>
</div>
</td>
</tr>
Expand All @@ -42,25 +42,25 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Adding new Tag</h4>
<h4 class="modal-title">{{ trans('admin.adding_new_tags') }}</h4>
</div>
<div class="modal-body">
@if($errors->all())
<div class="bs-callout bs-callout-danger">
<h4>Please fix the errors below:</h4>
<h4>{{ trans('admin.please_fix_errors') }}</h4>
{{ HTML::ul($errors->all())}}
</div>
@endif
{{ Form::open(array('class'=>'form-horizontal'))}}
<div class="form-group">
<label for="title" class="col-lg-2 control-label">Name</label>
<label for="title" class="col-lg-2 control-label">{{ trans('admin.name') }}</label>
<div class="col-lg-10">
{{ Form::text('name',null,array('class'=>'form-control'))}}
</div>
</div>
<div class="form-group">
<div class="col-lg-10 col-lg-offset-2">
{{ Form::submit('Create',array('class'=>'btn btn-lg btn-primary btn-block')); }}
{{ Form::submit(trans('admin.create') ,array('class'=>'btn btn-lg btn-primary btn-block')); }}
</div>
</div>
{{ Form::close()}}
Expand All @@ -76,14 +76,14 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Are you sure?</h4>
<h4 class="modal-title">{{ trans('admin.are_you_sure') }}</h4>
</div>
<div class="modal-body">
<p class="lead text-center">This Tag will be deleted!</p>
<p class="lead text-center">{{ trans('admin.tag_will_be_deleted') }}</p>
</div>
<div class="modal-footer">
<a data-dismiss="modal" href="#delete_tag" class="btn btn-default">Keep</a>
<a href="" id="delete_link" class="btn btn-danger">Delete</a>
<a data-dismiss="modal" href="#delete_tag" class="btn btn-default">{{ trans('admin.keep') }}</a>
<a href="" id="delete_link" class="btn btn-danger">{{ trans('admin.delete') }}</a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
Expand Down
16 changes: 8 additions & 8 deletions app/views/admin/users/list.blade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@section('title','Viewing users')
@section('title', trans('admin.viewing_users'))

@section('content')
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="page-header">
<h1>Showing all users ({{ $users->getTotal() }})</h1>
<h1>{{ trans('admin.showing_all_users') }} ({{ $users->getTotal() }})</h1>
</div>
</div>
</div>
Expand All @@ -14,12 +14,12 @@
<table class="table">
<thead>
<tr>
<th>Avatar</th>
<th>Username</th>
<th>Email</th>
<th>Tricks</th>
<th>Date Registered</th>
<th>Github Profile?</th>
<th>{{ trans('admin.avatar') }}</th>
<th>{{ trans('admin.username') }}</th>
<th>{{ trans('admin.email') }}</th>
<th>{{ trans('admin.tricks') }}</th>
<th>{{ trans('admin.date_registered') }}</th>
<th>{{ trans('admin.github_profile') }}</th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit 303fe44

Please sign in to comment.