<commit_before>@extends('layouts/default')

{{-- Page title --}}
@section('title')
  {{ trans('admin/custom_fields/general.custom_fields') }}
@parent
@stop



@section('content')



  <div class="row">
    <div class="col-md-12">

      <div class="box box-default">

          <div class="box-header with-border">
            <h3 class="box-title">{{ $custom_fieldset->name }} {{ trans('admin/custom_fields/general.fieldset') }}</h3>
            <div class="box-tools pull-right">

            </div>
          </div><!-- /.box-header -->
         <div class="box-body">

           <table
           name="fieldsets"
           id="sort" class="table table-responsive todo-list">
               <thead>
                   <tr>
                     <th class="col-md-1"></th>
                     <th class="col-md-1">{{ trans('admin/custom_fields/general.order') }}</th>
                     <th class="col-md-5">{{ trans('admin/custom_fields/general.field_name') }}</th>
                     <th class="col-md-2">{{ trans('admin/custom_fields/general.field_format') }}</th>
                     <th class="col-md-2">{{ trans('admin/custom_fields/general.field_element') }}</th>
                     <th class="col-md-1">{{ trans('admin/custom_fields/general.required') }}</th>
                   </tr>
               </thead>
               <tfoot>
                   <tr>
                     <td colspan="5" class="text-right">
                       {{ Form::open(['route' => ["admin.custom_fields.associate",$custom_fieldset->id], 'class'=>'form-horizontal', 'id' => 'ordering']) }}
                       {{ Form::checkbox("required","on") }}
                       {{ trans('admin/custom_fields/general.required') }}
                       {{ Form::text("order",$maxid)}}
                       {{ Form::select("field_id",$custom_fields_list,"",["onchange" => "document.forms[0].submit()"]) }}
                       <span class="alert-msg"><?= $errors->first('field_id'); ?></span>

                     </td>
                   </tr>
               </tfoot>
               <tbody>
                 @foreach($custom_fieldset->fields as $field)
                 <tr class="cansort" data-index="{{ $field->pivot->custom_field_id }}" id="item_{{ $field->pivot->custom_field_id }}">
                   <td>
                     <!-- drag handle -->
                         <span class="handle">
                           <i class="fa fa-ellipsis-v"></i>
                           <i class="fa fa-ellipsis-v"></i>
                         </span>
                       </td>
                   <td class="index">{{$field->pivot->order}}</td><commit_msg>Fixes #2080<commit_after>@extends('layouts/default')

{{-- Page title --}}
@section('title')
  {{ trans('admin/custom_fields/general.custom_fields') }}
@parent
@stop



@section('content')



  <div class="row">
    <div class="col-md-12">

      <div class="box box-default">

          <div class="box-header with-border">
            <h3 class="box-title">{{ $custom_fieldset->name }} {{ trans('admin/custom_fields/general.fieldset') }}</h3>
            <div class="box-tools pull-right">

            </div>
          </div><!-- /.box-header -->
         <div class="box-body">

           <table
           name="fieldsets"
           id="sort" class="table table-responsive todo-list">
               <thead>
                   <tr>
                     <th class="col-md-1"></th>
                     <th class="col-md-1">{{ trans('admin/custom_fields/general.order') }}</th>
                     <th class="col-md-5">{{ trans('admin/custom_fields/general.field_name') }}</th>
                     <th class="col-md-2">{{ trans('admin/custom_fields/general.field_format') }}</th>
                     <th class="col-md-2">{{ trans('admin/custom_fields/general.field_element') }}</th>
                     <th class="col-md-1">{{ trans('admin/custom_fields/general.required') }}</th>
                   </tr>
               </thead>
               <tfoot>
                   <tr>
                     <td colspan="5" class="text-right">
                       {{ Form::open(['route' => ["admin.custom_fields.associate",$custom_fieldset->id], 'class'=>'form-horizontal', 'id' => 'ordering']) }}
                       {{ Form::checkbox("required","on") }}
                       {{ trans('admin/custom_fields/general.required') }}
                       {{ Form::text("order",$maxid)}}
                       {{ Form::select("field_id",$custom_fields_list,"",["onchange" => "$('#ordering').submit()"]) }}
                       <span class="alert-msg"><?= $errors->first('field_id'); ?></span>

                     </td>
                   </tr>
               </tfoot>
               <tbody>
                 @foreach($custom_fieldset->fields as $field)
                 <tr class="cansort" data-index="{{ $field->pivot->custom_field_id }}" id="item_{{ $field->pivot->custom_field_id }}">
                   <td>
                     <!-- drag handle -->
                         <span class="handle">
                           <i class="fa fa-ellipsis-v"></i>
                           <i class="fa fa-ellipsis-v"></i>
                         </span>
                       </td>
                   <td class="index">{{$field->pivot->order}}</td>
{'fraction_non_alphanumeric': 0.19026132731716489, 'fraction_numerical': 0.005076142131979695, 'mean_word_length': 1.561386615310544, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 131, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4882611', 'n_tokens_mistral': 1542, 'n_tokens_neox': 1460, 'n_words': 220}