Skip to content

Commit

Permalink
translation for integrations page, and remove weird check
Browse files Browse the repository at this point in the history
  • Loading branch information
Bottelet committed Nov 1, 2016
1 parent 3a66b48 commit 4d09b17
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
10 changes: 10 additions & 0 deletions resources/lang/en/integration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return [
'headers' => [
'integrations' => 'All Integrations',
'api_key' => 'Api Key',
'orginatzion_id' => 'Organization Id',
'update' => 'Update',
],
];
18 changes: 6 additions & 12 deletions resources/views/integrations/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,21 @@
@section('content')

<div class="row">
<h3>All Integrations</h3>
<h3>@lang('integration.headers.integrations')</h3>
<div class="col-sm-4">
@foreach($check as $check)
@if($check->name == "Dinero")
<?php $dinero = "Dinero OK" ?>

@endif
@endforeach
<img src="imagesIntegration/dinero-logo.png" width="50%" align="center" alt="">

{!! Form::open([
'route' => 'integrations.store'
]) !!}
<div class="form-group">
{!! Form::label('api_key', 'Api Key:', ['class' => 'control-label']) !!}
{!! Form::label('api_key', Lang::get('integration.headers.api_key'), ['class' => 'control-label']) !!}
{!! Form::text('api_key', null, ['class' => 'form-control']) !!}
</div>


<div class="form-group">
{!! Form::label('org_id', 'Orginatzion Id:', ['class' => 'control-label']) !!}
{!! Form::label('org_id', Lang::get('integration.headers.orginatzion_id'), ['class' => 'control-label']) !!}
{!! Form::text('org_id', null, ['class' => 'form-control']) !!}
</div>

Expand All @@ -32,7 +26,7 @@
{!! Form::hidden('name', 'Dinero') !!}
{!! Form::hidden('api_type', 'billing') !!}

{!! Form::submit('Update', ['class' => 'btn btn-primary']) !!}
{!! Form::submit(Lang::get('integration.headers.update'), ['class' => 'btn btn-primary']) !!}

{!! Form::close() !!}
</div>
Expand All @@ -44,14 +38,14 @@
]) !!}
<div class="form-group">
{!! Form::label('api_key', 'Api Key:', ['class' => 'control-label']) !!}
{!! Form::label('api_key', Lang::get('integration.headers.api_key'), ['class' => 'control-label']) !!}
{!! Form::text('api_key', null, ['class' => 'form-control']) !!}
</div>


{!! Form::hidden('name', 'Billy') !!}
{!! Form::hidden('api_type', 'billing') !!}
{!! Form::submit('Update', ['class' => 'btn btn-primary']) !!}
{!! Form::submit(Lang::get('integration.headers.update'), ['class' => 'btn btn-primary']) !!}

{!! Form::close() !!}
</div>
Expand Down

0 comments on commit 4d09b17

Please sign in to comment.