<commit_before>{% extends '@Zectranet/layout.html.twig' %}

{% block title %}Index page{% endblock %}

{% block styles %}
	{{ parent() }}

{% endblock %}

{% block leftSidebar %}
	<div class="navbar-default sidebar" role="navigation">
		<div class="sidebar-nav navbar-collapse">
			<div id="quicksearch-block" ng-controller="SearchController">
				<ul class="nav">
					<li class="sidebar-search">
						<div class="input-group custom-search-form dropdown" >
							<input id="text-search" ng-model="searchInput"
								   class="form-control dropdown-toggle"
								   placeholder="Search..."
								   maxlength="50"
								   ng-change="InputChange()"
								   data-toggle="dropdown" type="search">
							<span class="input-group-btn">
								<a ng-href="{{ path('zectranet_user_page',{ 'user_id' : app.user.id }) }}SearchPage/[[searchInput]]" ng-click="PreCheck();" class="btn btn-default"  >
									<i class="fa fa-search"></i>
								</a>
							</span>
						</div>
					</li>
				</ul>

				<!-- BEGIN OF SITE TREE -->
				<ul class="nav" id="side-menu">

					<li class="active">
						<a href="{{ path('zectranet_public_market') }}">
							<i class='fa fa-credit-card'></i>
							Public Market
						</a>
					</li>

					<li class="active">
						<div style="position: relative; display: block; padding: 10px 15px; background-color: #eee;">
							<i class='fa fa-sitemap'></i>
							<span>Offices</span>
						</div>
						<ul class="nav nav-second-level">
							<li>
								<a href="#">
									<i class='fa fa-home'></i>
									<span>Private Offices</span>
								</a>
								<ul class="nav nav-third-level">
									{% for office in app.user.ownedOffices %}
										<li>
											<a href="{{ path('zectranet_show_office', {'office_id': office.id}) }}">
												<i class='fa fa-home'></i>
												<span>{{ office.name }}</span>
											</a>
										</li>
									{% endfor %}
								</ul>
							</li>

							<li>
								<a href="#">
									<i class='fa fa-sitemap'></i>
									<span>Connected Offices</span>
								</a>
								<ul class="nav nav-third-level">
									{% for office in app.user.assignedOffices %}
										<li>
											<a href="{{ path('zectranet_show_office', {'office_id': office.id}) }}">
												<i class='fa fa-sitemap'></i>
												<span>{{ office.name }}</span>
											</a>
										</li>
									{% endfor %}
								</ul>
							</li>

							<li style="display: none;">
								<a href="#" data-toggle="modal" class="btn-primary bg-primary label-primary" data-target="#add_private_office">
									<i class='fa fa-plus-circle'></i>
									<span>Add New Office</span>
								</a>
							</li>
						</ul>
					</li>

					<li class="active">
						<div style="position: relative; display: block; padding: 10px 15px; background-color: #eee;">
							<i class='fa fa-briefcase'></i>
							<span>Projects</span>
						</div>
						<ul class="nav nav-second-level">
							<li>
								<a href="#">
									<i class='fa fa-briefcase'></i>
									<span>Private Projects</span>
								</a>
								<ul class="nav nav-third-level">
									{% for project in app.user.ownedProjects %}
										{% if project.parent == null %}
										<li>
											<a href="{{ path('zectranet_show_project', {'project_id': project.id }) }}">
												<i class='fa fa-briefcase'></i>
												<span>{{ project.name }}</span>
											</a>
										</li>
										{% endif %}
									{% endfor %}
								</ul>
							</li>

							<li>
								<a href="#">
									<i class='fa fa-briefcase'></i>
									<span>Connected Projects</span>
								</a>
								<ul class="nav nav-third-level">
									{% for project in app.user.projects %}
										{% if project.parent == null %}
										<li>
											<a href="{{ path('zectranet_show_project', {'project_id': project.id }) }}">
												<i class='fa fa-briefcase'></i>
												<span>{{ project.name }}</span>
											</a>
										</li>
										{% endif %}
									{% endfor %}
									{% for office in app.user.assignedOffices %}
										{% for project in office.projects if project.parent == null and project not in app.user.ownedProjects %}
											<li>
												<a href="{{ path('zectranet_show_project', {'project_id': project.id }) }}">
													<i class='fa fa-briefcase'></i>
													<span>{{ project.name }}</span>
												</a>
											</li>
										{% endfor %}
									{% endfor %}
									{% for office in app.user.ownedOffices %}
										{% for project in office.projects if project.parent == null and project not in app.user.ownedProjects %}
											<li>
												<a href="{{ path('zectranet_show_project', {'project_id': project.id }) }}">
													<i class='fa fa-briefcase'></i>
													<span>{{ project.name }}</span>
												</a>
											</li>
										{% endfor %}
									{% endfor %}
								</ul>
							</li>

							<li style="display: none;">
								<a href="#" data-toggle="modal" class="btn-primary bg-primary label-primary" data-target="#add_private_project">
									<i class='fa fa-plus-circle'></i>
									<span>Add New Project</span>
								</a>
							</li>
						</ul>
					</li>
				</ul>
				<!-- END OF SITE TREE -->

			</div>
		</div>
	</div>

	{% block modals %}

		<!-- Begin of Add New Private Office Modal -->
		<div class="modal fade" id="add_private_office" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header label-primary">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel" style="color: #f5f5f5;">
							Add New Private Office
						</h4>
					</div>
					<div class="modal-body">
						<form method="post" action="{{ path('zectranet_add_office') }}">

							<div class="form-group">
								<input type="text" class="form-control" placeholder="Office Name" name="office_name" required>
							</div>

							<div class="form-group">
								<input type="text" class="form-control" placeholder="Office Description" name="office_description" required>
							</div>

							<div class="form-group">
								<input type="submit" class="btn btn-primary" value="Add">
								<button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<!-- End of Add New Private Office Modal -->

		<!-- Begin of Add New Private Office Modal -->
		<div class="modal fade" id="add_private_project" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header label-primary">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel" style="color: #f5f5f5; ">
							Add New Private Project
						</h4>
					</div>
					<div class="modal-body">
						<form method="post" action="{{ path('zectranet_add_project') }}">

							<div class="form-group">
								<input type="text" class="form-control" placeholder="Project Name" name="project_name" required>
							</div>

							<div class="form-group">
								<input type="text" class="form-control" placeholder="Project Description" name="project_description" required>
							</div>

							<div class="form-group">
								<input type="submit" class="btn btn-primary" value="Add">
								<button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<!-- End of Add New Private Office Modal -->

	{% endblock %}
{% endblock %}


