visavi/rotor

View on GitHub
resources/views/admin/rules/edit.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
@extends('layout')

@section('title', __('admin.rules.editing_rules'))

@section('breadcrumb')
    <nav>
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
            <li class="breadcrumb-item"><a href="/admin">{{ __('index.panel') }}</a></li>
            <li class="breadcrumb-item"><a href="/admin/rules">{{ __('index.site_rules') }}</a></li>
            <li class="breadcrumb-item active">{{ __('admin.rules.editing_rules') }}</li>
        </ol>
    </nav>
@stop

@section('content')
    <div class="section-form mb-3 shadow">
        <form action="/admin/rules/edit" method="post">
            @csrf
            <div class="mb-3{{ hasError('msg') }}">
                <label for="msg" class="form-label">{{ __('main.text') }}:</label>
                <textarea class="form-control markItUp" id="msg" rows="25" name="msg" required>{{ getInput('msg', $rules->text) }}</textarea>
                <div class="invalid-feedback">{{ textError('msg') }}</div>
            </div>
            <button class="btn btn-primary">{{ __('main.edit') }}</button>
        </form>
    </div>

    <b>{{ __('admin.rules.variables') }}:</b><br>

    %SITENAME% - {{ __('admin.rules.sitename') }}<br><br>
@stop