This commit is contained in:
denisdulici 2017-09-21 17:04:28 +03:00
parent 705cbb927a
commit 3b3e3bbb66
2 changed files with 40 additions and 40 deletions

View File

@ -2,41 +2,42 @@
return [ return [
'api_token' => 'Token', 'title' => 'API Token',
'enter_api_token' => 'Enter your API token', 'api_token' => 'Token',
'top_paid' => 'Top Paid', 'top_paid' => 'Top Paid',
'new' => 'New', 'new' => 'New',
'top_free' => 'Top Free', 'top_free' => 'Top Free',
'free' => 'FREE', 'free' => 'FREE',
'install' => 'Install', 'install' => 'Install',
'buy_now' => 'Buy Now', 'buy_now' => 'Buy Now',
'faq' => 'FAQ', 'faq' => 'FAQ',
'changelog' => 'Changelog', 'changelog' => 'Changelog',
'installed' => 'Changelog', 'installed' => 'Installed',
'uninstalled' => 'Changelog', 'uninstalled' => 'Uninstalled',
'token_link' => '<a href="https://akaunting.com/tokens" target="_blank">Click here</a> to get your API token.',
'enabled' => ':module module enabled', 'enabled' => ':module module enabled',
'disabled' => ':module module disabled', 'disabled' => ':module module disabled',
'installation' => [ 'installation' => [
'header' => 'Module Installation', 'header' => 'Module Installation',
'start' => ':module installing.', 'start' => ':module installing.',
'download' => 'Downloading :module file.', 'download' => 'Downloading :module file.',
'unzip' => 'Extracting :module files.', 'unzip' => 'Extracting :module files.',
'install' => 'Uploading :module files.', 'install' => 'Uploading :module files.',
], ],
'history' => [ 'history' => [
'installed' => ':module installed', 'installed' => ':module installed',
'uninstalled' => ':module uninstall', 'uninstalled' => ':module uninstall',
'updated' => ':module updated', 'updated' => ':module updated',
'enabled' => ':module enabled', 'enabled' => ':module enabled',
'disabled' => ':module disabled', 'disabled' => ':module disabled',
], ],
'button' => [ 'button' => [
'uninstall' => 'Uninstall', 'uninstall' => 'Uninstall',
'disable' => 'Disable', 'disable' => 'Disable',
'enable' => 'Enable', 'enable' => 'Enable',
], ],
]; ];

View File

@ -1,25 +1,24 @@
@extends('layouts.modules') @extends('layouts.modules')
@section('title', trans_choice('general.modules', 2)) @section('title', trans('modules.title'))
@section('content') @section('content')
<div class="box box-success"> <div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">{{ trans('modules.enter_api_token') }}</h3>
</div>
<!-- /.box-header -->
<!-- form start -->
{!! Form::open(['url' => 'modules/token', 'files' => true, 'role' => 'form']) !!} {!! Form::open(['url' => 'modules/token', 'files' => true, 'role' => 'form']) !!}
<div class="box-body"> <div class="box-body">
<div class="form-group required {{ $errors->has('api_token') ? 'has-error' : ''}}"> <div class="col-md-12">
{!! Form::label('sale_price', trans('modules.api_token'), ['class' => 'control-label']) !!} <div class="form-group required {{ $errors->has('api_token') ? 'has-error' : ''}}">
<div class="input-group"> {!! Form::label('sale_price', trans('modules.api_token'), ['class' => 'control-label']) !!}
<span class="input-group-addon"><i class="fa fa-key"></i></span> <div class="input-group">
{!! Form::text('api_token', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => trans('general.form.enter', ['field' => trans('modules.api_token')])]) !!} <span class="input-group-addon"><i class="fa fa-key"></i></span>
{!! Form::text('api_token', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => trans('general.form.enter', ['field' => trans('modules.api_token')])]) !!}
</div>
{!! $errors->first('api_token', '<p class="help-block">:message</p>') !!}
</div> </div>
{!! $errors->first('api_token', '<p class="help-block">:message</p>') !!} <p>
{!! trans('modules.token_link') !!}
</p>
</div> </div>
</div> </div>
<!-- /.box-body --> <!-- /.box-body -->