@extends('layouts/edit-form', [ 'createText' => trans('admin/categories/general.create') , 'updateText' => trans('admin/categories/general.update'), 'helpPosition' => 'right', 'helpText' => trans('help.categories'), 'formAction' => (isset($item->id)) ? 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 , Request::old('category_type', $item->category_type), array('class'=>'select2', 'style'=>'min-width:350px', $item->itemCount() > 0 ? 'disabled' : '')) }} {!! $errors->first('category_type', ' :message') !!}
{{ Form::textarea('eula_text', Request::old('eula_text', $item->eula_text), array('class' => 'form-control')) }}

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

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

{!! $errors->first('eula_text', ':message') !!}
@if ($snipeSettings->default_eula_text!='') {{ Form::checkbox('use_default_eula', '1', old('use_default_eula', $item->use_default_eula), ['class'=>'minimal']) }} {!! trans('admin/categories/general.use_default_eula') !!} @else
{{ Form::checkbox('use_default_eula', '0', old('use_default_eula'), ['class'=>'disabled minimal','disabled' => 'disabled']) }} {!! trans('admin/categories/general.use_default_eula_disabled') !!}
@endif
{{ Form::checkbox('require_acceptance', '1', old('require_acceptance', $item->require_acceptance), ['class'=>'minimal']) }} {{ trans('admin/categories/general.require_acceptance') }}
{{ Form::checkbox('checkin_email', '1', old('checkin_email', $item->checkin_email), ['class'=>'minimal']) }} {{ trans('admin/categories/general.checkin_email') }}
@if ($item->image)
{{ Form::checkbox('image_delete') }} {!! $errors->first('image_delete', ':message') !!}
@endif @include ('partials.forms.edit.image-upload') @stop @section('content') @parent @if ($snipeSettings->default_eula_text!='') @endif @stop