mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-23 04:58:07 +00:00
39 lines
1.3 KiB
PHP
39 lines
1.3 KiB
PHP
@extends('layouts.main')
|
|
|
|
@section('breadcrumb')
|
|
<li class="breadcrumb-item">
|
|
<a href="{{ route('admin.account.index') }}">Accounts</a>
|
|
</li>
|
|
<li class="breadcrumb-item">
|
|
<a href="{{ route('admin.account.edit', $account->id) }}">{{ $account->identifier }}</a>
|
|
</li>
|
|
<li class="breadcrumb-item active" aria-current="page">
|
|
Actions
|
|
</li>
|
|
@endsection
|
|
|
|
@section('content')
|
|
@if ($action->id)
|
|
<h2>Edit an account action</h2>
|
|
@else
|
|
<h2>Create an account action</h2>
|
|
@endif
|
|
|
|
<form method="POST"
|
|
action="{{ $action->id ? route('admin.account.acton.update', [$action->account->id, $action->id]) : route('admin.account.action.store', $account->id) }}"
|
|
accept-charset="UTF-8">
|
|
@method($action->id ? 'put' : 'post')
|
|
@csrf
|
|
<div>
|
|
<input type="text" name="key" value="{{ $action->key }}" placeholder="action_key">
|
|
<label for="key">Key</label>
|
|
</div>
|
|
<div>
|
|
<input type="text" name="code" value="{{ $action->code }}" placeholder="12ab45">
|
|
<label for="code">Code</label>
|
|
</div>
|
|
<div>
|
|
<input class="btn btn-success" type="submit" value="{{ $action->id ? 'Update' : 'Create' }}">
|
|
</div>
|
|
</form>
|
|
@endsection
|