@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/custom_fields/general.custom_fields') }} @parent @stop @section('content') @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content')
@if ($field->id) {{ Form::open(['route' => ['fields.update', $field->id], 'class'=>'form-horizontal']) }} {{ method_field('PUT') }} @else {{ Form::open(['route' => 'fields.store', 'class'=>'form-horizontal']) }} @endif
{{ Form::text('name', Input::old('name', $field->name), array('class' => 'form-control')) }} {!! $errors->first('name', ' :message') !!}
{!! Form::customfield_elements('element', Input::old('element', $field->element), 'field_element select2 form-control') !!} {!! $errors->first('element', ' :message') !!}
{{ Form::select("format",\App\Helpers\Helper::predefined_formats(), $field->format, array('class'=>'format select2 form-control')) }} {!! $errors->first('format', ' :message') !!}
{{ Form::text('help_text', Input::old('help_text', $field->help_text), array('class' => 'form-control')) }}

This is optional text that will appear below the form elements while editing an asset to provide context on the field.

{!! $errors->first('help_text', ' :message') !!}
@if (!$field->id)
@endif
{{ Form::close() }}

About Custom Fields

Custom fields allow you to add arbitrary attributes to assets.

@stop @section('moar_scripts') @stop