BookStackApp_BookStack/resources/views/users/api-tokens/create.blade.php
Dan Brown 12946414b0
API Tokens: Updated interfaces to return to correct location
Since management of API tokens can be accessed via two routes, this adds
tracking and handling to reutrn the user to the correct place.
2023-10-19 11:31:45 +01:00

34 lines
1.0 KiB
PHP

@extends('layouts.simple')
@section('body')
<div class="container small pt-xl">
<main class="card content-wrap auto-height">
<h1 class="list-heading">{{ trans('settings.user_api_token_create') }}</h1>
<form action="{{ url('/api-tokens/' . $user->id . '/create') }}" method="post">
{{ csrf_field() }}
<div class="setting-list">
@include('users.api-tokens.parts.form')
<div>
<p class="text-warn italic">
{{ trans('settings.user_api_token_create_secret_message') }}
</p>
</div>
</div>
<div class="form-group text-right">
<a href="{{ $back }}" class="button outline">{{ trans('common.cancel') }}</a>
<button class="button" type="submit">{{ trans('common.save') }}</button>
</div>
</form>
</main>
</div>
@stop