Change public to show on echo/file areas to enable limiting whats shown in the activity graph

This commit is contained in:
2023-07-28 13:22:39 +10:00
parent ddb8c349b6
commit f1ccca25ea
9 changed files with 20 additions and 18 deletions

View File

@@ -1,3 +1,4 @@
<!-- $o = Domain::class -->
@extends('layouts.app')
@section('htmlheader_title')
{{ $o->name }}

View File

@@ -64,14 +64,14 @@
</div>
<div class="col-2">
<label for="public" class="form-label">Public</label>
<label for="show" class="form-label">Show <i class="bi bi-info-circle" title="Show this area in the activity reports"></i></label>
<div class="input-group">
<div class="btn-group" role="group">
<input type="radio" class="btn-check" name="public" id="public_yes" value="1" required @cannot('admin',$o)disabled @endcannot @if(old('public',$o->public ?? TRUE))checked @endif>
<label class="btn btn-outline-success" for="public_yes">Yes</label>
<input type="radio" class="btn-check" name="show" id="show_yes" value="1" required @cannot('admin',$o)disabled @endcannot @if(old('show',$o->show ?? TRUE))checked @endif>
<label class="btn btn-outline-success" for="show_yes">Yes</label>
<input type="radio" class="btn-check btn-danger" name="public" id="public_no" value="0" required @cannot('admin',$o)disabled @endcannot @if(! old('public',$o->public ?? TRUE))checked @endif>
<label class="btn btn-outline-danger" for="public_no">No</label>
<input type="radio" class="btn-check btn-danger" name="show" id="show_no" value="0" required @cannot('admin',$o)disabled @endcannot @if(! old('show',$o->show ?? TRUE))checked @endif>
<label class="btn btn-outline-danger" for="show_no">No</label>
</div>
</div>
</div>

View File

@@ -65,14 +65,14 @@
</div>
<div class="col-2">
<label for="public" class="form-label">Public</label>
<label for="show" class="form-label">Show <i class="bi bi-info-circle" title="Show this area in the activity reports"></i></label>
<div class="input-group">
<div class="btn-group" role="group">
<input type="radio" class="btn-check" name="public" id="public_yes" value="1" required @cannot('admin',$o)disabled @endcannot @if(old('public',$o->public ?? TRUE))checked @endif>
<label class="btn btn-outline-success" for="public_yes">Yes</label>
<input type="radio" class="btn-check" name="show" id="show_yes" value="1" required @cannot('admin',$o)disabled @endcannot @if(old('show',$o->show ?? TRUE))checked @endif>
<label class="btn btn-outline-success" for="show_yes">Yes</label>
<input type="radio" class="btn-check btn-danger" name="public" id="public_no" value="0" required @cannot('admin',$o)disabled @endcannot @if(! old('public',$o->public ?? TRUE))checked @endif>
<label class="btn btn-outline-danger" for="public_no">No</label>
<input type="radio" class="btn-check btn-danger" name="show" id="show_no" value="0" required @cannot('admin',$o)disabled @endcannot @if(! old('show',$o->show ?? TRUE))checked @endif>
<label class="btn btn-outline-danger" for="show_no">No</label>
</div>
</div>
</div>