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>
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
args: $rows, $cols
|
||||
--}}
|
||||
|
||||
@php
|
||||
/** @var object[] $columns */
|
||||
/** @var \App\Models\Row[]|array[][] $rows */
|
||||
@endphp
|
||||
|
||||
<table class="table table-hover table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
{{-- Basic table view --}}
|
||||
|
||||
@extends('layouts.app')
|
||||
|
||||
@php
|
||||
/** @var \App\Models\Table $table */
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<div class="row justify-content-start px-3">
|
||||
<div class="d-flex w-100 align-items-center">
|
||||
<small class="flex-grow-1" style="font-size: 120%;">
|
||||
<a href="{{route('profile.view', $table->owner->name)}}" class="link-no-color">{{ $table->owner->handle }}</a>{{--
|
||||
--}}<span class="px-1">/</span>{{--
|
||||
--}}<b>{{ $table->name }}</b>
|
||||
</small>
|
||||
|
||||
<h1 class="mx-3">{{ $table->title }}</h1>
|
||||
|
||||
<a href="{{ $table->viewRoute }}" class="btn btn-outline-primary py-1 btn-sm"
|
||||
title="Back to Table" data-toggle="tooltip" data-placement="top">
|
||||
@icon(fa-table, sr:Back to Table)
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mx-auto col-md-12 justify-content-center mb-1 border rounded px-0 py-2 box-shadow mb-3">
|
||||
lalala
|
||||
</div>{{-- End of row --}}
|
||||
|
||||
@endsection
|
||||
@@ -7,19 +7,19 @@
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<div class="row justify-content-start px-3">
|
||||
<div class="d-flex w-100 align-items-center">
|
||||
<small class="flex-grow-1" style="font-size: 120%;">
|
||||
<a href="{{route('profile.view', $table->owner->name)}}" class="link-no-color">{{ $table->owner->handle }}</a>{{--
|
||||
--}}<span class="px-1">/</span>{{--
|
||||
--}}<b>{{ $table->name }}</b>
|
||||
</small>
|
||||
<div class="row justify-content-start px-3">
|
||||
<div class="d-flex w-100 align-items-center">
|
||||
<small class="flex-grow-1" style="font-size: 120%;">
|
||||
<a href="{{route('profile.view', $table->owner->name)}}" class="link-no-color">{{ $table->owner->handle }}</a>{{--
|
||||
--}}<span class="px-1">/</span>{{--
|
||||
--}}<b>{{ $table->name }}</b>
|
||||
</small>
|
||||
|
||||
<h1 class="mx-3">{{ $table->title }}</h1>
|
||||
<h1 class="mx-3">{{ $table->title }}</h1>
|
||||
|
||||
@include('table._action-buttons')
|
||||
</div>
|
||||
@include('table._action-buttons')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mx-auto col-md-12 justify-content-center mb-1 border rounded px-0 py-2 box-shadow mb-3">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user