WordPressFreeScout/Resources/views/mailbox_settings.blade.php
2024-04-17 22:05:12 +05:00

82 lines
3.9 KiB
PHP

@extends('layouts.app')
@section('title_full', 'WordPress'.' - '.$mailbox->name)
@section('sidebar')
@include('partials/sidebar_menu_toggle')
@include('mailboxes/sidebar_menu')
@endsection
@section('content')
<div class="section-heading margin-bottom">
WordPress - {{ $mailbox->name }}
</div>
<!-- @include('partials/flash_messages') -->
<div class="row-container">
<div class="row">
<div class="col-xs-12">
<p class="block-help">
At this point, you can overwrite the default settings of the WordPress installation. This makes sense if you manage several projects and WordPress sites at the same time.
</p>
</div>
</div>
<hr>
<div class="row">
<div class="col-xs-12">
<form class="form-horizontal margin-top margin-bottom" method="POST" action="">
{{ csrf_field() }}
@if (isset($wordpress_auth_error) && !empty($wordpress_auth_error))
<div class="alert alert-danger">
<strong>{{ __('WordPress API authentication error') }}</strong><br/>{{ $wordpress_auth_error }}
</div>
@endif
<div class="form-group margin-bottom">
<label class="col-sm-2 control-label">{{ __('Integration Status with WordPress') }}</label>
<div class="col-sm-6">
<label class="control-label">
@if ($settings['wordpress.wordpress_active'])
<strong class="text-success"><i class="glyphicon glyphicon-ok"></i> {{ __('Active') }}</strong>
@else
<strong class="text-warning">{{ __('Inactive') }}</strong>
@endif
</label>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">{{ __('WordPress Site URL') }}</label>
<div class="col-sm-6">
<input type="text" class="form-control input-sized-lg" name="settings[wordpress.url]" value="{{ $settings['wordpress.url'] }}">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">{{ __('WordPress Username') }}</label>
<div class="col-sm-6">
<input type="text" class="form-control input-sized-lg" name="settings[wordpress.username]" value="{{ $settings['wordpress.username'] }}">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">{{ __('WordPress API Token') }}</label>
<div class="col-sm-6">
<input type="password" class="form-control input-sized-lg" name="settings[wordpress.password]" value="{{ $settings['wordpress.password'] }}" autocomplete="new-password">
<div class="form-help">
<a href="https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/" target="_blank">{{ __('How to get an API Token in WordPress?') }}</a>
</div>
</div>
</div>
<div class="form-group margin-top margin-bottom">
<div class="col-sm-6 col-sm-offset-2">
<button type="submit" class="btn btn-primary">
{{ __('Save') }}
</button>
</div>
</div>
</form>
</div>
</div>
</div>
@endsection