-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add edit view for site settings with CSRF pr
- Loading branch information
1 parent
543f916
commit 3f3f095
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
<div class="container"> | ||
<h1>Edit Site Setting</h1> | ||
<form action="{{ route('site_settings.update', $setting->id) }}" method="POST"> | ||
@csrf | ||
@method('PUT') | ||
|
||
<div class="form-group"> | ||
<label for="name">Name</label> | ||
<input type="text" class="form-control" id="name" name="name" value="{{ $setting->name }}" readonly> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="value">Value</label> | ||
<input type="text" class="form-control" id="value" name="value" value="{{ $setting->value }}" required> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="description">Description (Optional)</label> | ||
<textarea class="form-control" id="description" name="description">{{ $setting->description }}</textarea> | ||
</div> | ||
|
||
<button type="submit" class="btn btn-primary">Update</button> | ||
<a href="{{ route('site_settings.index') }}" class="btn btn-secondary">Back</a> | ||
</form> | ||
</div> | ||
@endsection |