Improving UI

This commit is contained in:
Marc Ducobu 2015-12-04 19:30:35 +01:00
parent 8c979c3080
commit 508b933ab9
3 changed files with 6 additions and 12 deletions

View File

@ -40,10 +40,10 @@
<td>{{ activity.reason.name | localize_translatable_string }}</td>
<td>{{ activity.type.name | localize_translatable_string }}</td>
<td>
<a href="{{ path('chill_activity_activity_show', { 'id': activity.id, 'person_id': person.id }) }}">{{ 'Show the activity' | trans }}</a>
<a href="{{ path('chill_activity_activity_show', { 'id': activity.id, 'person_id': person.id }) }}" class="sc-button black">{{ 'Show' | trans }}</a>
</td>
<td>
<a href="{{ path('chill_activity_activity_edit', { 'id': activity.id, 'person_id': person.id }) }}">{{ 'Edit the activity' | trans }}</a>
<a href="{{ path('chill_activity_activity_edit', { 'id': activity.id, 'person_id': person.id }) }}" class="sc-button bt-update">{{ 'Edit' | trans }}</a>
</td>
</tr>
{% endfor %}
@ -51,7 +51,7 @@
</table>
<p>
<a href="{{ path('chill_activity_activity_new', {'person_id': person.id}) }}">
<a href="{{ path('chill_activity_activity_new', {'person_id': person.id}) }}" class="sc-button bt-create">
{{ 'Add a new activity' | trans }}
</a>
</p>

View File

@ -21,7 +21,7 @@
{% block title %}{{ 'Activity create' |trans }}{% endblock title %}
{% block personcontent %}
<h1>{{ "Activity creation"|trans }}</h1>
<h2 class="chill-red">{{ "Activity creation"|trans }}</h1>
{{ form_start(form) }}

View File

@ -3,11 +3,7 @@
{% set activeRouteKey = 'chill_activity_activity_list' %}
{% block personcontent -%}
<h1>{{ "Activity"|trans }}</h1>
<a href="{{ path('chill_activity_activity_edit', { 'id': entity.id, 'person_id': person.id }) }}">
<i class="fa fa-pencil"></i> {{ 'Edit the activity'|trans }}
</a>
<h2 class="chill-red">{{ "Activity"|trans }}</h1>
<dl>
<dt class="inline">{{ 'Person'|trans }}</dt>
@ -34,9 +30,7 @@
<dd></dd>
</dl>
<a href="{{ path('chill_activity_activity_edit', { 'id': entity.id, 'person_id': person.id }) }}">
<a class="sc-button bt-update" href="{{ path('chill_activity_activity_edit', { 'id': entity.id, 'person_id': person.id }) }}">
<i class="fa fa-pencil"></i> {{ 'Edit the activity'|trans }}
</a>
{# {{ form(delete_form) }} #}
{% endblock personcontent %}