user
10/09/2021, 11:55 AMuser
10/09/2021, 11:55 AMifox
10/09/2021, 11:56 AMifox
10/09/2021, 11:58 AMifox
10/09/2021, 11:58 AMifox
10/09/2021, 11:59 AMuser
10/09/2021, 12:01 PMifox
10/09/2021, 12:08 PMifox
10/09/2021, 12:09 PMSami
10/09/2021, 12:10 PMuser
10/09/2021, 12:17 PMifox
10/09/2021, 12:19 PMifox
10/09/2021, 12:20 PMuser
10/09/2021, 12:42 PMMikeR
10/09/2021, 1:57 PMMikeR
10/09/2021, 1:58 PMifox
10/09/2021, 2:26 PMsideFieldset or publisherRowsMikeR
10/09/2021, 2:48 PMpboivin
10/09/2021, 2:51 PM@extends('twill::layouts.form')
@section('contentFields')
{{-- Regular fields here --}}
@stop
@section('sideFieldsets')
{{-- Something to approximate Twill's fieldset --}}
<div style="
display: flex;
flex-direction: column;
align-items: stretch;
padding: 10px;
background: white;
border: 1px solid #e5e5e5;
">
<a17-button type="button" variant="primary" size="small" @click="$root.$refs.actionApproveBtn.click()">
Approve
</a17-button>
</div>
@stop
@section('content')
@parent
{{-- Add a form for the custom POST action, outside of Twill's main form --}}
<form action="/admin/my-custom-action" method="POST" hidden>
<button type="submit" ref="actionApproveBtn">Approve</button>
</form>
@stoppboivin
10/09/2021, 2:52 PMuser
10/09/2021, 2:53 PMuser
10/09/2021, 2:54 PMMikeR
10/09/2021, 2:57 PMifox
10/09/2021, 3:05 PMMikeR
10/09/2021, 3:11 PMifox
10/09/2021, 3:14 PMifox
10/09/2021, 3:16 PMMikeR
10/09/2021, 3:16 PMifox
10/09/2021, 3:29 PMifox
10/09/2021, 3:30 PMsubmitOptions to hook into the existing button