From 52f5021cfe35d3f5e9bf9b41babd5e169a2940b3 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Fri, 31 Aug 2018 14:32:19 +0800 Subject: [PATCH] Change logo upload info text from danger to warning Change trans() helper function to __() --- resources/views/users/agency/edit.blade.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/views/users/agency/edit.blade.php b/resources/views/users/agency/edit.blade.php index c559351..805be35 100644 --- a/resources/views/users/agency/edit.blade.php +++ b/resources/views/users/agency/edit.blade.php @@ -1,21 +1,21 @@ @extends('layouts.dashboard') -@section('title', trans('agency.edit')) +@section('title', __('agency.edit')) @section('content-dashboard')
{{ Form::open(['route' => 'users.agency.update', 'method' => 'patch']) }}
- {{ trans('agency.detail') }} + {{ __('agency.detail') }} {!! FormField::text('name', ['value' => Option::get('agency_name')]) !!} {!! FormField::text('tagline', ['value' => Option::get('agency_tagline')]) !!} - {{ Form::submit(trans('agency.update'), ['class' => 'btn btn-info']) }} - {{ link_to_route('users.agency.show', trans('app.cancel'), [], ['class' => 'btn btn-default']) }} + {{ Form::submit(__('agency.update'), ['class' => 'btn btn-info']) }} + {{ link_to_route('users.agency.show', __('app.cancel'), [], ['class' => 'btn btn-default']) }}

- {{ trans('contact.contact') }} + {{ __('contact.contact') }}
{!! FormField::email('email', ['value' => Option::get('agency_email')]) !!}
{!! FormField::text('phone', ['value' => Option::get('agency_phone')]) !!}
@@ -27,13 +27,13 @@ {{ Form::close() }}
{{ Form::open(['route' => 'users.agency.logo-upload', 'method' => 'patch', 'files' => true]) }} - {{ trans('agency.logo') }} + {{ __('agency.logo') }}

{!! appLogoImage(['style' => 'margin:20px auto']) !!}

{!! FormField::file('logo', [ - 'label' => trans('agency.logo_change'), - 'info' => ['text' => trans('agency.logo_upload_info'), 'class' => 'danger'], + 'label' => __('agency.logo_change'), + 'info' => ['text' => __('agency.logo_upload_info'), 'class' => 'warning'], ]) !!} - {{ Form::submit(trans('agency.logo_upload'), ['class' => 'btn btn-default']) }} + {{ Form::submit(__('agency.logo_upload'), ['class' => 'btn btn-default']) }} {{ Form::close() }}