recreate Proposals button/inbox, start of edit page
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
args: $table
|
||||
--}}
|
||||
|
||||
@php
|
||||
/** @var \App\Models\Table $table */
|
||||
@endphp
|
||||
|
||||
<nav aria-label="Table action buttons">
|
||||
@sr(Table actions)
|
||||
|
||||
@@ -67,10 +71,29 @@
|
||||
@icon(fa-comment, sr:Comments)
|
||||
</a>
|
||||
|
||||
{{-- Active proposals button | counter --}}
|
||||
<div class="btn-group" role="group" aria-label="Fork">
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm" title="Change Proposals"
|
||||
data-toggle="tooltip" data-placement="top">
|
||||
@icon(fa-inbox fa-pr, sr:Change Proposals){{ $table->proposals_count ?: '–' }}
|
||||
</a>
|
||||
@if(user()->ownsTable($table))
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm btn-square" title="Draft Change"
|
||||
data-toggle="tooltip" data-placement="top">
|
||||
@icon(fa-pencil, sr:Draft Change)
|
||||
</a>
|
||||
@else
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm btn-square" title="Propose Change"
|
||||
data-toggle="tooltip" data-placement="top">
|
||||
@icon(fa-pencil, sr:Propose Change)
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
@if(user() && user()->ownsTable($table))
|
||||
<a href="" class="btn btn-outline-primary py-1 btn-sm"
|
||||
<a href="{{ $table->settingsRoute }}" class="btn btn-outline-primary py-1 btn-sm"
|
||||
title="Table Options" data-toggle="tooltip" data-placement="top">
|
||||
@icon(fa-wrench, sr:Table Options)
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user