<commit_before>{% set exportasarchive = true %}
{% extends "DebbManagementBundle::form.html.twig" %}
{% form_theme form "DebbManagementBundle::form_theme.html.twig" %}

{% block stylesheets %}
	{{ parent() }}
	<style type="text/css">
		input[type="text"] { width: 285px; }
		select { width: 302px; }
		#content { padding: 0 0 0 0 !important; }
		.buttonbar { margin-right: -1px; margin-top: 15px; }
	</style>
{% endblock %}

{% block javascripts %}
	{{ parent() }}
	{% javascripts '@DebbConfigBundle/Resources/public/js/rack.js' %}
		<script src="{{ asset_url }}" type="text/javascript"></script>
	{% endjavascripts %}
	<script type="text/javascript">
		var rackId = {{ form.vars.data.id | default(0) }};
        $(function()
          {
              $('.rack_title').tooltip();
              $('.nodegroup').tooltip({placement: 'right'});
          });
	</script>
{% endblock %}

{% block content %}
	<div class="rackTop">&nbsp;</div>
	<div class="rack" data-prototype="{{ form_row(form.nodegroups.vars.prototype) | escape }}">
		{% set formNodeGroups = form.nodegroups | reverse %}
		{% if formNodeGroups|length > 0 and formNodeGroups[0].vars.value.field == 0 %}
			{% set formNodeGroups = formNodeGroups | reverse %}
		{% endif %}
		{% for nodeGroup in formNodeGroups %}
			<div class="nodegroup" data-original-title="{{ (nodeGroup.vars.id|replace({"debb_configbundle_racktype_nodegroups_":""})+1) }}.">
				{{ form_widget(nodeGroup, {attr: {'style': 'display: none'}}) }}
				<span id="{{ nodeGroup.vars.id }}_title" data-toggle="tooltip" class="rack_title" data-original-title="{{ nodeGroup.vars.value.nodegroup }}" size="{{ nodeGroup.vars.data.nodegroup.draft.heSize | default(1)}}">{{ nodeGroup.vars.value.nodegroup }}</span>
			</div>
		{% endfor %}
	</div>
	<div class="extraContent">
		<div style="margin-left: 13px; color: #555;">
			{% do form.nodegroups.setRendered %}
			{{ form_rest(form) }}
        </div>
        <div class="clear"></div>

		<div class="rackConfigArea">
			<div class="nodegroup-selector">
				<h5>{{ 'node.group' | trans }}:</h5>
			</div>

			<div class="rackConfig">
				<select id="selectedNodeGroup" disabled="disabled" style="margin-right: 15px; width: 232px;">
					<option value="" disabled="disabled" selected="selected">- {{ 'choose.%person%.%what%' | trans({'%person%': 'your' | trans, '%what%': 'node.group' | trans}) }} -</option>
					<option id="emptyval" value="0" style="display: none;">--- {{ 'empty' | trans }} ---</option><commit_msg>Fixed bug with long sentences (rack)<commit_after>{% set exportasarchive = true %}
{% extends "DebbManagementBundle::form.html.twig" %}
{% form_theme form "DebbManagementBundle::form_theme.html.twig" %}

{% block stylesheets %}
	{{ parent() }}
	<style type="text/css">
		input[type="text"] { width: 285px; }
		select { width: 302px; }
		#content { padding: 0 0 0 0 !important; }
		.buttonbar { margin-right: -1px; margin-top: 15px; }
	</style>
{% endblock %}

{% block javascripts %}
	{{ parent() }}
	{% javascripts '@DebbConfigBundle/Resources/public/js/rack.js' %}
		<script src="{{ asset_url }}" type="text/javascript"></script>
	{% endjavascripts %}
	<script type="text/javascript">
		var rackId = {{ form.vars.data.id | default(0) }};
        $(function()
          {
              $('.rack_title').tooltip();
              $('.nodegroup').tooltip({placement: 'right'});
          });
	</script>
{% endblock %}

{% block content %}
	<div class="rackTop">&nbsp;</div>
	<div class="rack" data-prototype="{{ form_row(form.nodegroups.vars.prototype) | escape }}">
		{% set formNodeGroups = form.nodegroups | reverse %}
		{% if formNodeGroups|length > 0 and formNodeGroups[0].vars.value.field == 0 %}
			{% set formNodeGroups = formNodeGroups | reverse %}
		{% endif %}
		{% for nodeGroup in formNodeGroups %}
			<div class="nodegroup" data-original-title="{{ (nodeGroup.vars.id|replace({"debb_configbundle_racktype_nodegroups_":""})+1) }}.">
				{{ form_widget(nodeGroup, {attr: {'style': 'display: none'}}) }}
				<span id="{{ nodeGroup.vars.id }}_title" data-toggle="tooltip" class="rack_title" data-original-title="{{ nodeGroup.vars.value.nodegroup }}" size="{{ nodeGroup.vars.data.nodegroup.draft.heSize | default(1)}}">{{ nodeGroup.vars.value.nodegroup }}</span>
			</div>
		{% endfor %}
	</div>
	<div class="extraContent">
		<div style="margin-left: 13px; color: #555;">
			{% do form.nodegroups.setRendered %}
			{{ form_rest(form) }}
        </div>
        <div class="clear"></div>

		<div class="rackConfigArea">
			<div class="nodegroup-selector">
				<h5>{{ 'node.group' | trans }}:</h5>
			</div>

			<div class="rackConfig">
				<select id="selectedNodeGroup" disabled="disabled" style="margin-right: 15px; width: 232px;">
					<option value="" disabled="disabled" selected="selected">- {{ 'Choose your node group' | trans }} -</option>
					<option id="emptyval" value="0" style="display: none;">--- {{ 'empty' | trans }} ---</option>
{'fraction_non_alphanumeric': 0.20854423972464062, 'fraction_numerical': 0.012958088681919416, 'mean_word_length': 4.119170984455959, 'pattern_counts': {'":': 2, '<': 63, '<?xml version=': 0, '>': 65, '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': '528653', 'n_tokens_mistral': 1856, 'n_tokens_neox': 1590, 'n_words': 322}