FIX: typo suite au refactoring DefaultController > ResourceController.
/app/logs/*
/app/cache/*
+/app/config/parameters.ini
database_port =
database_name = symfony_epnadmin
database_user = root
- database_password = lda
+ database_password = root
mailer_transport = smtp
mailer_host = localhost
'label'=>"Intitulé*"
));
- $builder->add('parent', 'choise', array(
+ /*
+ $builder->add('parent', 'entity', array(
'choices' => $options['parentChoice'],
'required' => false,
'label' => "Dépend de"
));
-/*
+ */
$builder->add('parent', null, array(
'required' => false,
'label' => "Dépend de"
- ));*/
+ ));
$builder->add('description', 'textarea', array(
'label'=>"Description"
+{% extends "::base.html.twig" %}
+
+
+{% block body %}
<form action="{{ path('epnadmincore_resource_edit', { 'id': resource.id}) }}" method="POST" novalidate="novalidate">
{{ form_widget(form) }}
<p><input type="submit" /></p>
</form>
+{% endblock %}
+{% extends "::base.html.twig" %}
+
+
+{% block body %}
<h1>Ressources</h1>
<ul class="record_actions">
</a>
</li>
</ul>
+{% endblock %}
+{% extends "::base.html.twig" %}
+
+
+{% block body %}
<h1>Liste des ressources</h1>
<ul>
{% for resource in resources if resource.parent is empty %}
- {% include "EpnadminCoreBundle:Default:sublist.html.twig" %}
+ {% include "EpnadminCoreBundle:Resource:sublist.html.twig" %}
{% endfor %}
</ul>
</a>
</li>
</ul>
+{% endblock %}
+{% extends "::base.html.twig" %}
+
+
+{% block body %}
<h1>Ressource</h1>
<table class="record_properties">
</a>
</li>
</ul>
+{% endblock %}
{% if resource.children %}
<ul>
{% for child in resource.children %}
- {% include "EpnadminCoreBundle:Default:sublist.html.twig" with {'resource': child } %}
+ {% include "EpnadminCoreBundle:Resource:sublist.html.twig" with {'resource': child } %}
{% endfor %}
</ul>
{% endif %}
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
+ '192.168.56.1',
))) {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');