View file trums/views/notebooks/edit.blade.php

File size: 1.21Kb
@extends('layout')

@section('title')
    {{ trans('notebooks.title_edit') }}
@stop

@section('content')

    <h1>{{ trans('notebooks.title_edit') }}</h1>

    <nav>
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
            <li class="breadcrumb-item"><a href="/menu">{{ trans('common.menu') }}</a></li>
            <li class="breadcrumb-item"><a href="/notebooks">{{ trans('notebooks.title') }}</a></li>
            <li class="breadcrumb-item active">{{ trans('notebooks.title_edit') }}</li>
        </ol>
    </nav>

    <div class="form">
        <form action="/notebooks/edit" method="post">
            <input type="hidden" name="token" value="{{ $_SESSION['token'] }}">

            <div class="form-group{{ hasError('msg') }}">
                <label for="msg">{{ trans('notebooks.note') }}:</label>
                <textarea class="form-control markItUp" id="msg" rows="5" name="msg">{{ getInput('msg', $note->text) }}</textarea>
                {!! textError('msg') !!}
            </div>

            <button class="btn btn-primary">{{ trans('notebooks.save') }}</button>
        </form>
    </div><br>

    {{ trans('notebooks.info_edit') }}<br><br>
@stop