<commit_before>@extends('layout.default')

@section('title', $L('Presets for new products'))

@section('viewJsName', 'productpresets')

@section('content')
<div class="row">
	<div class="col-lg-6 col-xs-12">
		<h1>@yield('title')</h1>

		<div class="form-group">
			<label for="product_presets_location_id">{{ $L('Location') }}</label>
			<select class="form-control user-setting-control" id="product_presets_location_id" data-setting-key="product_presets_location_id">
				<option value="-1"></option>
				@foreach($locations as $location)
					<option value="{{ $location->id }}">{{ $location->name }}</option>
				@endforeach
			</select>
		</div>

		<div class="form-group">
			<label for="product_presets_product_group_id">{{ $L('Product group') }}</label>
			<select class="form-control user-setting-control" id="product_presets_product_group_id" data-setting-key="product_presets_product_group_id">
				<option value="-1"></option>
				@foreach($productgroups as $productgroup)
					<option value="{{ $productgroup->id }}">{{ $productgroup->name }}</option><commit_msg>Fix product groups were empty on product presets page (references #92)<commit_after>@extends('layout.default')

@section('title', $L('Presets for new products'))

@section('viewJsName', 'productpresets')

@section('content')
<div class="row">
	<div class="col-lg-6 col-xs-12">
		<h1>@yield('title')</h1>

		<div class="form-group">
			<label for="product_presets_location_id">{{ $L('Location') }}</label>
			<select class="form-control user-setting-control" id="product_presets_location_id" data-setting-key="product_presets_location_id">
				<option value="-1"></option>
				@foreach($locations as $location)
					<option value="{{ $location->id }}">{{ $location->name }}</option>
				@endforeach
			</select>
		</div>

		<div class="form-group">
			<label for="product_presets_product_group_id">{{ $L('Product group') }}</label>
			<select class="form-control user-setting-control" id="product_presets_product_group_id" data-setting-key="product_presets_product_group_id">
				<option value="-1"></option>
				@foreach($productGroups as $productGroup)
					<option value="{{ $productGroup->id }}">{{ $productGroup->name }}</option>
{'fraction_non_alphanumeric': 0.19511090991398822, 'fraction_numerical': 0.007243096423721141, 'mean_word_length': 5.971608832807571, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 55, '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': '6589018', 'n_tokens_mistral': 800, 'n_tokens_neox': 717, 'n_words': 131}