New installer

This commit is contained in:
Romain Neutron
2013-04-19 17:59:27 +02:00
parent ec5a4f730b
commit 3b5be74d99
19 changed files with 392 additions and 583 deletions

View File

@@ -14,65 +14,85 @@
{% block content %}
<div class="steps" style="min-height:450px;">
<h2>
INSTALL
</h2>
<p>
You MUST resolve these problems to continue
</p>
<table style="width:100%;">
<tr>
<td>
{% if php_constraints is defined %}
<h2>PHP Version</h2>
<ul class="setup">
{%for constraint in php_constraints %}
{{ _self.constraint_format(constraint) }}
{% endfor %}
</ul>
{% endif %}
{% if writability_constraints is defined %}
<h2>Filesystem configuration</h2>
<ul class="setup">
{%for constraint in writability_constraints %}
{{ _self.constraint_format(constraint) }}
{% endfor %}
</ul>
{% endif %}
{% if extension_constraints is defined %}
<h3>PHP extensions</h3>
<ul class="setup">
{%for constraint in extension_constraints %}
{{ _self.constraint_format(constraint) }}
{% endfor %}
</ul>
{% endif %}
</td>
<td>
{% if opcode_constraints is defined %}
<h2>PHP Cache System</h2>
<ul class="setup">
{%for constraint in opcode_constraints %}
{{ _self.constraint_format(constraint) }}
{% endfor %}
</ul>
{% endif %}
{% if php_conf_constraints is defined %}
<h2>PHP configuration</h2>
<ul class="setup">
{%for constraint in php_conf_constraints %}
{{ _self.constraint_format(constraint) }}
{% endfor %}
</ul>
{% endif %}
{% if locales_constraints is defined %}
<h2>Locales Support</h2>
<ul class="setup">
{%for constraint in locales_constraints %}
{{ _self.constraint_format(constraint) }}
{% endfor %}
</ul>
{% endif %}
<div style="height:400px;overflow:auto;">
<h2>
INSTALL
</h2>
<p>
Please have a look a this recommendations
</p>
<table>
{% for requirements in requirementsCollection %}
<tr>
<td colspan="2">
<h3> {{ requirements.getName() }} requirements </h3>
</td>
</tr>
{% for requirement in requirements.getRequirements() %}
<tr>
<td>
{% if requirement.isFulfilled() %}
<span style="color:green">OK</span>
{% elseif requirement.isOptional() %}
<span style="color:orange">WARNING</span>
{% else %}
<span style="color:red">ERROR</span>
{% endif %}
</td>
<td>
{{ requirement.getTestMessage }}
{% if not requirement.isFulfilled() %}
{{ requirement.getHelpText() }}
{% endif %}
</td>
</tr>
{% endfor %}
<tr>
<td colspan="2">
<h3> {{ requirements.getName() }} recommendations </h3>
</td>
</tr>
{% for requirement in requirements.getRecommendations() %}
<tr>
<td>
{% if requirement.isFulfilled() %}
<span style="color:green">OK</span>
{% elseif requirement.isOptional() %}
<span style="color:orange">WARNING</span>
{% else %}
<span style="color:red">ERROR</span>
{% endif %}
</td>
<td>
{{ requirement.getTestMessage }}
{% if not requirement.isFulfilled() %}
{{ requirement.getHelpText() }}
{% endif %}
</td>
</tr>
{% endfor %}
{% endfor %}
</table>
</div>
<div>
<table style="width:100%;">
<tr>
<td style="text-align:right;">
<a href="{{ path('install_step2') }}">Continue Install</a>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>