@extends('layouts/edit-form', [ 'createText' => trans('admin/categories/general.create') , 'updateText' => trans('admin/categories/general.update'), 'helpTitle' => trans('admin/categories/general.about_categories_title'), 'helpText' => trans('admin/categories/general.about_categories'), 'formAction' => ($item) ? route('categories.update', ['category' => $item->id]) : route('categories.store'), ]) @section('inputFields') @include ('partials.forms.edit.name', ['translated_name' => trans('admin/categories/general.name')])
{{ Form::select('category_type', $category_types , Input::old('category_type', $item->category_type), array('class'=>'select2', 'style'=>'min-width:350px', 'aria-label'=>'category_type', $item->itemCount() > 0 ? 'disabled' : '')) }} {!! $errors->first('category_type', '') !!}
{{ Form::textarea('eula_text', Input::old('eula_text', $item->eula_text), array('class' => 'form-control', 'aria-label'=>'eula_text')) }}

{!! trans('admin/categories/general.eula_text_help') !!}

{!! trans('admin/settings/general.eula_markdown') !!}

{!! $errors->first('eula_text', '') !!}
@if ($snipeSettings->default_eula_text!='') @else
@endif
@if ($item->image)
{{ Form::checkbox('image_delete') }} {!! $errors->first('image_delete', '') !!}
@endif @include ('partials.forms.edit.image-upload') @stop @section('content') @parent @if ($snipeSettings->default_eula_text!='') @endif @stop