Skip to content

Commit

Permalink
Added missing translations on blades
Browse files Browse the repository at this point in the history
  • Loading branch information
gerpollo2000 committed Jul 26, 2019
1 parent 9b0cb51 commit d820776
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
16 changes: 8 additions & 8 deletions resources/views/schools/edit.blade.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
@extends('layouts.app')

@section('title', 'Edit School')
@section('title', __('Edit School'))

@section('content')
<div class="panel panel-default">
<div class="panel-body">
<h2 class="text-center">Edit {{$school->name}}</h2>
<h2 class="text-center">@lang('Edit') {{$school->name}}</h2>

<form class="form-horizontal" action="{{ route('schools.update', $school) }}" method="post">
<input type="hidden" name="_method" value="PUT">
{{ csrf_field() }}
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
<label for="name" class="col-md-4 control-label">School Name</label>
<label for="name" class="col-md-4 control-label">@lang('School Name')</label>

<div class="col-md-6">
<input id="name" type="text" class="form-control" name="name" value="{{ $school->name }}" placeholder="Form Field Name" required>
<input id="name" type="text" class="form-control" name="name" value="{{ $school->name }}" placeholder="@lang('School Name')" required>

@if ($errors->has('name'))
<span class="help-block">
Expand All @@ -25,11 +25,11 @@
</div>

<div class="form-group{{ $errors->has('about') ? ' has-error' : '' }}">
<label for="about" class="col-md-4 control-label">About School</label>
<label for="about" class="col-md-4 control-label">@lang('About School')</label>

<div class="col-md-6">
<textarea id="about" type="text" class="form-control" name="about"
placeholder="Form Field Name" required>{{ $school->about }}</textarea>
placeholder="@lang('About School')" required>{{ $school->about }}</textarea>

@if ($errors->has('about'))
<span class="help-block">
Expand All @@ -41,8 +41,8 @@

<div class="form-group">
<div class="col-sm-offset-4 col-sm-8">
<a href="{{ route('schools.index') }}" class="btn btn-primary">back</a>
<button type="submit" class="btn btn-danger">Save</button>
<a href="{{ route('schools.index') }}" class="btn btn-primary">@lang('Back')</a>
<button type="submit" class="btn btn-danger">@lang('Save')</button>
</div>
</div>
</form>
Expand Down
18 changes: 9 additions & 9 deletions resources/views/schools/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<label for="name" class="col-md-4 control-label">@lang('School Name')</label>

<div class="col-md-6">
<input id="name" type="text" class="form-control" name="name" value="{{ old('name') }}" placeholder="School Name" required>
<input id="name" type="text" class="form-control" name="name" value="{{ old('name') }}" placeholder="@lang('School Name')" required>

@if ($errors->has('name'))
<span class="help-block">
Expand All @@ -32,12 +32,12 @@

<div class="col-md-6">
<select id="medium" class="form-control" name="medium">
<option selected="selected">Bangla</option>
<option>English</option>
<option>Hindi</option>
<option>Spanish</option>
<option>Chinese</option>
<option>Arabic</option>
<option selected="selected">@lang('Bangla')</option>
<option>@lang('English')</option>
<option>@lang('Hindi')</option>
<option>@lang('Spanish')</option>
<option>@lang('Chinese')</option>
<option>@lang('Arabic')</option>
</select>

@if ($errors->has('medium'))
Expand All @@ -52,7 +52,7 @@
<label for="established" class="col-md-4 control-label">@lang('School Established')</label>

<div class="col-md-6">
<input id="established" type="text" class="form-control" name="established" value="{{ old('established') }}" placeholder="School Established" required>
<input id="established" type="text" class="form-control" name="established" value="{{ old('established') }}" placeholder="@lang('School Established')" required>

@if ($errors->has('established'))
<span class="help-block">
Expand All @@ -66,7 +66,7 @@
<label for="about" class="col-md-4 control-label">@lang('About')</label>

<div class="col-md-6">
<textarea id="about" class="form-control" rows="3" name="about" placeholder="About School" required>{{ old('about') }}</textarea>
<textarea id="about" class="form-control" rows="3" name="about" placeholder="@lang('About School')" required>{{ old('about') }}</textarea>

@if ($errors->has('about'))
<span class="help-block">
Expand Down
10 changes: 5 additions & 5 deletions resources/views/schools/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<th scope="col">@lang('Name')</th>
<th scope="col">@lang('Code')</th>
<th scope="col">@lang('About')</th>
<th scope="col">Edit</th>
<th scope="col">+Admin</th>
<th scope="col">View Admins</th>
<th scope="col">@lang('Edit')</th>
<th scope="col">+@lang('Admin')</th>
<th scope="col">@lang('View Admins')</th>
</tr>
</thead>
<tbody>
Expand All @@ -31,12 +31,12 @@
<td><small>{{$school->about}}</small></td>
<td>
<a class="btn btn-success btn-sm" role="button" href="{{ route('schools.edit', $school) }}" dusk="edit-school-link">
<small>Edit School</small>
<small>@lang('Edit School')</small>
</a>
</td>
<td>
<a class="btn btn-danger btn-sm" role="button" href="{{url('register/admin/'.$school->id.'/'.$school->code)}}">
<small>+ Create Admin</small>
<small>+ @lang('Create Admin')</small>
</a>
</td>
<td>
Expand Down

0 comments on commit d820776

Please sign in to comment.