{% block body %}

	{% block breadcrumbs %}

	{% endblock %}

	{% block pageheader %}

	{% endblock %}

	{% block content %}

	{% endblock %}

{% endblock %}

{% block javascripts %}
	{{ parent() }}
	<script src="{{ asset('bundles/zectranet/js/custom/searchController.js') }}" type="text/javascript" ></script>
	<script src="{{ asset('bundles/zectranet/js/highlight.js') }}" type="text/javascript"></script>
	<script>
		// Variable for AngularJS
		var USER_ID = {{ app.user.id }};
	</script>
{% endblock %}

<commit_msg>Chat controller<commit_after>{% extends '@Zectranet/layout.html.twig' %}

{% block title %}Index page{% endblock %}

{% block styles %}
	{{ parent() }}

{% endblock %}

{% block leftSidebar %}
	<div class="navbar-default sidebar" role="navigation">
		<div class="sidebar-nav navbar-collapse">
			<div id="quicksearch-block" ng-controller="SearchController">
				<ul class="nav">
					<li class="sidebar-search">
						<div class="input-group custom-search-form dropdown" >
							<input id="text-search" ng-model="searchInput"
								   class="form-control dropdown-toggle"
								   placeholder="Search..."
								   maxlength="50"
								   ng-change="InputChange()"
								   data-toggle="dropdown" type="search">
							<span class="input-group-btn">
								<a ng-href="{{ path('zectranet_user_page',{ 'user_id' : app.user.id }) }}SearchPage/[[searchInput]]" ng-click="PreCheck();" class="btn btn-default"  >
									<i class="fa fa-search"></i>
								</a>
							</span>
						</div>
					</li>
				</ul>

				<!-- BEGIN OF SITE TREE -->
				<ul class="nav" id="side-menu">

					<li class="active">
						<a href="{{ path('zectranet_public_market') }}">
							<i class='fa fa-credit-card'></i>
							Public Market
						</a>
					</li>

					<li>
						<a href="#">
							<i class='fa fa-home'></i>
							<span>Private Offices</span>
						</a>
						<ul class="nav nav-second-level">
							{% for office in app.user.ownedOffices %}
								<li>
									<a href="{{ path('zectranet_show_office', {'office_id': office.id}) }}">
										<i class='fa fa-home'></i>
										<span>{{ office.name }}</span>
									</a>
								</li>
							{% endfor %}
						</ul>
					</li>

					<li>
						<a href="#">
							<i class='fa fa-sitemap'></i>
							<span>Connected Offices</span>
						</a>
						<ul class="nav nav-second-level">
							{% for office in app.user.assignedOffices %}
								<li>
									<a href="{{ path('zectranet_show_office', {'office_id': office.id}) }}">
										<i class='fa fa-sitemap'></i>
										<span>{{ office.name }}</span>
									</a>
								</li>
							{% endfor %}
						</ul>
					</li>

					{#
					<li class="active">
						<div style="position: relative; display: block; padding: 10px 15px; background-color: #eee;">
							<i class='fa fa-sitemap'></i>
							<span>Offices</span>
						</div>
						<ul class="nav nav-second-level">

							<li style="display: none;">
								<a href="#" data-toggle="modal" class="btn-primary bg-primary label-primary" data-target="#add_private_office">
									<i class='fa fa-plus-circle'></i>
									<span>Add New Office</span>
								</a>
							</li>
						</ul>
					</li>
					#}

					<li>
						<a href="#">
							<i class='fa fa-briefcase'></i>
							<span>Private Projects</span>
						</a>
						<ul class="nav nav-second-level">
							{% for project in app.user.ownedProjects %}
								{% if project.parent == null %}
									<li>
										<a href="{{ path('zectranet_show_project', {'project_id': project.id }) }}">
											<i class='fa fa-briefcase'></i>
											<span>{{ project.name }}</span>
										</a>
									</li>
								{% endif %}
							{% endfor %}
						</ul>
					</li>

					<li>
						<a href="#">
							<i class='fa fa-briefcase'></i>
							<span>Connected Projects</span>
						</a>
						<ul class="nav nav-second-level">
							{% for project in app.user.projects %}
								{% if project.parent == null %}
									<li>
										<a href="{{ path('zectranet_show_project', {'project_id': project.id }) }}">
											<i class='fa fa-briefcase'></i>
											<span>{{ project.name }}</span>
										</a>
									</li>
								{% endif %}
							{% endfor %}
							{% for office in app.user.assignedOffices %}
								{% for project in office.projects if project.parent == null and project not in app.user.ownedProjects %}
									<li>
										<a href="{{ path('zectranet_show_project', {'project_id': project.id }) }}">
											<i class='fa fa-briefcase'></i>
											<span>{{ project.name }}</span>
										</a>
									</li>
								{% endfor %}
							{% endfor %}
							{% for office in app.user.ownedOffices %}
								{% for project in office.projects if project.parent == null and project not in app.user.ownedProjects %}
									<li>
										<a href="{{ path('zectranet_show_project', {'project_id': project.id }) }}">
											<i class='fa fa-briefcase'></i>
											<span>{{ project.name }}</span>
										</a>
									</li>
								{% endfor %}
							{% endfor %}
						</ul>
					</li>

					{#
					<li class="active">
						<div style="position: relative; display: block; padding: 10px 15px; background-color: #eee;">
							<i class='fa fa-briefcase'></i>
							<span>Projects</span>
						</div>
						<ul class="nav nav-second-level">

							<li style="display: none;">
								<a href="#" data-toggle="modal" class="btn-primary bg-primary label-primary" data-target="#add_private_project">
									<i class='fa fa-plus-circle'></i>
									<span>Add New Project</span>
								</a>
							</li>
						</ul>
					</li>
					#}
				</ul>
				<!-- END OF SITE TREE -->

			</div>
		</div>
	</div>

	{% block modals %}

		<!-- Begin of Add New Private Office Modal -->
		<div class="modal fade" id="add_private_office" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header label-primary">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel" style="color: #f5f5f5;">
							Add New Private Office
						</h4>
					</div>
					<div class="modal-body">
						<form method="post" action="{{ path('zectranet_add_office') }}">

							<div class="form-group">
								<input type="text" class="form-control" placeholder="Office Name" name="office_name" required>
							</div>

							<div class="form-group">
								<input type="text" class="form-control" placeholder="Office Description" name="office_description" required>
							</div>

							<div class="form-group">
								<input type="submit" class="btn btn-primary" value="Add">
								<button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<!-- End of Add New Private Office Modal -->

		<!-- Begin of Add New Private Office Modal -->
		<div class="modal fade" id="add_private_project" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header label-primary">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel" style="color: #f5f5f5; ">
							Add New Private Project
						</h4>
					</div>
					<div class="modal-body">
						<form method="post" action="{{ path('zectranet_add_project') }}">

							<div class="form-group">
								<input type="text" class="form-control" placeholder="Project Name" name="project_name" required>
							</div>

							<div class="form-group">
								<input type="text" class="form-control" placeholder="Project Description" name="project_description" required>
							</div>

							<div class="form-group">
								<input type="submit" class="btn btn-primary" value="Add">
								<button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<!-- End of Add New Private Office Modal -->

	{% endblock %}
{% endblock %}


{% block body %}

	{% block breadcrumbs %}

	{% endblock %}

	{% block pageheader %}

	{% endblock %}

	{% block content %}

	{% endblock %}

{% endblock %}

{% block javascripts %}
	{{ parent() }}
	<script src="{{ asset('bundles/zectranet/js/custom/searchController.js') }}" type="text/javascript" ></script>
	<script src="{{ asset('bundles/zectranet/js/highlight.js') }}" type="text/javascript"></script>
	<script>
		// Variable for AngularJS
		var USER_ID = {{ app.user.id }};
	</script>
{% endblock %}


{'fraction_non_alphanumeric': 0.18909134789429227, 'fraction_numerical': 0.0026547604682032096, 'mean_word_length': 2.286082474226804, 'pattern_counts': {'":': 0, '<': 437, '<?xml version=': 0, '>': 437, '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': '2489908', 'n_tokens_mistral': 8050, 'n_tokens_neox': 5270, 'n_words': 1175}