<commit_before>@extends('layout.app', [
    'title' => 'Edit: ' . $designer->name,
    'body_id' => 'designer-edit-page',
    'body_class' => 'designer-edit edit',
    'active_nav' => 'designer',
])

@section('main')
<div class="container">
    <form id="designer-edit-form" class="form-horizontal" action="{{ $designer->url }}"
        data-id="{{ $designer->id }}">

        <input type="hidden" name="_token" value="{{ csrf_token() }}">

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10 col-md-8">
                <div class="alert alert-warning" style="display:none;" role="alert"></div>
            </div>
        </div>

        <div class="form-group">
            <label for="input-name" class="col-sm-2 control-label">
                Name
            </label>

            <div class="col-sm-10 col-md-8">
                <input name="name" type="text" class="form-control" id="input-name"
                    value="{{ $designer->text('name', 'en') }}">
            </div>
        </div>

        <div id="image-form-group" class="form-group">
            <label class="col-sm-2 control-label">
                Cover image
            </label>

            <div class="col-sm-10 col-md-8">
                <div id="cover-editor" class="cover-editor">
                    <p><button type="button" class="btn btn-default"><i class="fa fa-picture-o"></i> Choose</button></p>
                    @if ($designer->image_id)
                        @include('component.image-preview', ['image' => $designer->image])
                    @else
                        @include('component.image-preview')
                    @endif
                </div>
            </div>
        </div>

        <div class="form-group">
            <label for="input-tagline" class="col-sm-2 control-label">
                Tagline
            </label>

            <div class="col-sm-10 col-md-8">
                <input type="text" name="tagline" class="form-control" id="input-tagline"
                    placeholder="Express design philosophy in short" maxlength="255"
                    value="{{ $designer->text('tagline', 'en') }}">
            </div>
        </div>

        <div class="form-group">
            <label for="input-content" class="col-sm-2 control-label">
                Content
            </label>

            <div class="col-sm-10 col-md-8">
                <textarea name="content" class="form-control tinymce"
                    id="input-content">{{ $designer->text('content', 'en') }}</textarea>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">
                Gallery
            </label>

            <div class="col-sm-10 col-md-8">
                <div id="gallery-editor" class="gallery-editor">
                    <p><button type="button" class="btn btn-default"><i class="fa fa-picture-o"></i> Choose</button></p>
                    <div class="images clearfix">
                        @foreach ($designer->gallery_images as $image)
                            @include('component.image-preview', ['image' => $image])
                        @endforeach
                    </div>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">
                City
            </label>

            <div class="col-sm-4 col-md-3">
                <select name="city_id" id="city-select" class="city-select form-control">
                    @if (!empty($place->city_id))
                        <option value="{{ $place->city_id }}" selected="selected">{{ $place->city->full_name }}</option>
                    @endif
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">Tags</label>

            <div class="col-sm-10 col-md-8">
                <select name="tag_ids[]" class="tag-select" style="width: 100%" multiple="multiple">
                    @foreach ($designer->tags as $tag)
                        <option value="{{ $tag->id }}" selected="selected">{{ $tag->text('name') }}</option>
                    @endforeach
                </select>
            </div>
        </div>

        <div class="form-group">
            <label for="input-email" class="col-sm-2 control-label">Email</label>
            <div class="col-sm-10 col-md-8">
                <input name="email" value="{{ $designer->email }}" type="email"
                    maxlength="255" class="form-control" id="input-email">
            </div>
        </div><commit_msg>Fix city select bug in designer edit form.<commit_after>@extends('layout.app', [
    'title' => 'Edit: ' . $designer->name,
    'body_id' => 'designer-edit-page',
    'body_class' => 'designer-edit edit',
    'active_nav' => 'designer',
])

@section('main')
<div class="container">
    <form id="designer-edit-form" class="form-horizontal" action="{{ $designer->url }}"
        data-id="{{ $designer->id }}">

        <input type="hidden" name="_token" value="{{ csrf_token() }}">

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10 col-md-8">
                <div class="alert alert-warning" style="display:none;" role="alert"></div>
            </div>
        </div>

        <div class="form-group">
            <label for="input-name" class="col-sm-2 control-label">
                Name
            </label>

            <div class="col-sm-10 col-md-8">
                <input name="name" type="text" class="form-control" id="input-name"
                    value="{{ $designer->text('name', 'en') }}">
            </div>
        </div>

        <div id="image-form-group" class="form-group">
            <label class="col-sm-2 control-label">
                Cover image
            </label>

            <div class="col-sm-10 col-md-8">
                <div id="cover-editor" class="cover-editor">
                    <p><button type="button" class="btn btn-default"><i class="fa fa-picture-o"></i> Choose</button></p>
                    @if ($designer->image_id)
                        @include('component.image-preview', ['image' => $designer->image])
                    @else
                        @include('component.image-preview')
                    @endif
                </div>
            </div>
        </div>

        <div class="form-group">
            <label for="input-tagline" class="col-sm-2 control-label">
                Tagline
            </label>

            <div class="col-sm-10 col-md-8">
                <input type="text" name="tagline" class="form-control" id="input-tagline"
                    placeholder="Express design philosophy in short" maxlength="255"
                    value="{{ $designer->text('tagline', 'en') }}">
            </div>
        </div>

        <div class="form-group">
            <label for="input-content" class="col-sm-2 control-label">
                Content
            </label>

            <div class="col-sm-10 col-md-8">
                <textarea name="content" class="form-control tinymce"
                    id="input-content">{{ $designer->text('content', 'en') }}</textarea>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">
                Gallery
            </label>

            <div class="col-sm-10 col-md-8">
                <div id="gallery-editor" class="gallery-editor">
                    <p><button type="button" class="btn btn-default"><i class="fa fa-picture-o"></i> Choose</button></p>
                    <div class="images clearfix">
                        @foreach ($designer->gallery_images as $image)
                            @include('component.image-preview', ['image' => $image])
                        @endforeach
                    </div>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">
                City
            </label>

            <div class="col-sm-4 col-md-3">
                <select name="city_id" id="city-select" class="city-select form-control">
                    @if (!empty($designer->city_id))
                        <option value="{{ $designer->city_id }}" selected="selected">{{ $designer->city->full_name }}</option>
                    @endif
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">Tags</label>

            <div class="col-sm-10 col-md-8">
                <select name="tag_ids[]" class="tag-select" style="width: 100%" multiple="multiple">
                    @foreach ($designer->tags as $tag)
                        <option value="{{ $tag->id }}" selected="selected">{{ $tag->text('name') }}</option>
                    @endforeach
                </select>
            </div>
        </div>

        <div class="form-group">
            <label for="input-email" class="col-sm-2 control-label">Email</label>
            <div class="col-sm-10 col-md-8">
                <input name="email" value="{{ $designer->email }}" type="email"
                    maxlength="255" class="form-control" id="input-email">
            </div>
        </div>
{'fraction_non_alphanumeric': 0.1738339751818571, 'fraction_numerical': 0.009413778348309799, 'mean_word_length': 1.563476830271456, 'pattern_counts': {'":': 0, '<': 179, '<?xml version=': 0, '>': 225, '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': '3303806', 'n_tokens_mistral': 2734, 'n_tokens_neox': 2581, 'n_words': 506}