batch replace sc-button by btn btn-...

This commit is contained in:
Mathieu Jaumotte 2021-07-05 21:55:24 +02:00
parent 53c021b06e
commit a5d749b882
44 changed files with 72 additions and 71 deletions

View File

@ -29,7 +29,7 @@
<a href="{{ path('chill_activity_activityreason') }}" class="btn btn-cancel">{{ 'Back to the list'|trans }}</a> <a href="{{ path('chill_activity_activityreason') }}" class="btn btn-cancel">{{ 'Back to the list'|trans }}</a>
</li> </li>
<li> <li>
{{ form_row(edit_form.submit, { 'attr': { 'class' : 'sc-button orange' } } ) }} {{ form_row(edit_form.submit, { 'attr': { 'class' : 'btn btn-chill-orange' } } ) }}
</li> </li>
</ul> </ul>

View File

@ -36,12 +36,12 @@
{{ form_row(option) }} {{ form_row(option) }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{{ form_row(edit_form.submit, {'attr': { 'class': 'sc-button btn-update' } } ) }} {{ form_row(edit_form.submit, {'attr': { 'class': 'btn btn-update' } } ) }}
{{ form_end(edit_form) }} {{ form_end(edit_form) }}
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<a href="{{ path('customfieldsgroup_show', { 'id': entity.customFieldsGroup.id }) }}" class="sc-button btn-reset"> <a href="{{ path('customfieldsgroup_show', { 'id': entity.customFieldsGroup.id }) }}" class="btn btn-reset">
{{ 'Back to the group'|trans }} {{ 'Back to the group'|trans }}
</a> </a>
</li> </li>

View File

@ -37,17 +37,17 @@
{{ form_row(option) }} {{ form_row(option) }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{{ form_row(form.submit, {'attr': { 'class': 'sc-button btn-create' } } ) }} {{ form_row(form.submit, {'attr': { 'class': 'btn btn-create' } } ) }}
{{ form_end(form) }} {{ form_end(form) }}
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
{% if entity.customFieldsGroup is not null %} {% if entity.customFieldsGroup is not null %}
<a href="{{ path('customfieldsgroup_show', { 'id': entity.customFieldsGroup.id }) }}" class="sc-button btn-reset"> <a href="{{ path('customfieldsgroup_show', { 'id': entity.customFieldsGroup.id }) }}" class="btn btn-reset">
{{ 'Back to the group'|trans }} {{ 'Back to the group'|trans }}
</a> </a>
{% else %} {% else %}
<a href="{{ path('customfieldsgroup') }}" class="sc-button btn-reset"> <a href="{{ path('customfieldsgroup') }}" class="btn btn-reset">
{{ 'Back to the list'|trans }} {{ 'Back to the list'|trans }}
</a> </a>
{% endif %} {% endif %}

View File

@ -47,10 +47,10 @@
<td> <td>
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<a href="{{ path('customfieldsgroup_show', { 'id': entity.id }) }}" class="sc-button">{{ 'show'|trans|capitalize }}</a> <a href="{{ path('customfieldsgroup_show', { 'id': entity.id }) }}" class="btn">{{ 'show'|trans|capitalize }}</a>
</li> </li>
<li> <li>
<a href="{{ path('customfieldsgroup_edit', { 'id': entity.id }) }}" class="sc-button btn-edit">{{ 'edit'|trans|capitalize }}</a> <a href="{{ path('customfieldsgroup_edit', { 'id': entity.id }) }}" class="btn btn-edit">{{ 'edit'|trans|capitalize }}</a>
</li> </li>
</ul> </ul>
</td> </td>

View File

@ -25,7 +25,7 @@
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
{# {% if is_granted('CHILL_EVENT_SEE_DETAILS', event) %} #} {# {% if is_granted('CHILL_EVENT_SEE_DETAILS', event) %} #}
<a href="{{ path('chill_event__event_show', { 'event_id' : event.id } ) }}" class="sc-button black"> <a href="{{ path('chill_event__event_show', { 'event_id' : event.id } ) }}" class="btn btn-dark">
{{ 'See'|trans }} {{ 'See'|trans }}
</a> </a>
{# {% endif %} #} {# {% endif %} #}
@ -52,7 +52,7 @@
</li> </li>
{% if preview == true and events|length < total %} {% if preview == true and events|length < total %}
<li> <li>
<a href="{{ path('chill_main_search', { "name": search_name, "q" : pattern }) }}" class="sc-button btn-next"> <a href="{{ path('chill_main_search', { "name": search_name, "q" : pattern }) }}" class="btn btn-next">
{{ 'See all results'|trans }} {{ 'See all results'|trans }}
</a> </a>
</li> </li>

View File

@ -60,9 +60,9 @@
and is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %} and is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %}
<li class="list-inline-item"> <li class="list-inline-item">
<div class="bt-dropdown"> <div class="btn dropdown-toggle">
<a href="" class="btn btn-warning btn-sm"><i class="fa fa-fw fa-pencil"></i></a> <a href="" class="btn btn-warning btn-sm"><i class="fa fa-fw fa-pencil"></i></a>
<div class="bt-dropdown-content"> <div class="dropdown-menu">
<a href="{{ path('chill_event__event_edit', { 'event_id' : participation.event.id, 'return_path' : currentPath, 'return_label' : returnLabel }) }}" <a href="{{ path('chill_event__event_edit', { 'event_id' : participation.event.id, 'return_path' : currentPath, 'return_label' : returnLabel }) }}"
class="btn btn-warning btn-sm"> class="btn btn-warning btn-sm">

View File

@ -17,7 +17,7 @@
</a> </a>
</li> </li>
<li> <li>
{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button green' } }) }} {{ form_widget(form.submit, { 'attr' : { 'class' : 'btn btn-chill-green' } }) }}
</li> </li>
</ul> </ul>

View File

@ -53,7 +53,7 @@
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<a href="{{ path('chill_event__event_show', { 'event_id' : participations[0].event.id } ) }}" class="sc-button btn-cancel"> <a href="{{ path('chill_event__event_show', { 'event_id' : participations[0].event.id } ) }}" class="btn btn-cancel">
<i class="fa fa-arrow-left"></i> <i class="fa fa-arrow-left"></i>
{{ 'Back to the event'|trans }} {{ 'Back to the event'|trans }}
</a> </a>

View File

@ -33,7 +33,7 @@
<ul class="record_actions"> <ul class="record_actions">
<li class="cancel"> <li class="cancel">
<a href="{{ path('chill_event__event_show', { 'event_id' : participation.event.id } ) }}" class="sc-button btn-cancel"> <a href="{{ path('chill_event__event_show', { 'event_id' : participation.event.id } ) }}" class="btn btn-cancel">
<i class="fa fa-arrow-left"></i> <i class="fa fa-arrow-left"></i>
{{ 'Back to the event'|trans }} {{ 'Back to the event'|trans }}
</a> </a>

View File

@ -26,7 +26,7 @@
{% if chill_crud_action_exists(crud_name, 'delete') %} {% if chill_crud_action_exists(crud_name, 'delete') %}
{% if is_granted(chill_crud_config('role', crud_name, 'delete'), entity) %} {% if is_granted(chill_crud_config('role', crud_name, 'delete'), entity) %}
<li class=""> <li class="">
<a class="btn btn-small bt-delete" href="{{ chill_path_add_return_path('chill_crud_'~crud_name~'_delete', { 'id': entity.id }) }}"></a> <a class="btn btn-small btn-delete" href="{{ chill_path_add_return_path('chill_crud_'~crud_name~'_delete', { 'id': entity.id }) }}"></a>
</li> </li>
{% endif %} {% endif %}
{% endif %} {% endif %}
@ -35,7 +35,7 @@
{% if chill_crud_action_exists(crud_name, 'view') %} {% if chill_crud_action_exists(crud_name, 'view') %}
{% if is_granted(chill_crud_config('role', crud_name, 'view'), entity) %} {% if is_granted(chill_crud_config('role', crud_name, 'view'), entity) %}
<li class=""> <li class="">
<a class="btn btn-small bt-show" href="{{ chill_path_forward_return_path('chill_crud_'~crud_name~'_view', { 'id': entity.id }) }}"></a> <a class="btn btn-small btn-show" href="{{ chill_path_forward_return_path('chill_crud_'~crud_name~'_view', { 'id': entity.id }) }}"></a>
</li> </li>
{% endif %} {% endif %}
{% endif %} {% endif %}

View File

@ -7,7 +7,7 @@
{{ form_start(edit_form) }} {{ form_start(edit_form) }}
{{ form_row(edit_form.name) }} {{ form_row(edit_form.name) }}
{{ form_row(edit_form.submit, { 'attr' : { 'class' : 'sc-button green' } } ) }} {{ form_row(edit_form.submit, { 'attr' : { 'class' : 'btn btn-chill-green' } } ) }}
{{ form_end(edit_form) }} {{ form_end(edit_form) }}
<ul class="record_actions"> <ul class="record_actions">

View File

@ -7,7 +7,7 @@
{{ form_start(form) }} {{ form_start(form) }}
{{ form_row(form.name) }} {{ form_row(form.name) }}
{{ form_row(form.submit, { 'attr' : { 'class' : 'sc-button green' } } ) }} {{ form_row(form.submit, { 'attr' : { 'class' : 'btn btn-chill-green' } } ) }}
{{ form_end(form) }} {{ form_end(form) }}
<ul class="record_actions"> <ul class="record_actions">

View File

@ -104,7 +104,7 @@
</div> </div>
{% endif %} {% endif %}
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-create' }, 'label' : 'Go to formatter options' } ) }}</p> <p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'btn btn-create' }, 'label' : 'Go to formatter options' } ) }}</p>
{{ form_end(form) }} {{ form_end(form) }}
{% endblock layout_wvm_content %} {% endblock layout_wvm_content %}

View File

@ -44,7 +44,7 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action bt-create' }, 'label' : 'Go to export options' } ) }}</p> <p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'btn btn-action btn-create' }, 'label' : 'Go to export options' } ) }}</p>
{{ form_end(form) }} {{ form_end(form) }}
{% endblock layout_wvm_content %} {% endblock layout_wvm_content %}

View File

@ -46,7 +46,7 @@
</div> </div>
<div style=clear:both;"> <div style=clear:both;">
<p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button btn-action' }, 'label': 'Generate the report' } ) }}</p> <p>{{ form_widget(form.submit, { 'attr' : { 'class' : 'btn btn-action' }, 'label': 'Generate the report' } ) }}</p>
</div> </div>
{{ form_end(form) }} {{ form_end(form) }}

View File

@ -167,7 +167,7 @@
</ul> </ul>
{% if form.vars.allow_add == 1 %} {% if form.vars.allow_add == 1 %}
<button class="chill-collection__button--add sc-button" data-collection-add-target="{{ form.vars.name|escape('html_attr') }}" data-form-prototype="{{ ('<div>' ~ form_widget(form.vars.prototype) ~ '</div>')|escape('html_attr') }}" >{{ form.vars.button_add_label|trans }}</button> <button class="chill-collection__button--add btn" data-collection-add-target="{{ form.vars.name|escape('html_attr') }}" data-form-prototype="{{ ('<div>' ~ form_widget(form.vars.prototype) ~ '</div>')|escape('html_attr') }}" >{{ form.vars.button_add_label|trans }}</button>
</div> </div>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -33,7 +33,7 @@
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
{{ form_widget(form.submit, { 'attr': { 'class': 'sc-button orange' } } ) }} {{ form_widget(form.submit, { 'attr': { 'class': 'btn btn-chill-orange' } } ) }}
</li> </li>
</ul> </ul>

View File

@ -14,7 +14,7 @@
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
{{ form_widget(form.submit, { 'attr': { 'class': 'sc-button orange' } } ) }} {{ form_widget(form.submit, { 'attr': { 'class': 'btn btn-chill-orange' } } ) }}
</li> </li>
</ul> </ul>

View File

@ -32,7 +32,7 @@
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
{{ form_widget(form.submit, { 'attr': { 'class': 'sc-button orange' } } ) }} {{ form_widget(form.submit, { 'attr': { 'class': 'btn btn-chill-orange' } } ) }}
</li> </li>
</ul> </ul>

View File

@ -12,7 +12,7 @@
{% if edit_form.flags is defined %} {% if edit_form.flags is defined %}
{{ form_row(edit_form.flags) }} {{ form_row(edit_form.flags) }}
{% endif %} {% endif %}
{{ form_row(edit_form.submit, { 'attr': { 'class': 'sc-button green' } } ) }} {{ form_row(edit_form.submit, { 'attr': { 'class': 'btn btn-chill-green' } } ) }}
{{ form_end(edit_form) }} {{ form_end(edit_form) }}
<h2>{{ 'Grant those permissions'|trans }} :</h2> <h2>{{ 'Grant those permissions'|trans }} :</h2>
@ -52,7 +52,7 @@
</td> </td>
<td> <td>
{{ form_start(delete_role_scopes_form[role_scope.id]) }} {{ form_start(delete_role_scopes_form[role_scope.id]) }}
{{ form_widget(delete_role_scopes_form[role_scope.id].submit, { 'attr': { 'class': 'sc-button red' } } ) }} {{ form_widget(delete_role_scopes_form[role_scope.id].submit, { 'attr': { 'class': 'btn btn-chill-red' } } ) }}
{{ form_end(delete_role_scopes_form[role_scope.id]) }} {{ form_end(delete_role_scopes_form[role_scope.id]) }}
</td> </td>
</tr> </tr>

View File

@ -10,7 +10,7 @@
{% if form.flags is defined %} {% if form.flags is defined %}
{{ form_row(form.flags) }} {{ form_row(form.flags) }}
{% endif %} {% endif %}
{{ form_row(form.submit, { 'attr': { 'class': 'sc-button green' } } ) }} {{ form_row(form.submit, { 'attr': { 'class': 'btn btn-chill-green' } } ) }}
{{ form_end(form) }} {{ form_end(form) }}
<ul class="record_actions"> <ul class="record_actions">

View File

@ -7,7 +7,7 @@
{{ form_start(edit_form) }} {{ form_start(edit_form) }}
{{ form_row(edit_form.name) }} {{ form_row(edit_form.name) }}
{{ form_row(edit_form.submit, { 'attr' : { 'class' : 'sc-button green' } } ) }} {{ form_row(edit_form.submit, { 'attr' : { 'class' : 'btn btn-chill-green' } } ) }}
{{ form_end(edit_form) }} {{ form_end(edit_form) }}
<ul class="record_actions"> <ul class="record_actions">

View File

@ -7,7 +7,7 @@
{{ form_start(form) }} {{ form_start(form) }}
{{ form_row(form.name) }} {{ form_row(form.name) }}
{{ form_row(form.submit, { 'attr' : { 'class' : 'sc-button green' } } ) }} {{ form_row(form.submit, { 'attr' : { 'class' : 'btn btn-chill-green' } } ) }}
{{ form_end(form) }} {{ form_end(form) }}
<ul class="record_actions"> <ul class="record_actions">

View File

@ -11,8 +11,8 @@
{{ form_row(edit_form.email) }} {{ form_row(edit_form.email) }}
{{ form_row(edit_form.enabled, { 'label': "User'status"}) }} {{ form_row(edit_form.enabled, { 'label': "User'status"}) }}
{{ form_widget(edit_form.submit, { 'attr': { 'class' : 'sc-button green center' } } ) }} {{ form_widget(edit_form.submit, { 'attr': { 'class' : 'btn btn-chill-green center' } } ) }}
<a href="{{ path('admin_user_edit_password', { 'id' : entity.id }) }}" class="sc-button orange">{{ 'Edit password'|trans }}</a> <a href="{{ path('admin_user_edit_password', { 'id' : entity.id }) }}" class="btn btn-chill-orange">{{ 'Edit password'|trans }}</a>
{{ form_end(edit_form) }} {{ form_end(edit_form) }}
@ -42,7 +42,7 @@
</td> </td>
<td> <td>
{{ form_start(delete_groupcenter_form[groupcenter.id]) }} {{ form_start(delete_groupcenter_form[groupcenter.id]) }}
{{ form_row(delete_groupcenter_form[groupcenter.id].submit, { 'attr': { 'class': 'sc-button red' } } ) }} {{ form_row(delete_groupcenter_form[groupcenter.id].submit, { 'attr': { 'class': 'btn btn-chill-red' } } ) }}
{{ form_rest(delete_groupcenter_form[groupcenter.id]) }} {{ form_rest(delete_groupcenter_form[groupcenter.id]) }}
{{ form_end(delete_groupcenter_form[groupcenter.id]) }} {{ form_end(delete_groupcenter_form[groupcenter.id]) }}
</td> </td>
@ -59,7 +59,7 @@
{{ form_start(add_groupcenter_form) }} {{ form_start(add_groupcenter_form) }}
{{ form_row(add_groupcenter_form.composed_groupcenter.center) }} {{ form_row(add_groupcenter_form.composed_groupcenter.center) }}
{{ form_row(add_groupcenter_form.composed_groupcenter.permissionsgroup) }} {{ form_row(add_groupcenter_form.composed_groupcenter.permissionsgroup) }}
{{ form_row(add_groupcenter_form.submit, { 'attr' : { 'class': 'sc-button green' } } ) }} {{ form_row(add_groupcenter_form.submit, { 'attr' : { 'class': 'btn btn-chill-green' } } ) }}
{{ form_end(add_groupcenter_form) }} {{ form_end(add_groupcenter_form) }}

View File

@ -7,7 +7,7 @@
{{ form_start(edit_form) }} {{ form_start(edit_form) }}
{{ form_row(edit_form.new_password) }} {{ form_row(edit_form.new_password) }}
{{ form_widget(edit_form.submit, { 'attr': { 'class': 'sc-button orange' } } ) }} {{ form_widget(edit_form.submit, { 'attr': { 'class': 'btn btn-chill-orange' } } ) }}
{{ form_end(edit_form) }} {{ form_end(edit_form) }}
<ul class="record_actions"> <ul class="record_actions">

View File

@ -9,7 +9,7 @@
{{ form_row(form.username) }} {{ form_row(form.username) }}
{{ form_row(form.email) }} {{ form_row(form.email) }}
{{ form_row(form.plainPassword) }} {{ form_row(form.plainPassword) }}
{{ form_widget(form.submit, { 'attr' : { 'class': 'sc-button blue' } }) }} {{ form_widget(form.submit, { 'attr' : { 'class': 'btn btn-chill-blue' } }) }}
{{ form_end(form) }} {{ form_end(form) }}
<ul class="record_actions"> <ul class="record_actions">

View File

@ -90,6 +90,7 @@ export default {
margin-left: 0.5em; margin-left: 0.5em;
align-self: baseline; align-self: baseline;
} }
a.btn { a.btn {
border: 1px solid lightgrey; border: 1px solid lightgrey;
font-size: 70%; font-size: 70%;

View File

@ -112,7 +112,7 @@
'chill_person_household_summary', 'chill_person_household_summary',
{ 'household_id': p.person.getCurrentHousehold.id } { 'household_id': p.person.getCurrentHousehold.id }
) }}" ) }}"
class="sc-button"> class="btn">
<i class="fa fa-home"></i> <i class="fa fa-home"></i>
n°&nbsp;{{ p.person.getCurrentHousehold.id }} n°&nbsp;{{ p.person.getCurrentHousehold.id }}
</a> </a>

View File

@ -98,7 +98,7 @@
href="{{ chill_path_add_return_path('chill_person_household_members_editor', { href="{{ chill_path_add_return_path('chill_person_household_members_editor', {
'persons': [ m.person.id ], 'persons': [ m.person.id ],
'allow_leave_without_household': true 'allow_leave_without_household': true
} ) }}" class="sc-button" title="{{ 'household.Leave household'|trans }}" /> } ) }}" class="btn" title="{{ 'household.Leave household'|trans }}" />
<i class="fa fa-sign-out"></i> <i class="fa fa-sign-out"></i>
{{ 'household.Leave household'|trans }} {{ 'household.Leave household'|trans }}
</a> </a>

View File

@ -123,7 +123,7 @@
'persons': [ m.person.id ], 'persons': [ m.person.id ],
'household': household.id 'household': household.id
} ) }}" } ) }}"
class="sc-button" class="btn"
/> />
<i class="fa fa-arrows-h"></i> <i class="fa fa-arrows-h"></i>
{{ 'household.Change position'|trans }} {{ 'household.Change position'|trans }}
@ -137,7 +137,7 @@
'persons': [ m.person.id ], 'persons': [ m.person.id ],
'allow_leave_without_household': true 'allow_leave_without_household': true
} ) }}" } ) }}"
class="sc-button" class="btn"
/> />
<i class="fa fa-sign-out"></i> <i class="fa fa-sign-out"></i>
{{ 'household.Leave'|trans }} {{ 'household.Leave'|trans }}

View File

@ -41,7 +41,7 @@
{{ form_rest(form) }} {{ form_rest(form) }}
<button class="sc-button green" type="submit" alt="add a person"><i class="fa fa-plus"></i> {{ 'Add the person'|trans }}</button> <button class="btn btn-chill-green" type="submit" alt="add a person"><i class="fa fa-plus"></i> {{ 'Add the person'|trans }}</button>
{{ form_end(form) }} {{ form_end(form) }}
</div> </div>

View File

@ -17,7 +17,7 @@
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<a class="sc-button" <a class="btn"
href="{{ href="{{
chill_path_add_return_path( chill_path_add_return_path(
'chill_person_household_members_editor', 'chill_person_household_members_editor',
@ -39,7 +39,7 @@
<div class="household__address--date"></div> <div class="household__address--date"></div>
<div class="household__address--content"> <div class="household__address--content">
<div class="cell"> <div class="cell">
<a class="sc-button" <a class="btn"
href="{{ href="{{
chill_path_add_return_path( chill_path_add_return_path(
'chill_person_household_members_editor', 'chill_person_household_members_editor',
@ -103,7 +103,7 @@
</li> </li>
{% if p.isCurrent() %} {% if p.isCurrent() %}
<li> <li>
<a class="sc-button" <a class="btn"
href="{{ chill_path_add_return_path( href="{{ chill_path_add_return_path(
'chill_person_household_members_editor', 'chill_person_household_members_editor',
{ 'persons': [ person.id ], 'allow_leave_without_household': true }) }}" { 'persons': [ person.id ], 'allow_leave_without_household': true }) }}"

View File

@ -18,7 +18,7 @@
<p> <p>
{{ '%total% persons matching the search pattern:'|transchoice( total, { '%total%' : total}) }} {{ '%total% persons matching the search pattern:'|transchoice( total, { '%total%' : total}) }}
<a href="{{ path('chill_main_advanced_search', { "name": search_name, "q": pattern } ) }}" class="sc-button button-small"> <a href="{{ path('chill_main_advanced_search', { "name": search_name, "q": pattern } ) }}" class="btn btn-sm">
<i class="fa fa-search" aria-hidden="true"></i> {{ pattern }} <i class="fa fa-search" aria-hidden="true"></i> {{ pattern }}
</a> </a>
</p> </p>
@ -97,7 +97,7 @@
{% endif %} {% endif %}
{% if preview == true and persons|length < total %} {% if preview == true and persons|length < total %}
<li> <li>
<a href="{{ path('chill_main_search', { "name": search_name|default('abcd'), "q" : pattern }) }}" class="sc-button"> <a href="{{ path('chill_main_search', { "name": search_name|default('abcd'), "q" : pattern }) }}" class="btn">
{{ 'See all results'|trans }} {{ 'See all results'|trans }}
</a> </a>
</li> </li>

View File

@ -18,7 +18,7 @@
<p> <p>
{{ '%total% persons matching the search pattern:'|transchoice( total, { '%total%' : total}) }} {{ '%total% persons matching the search pattern:'|transchoice( total, { '%total%' : total}) }}
<a href="{{ path('chill_main_advanced_search', { "name": search_name, "q": pattern } ) }}" class="sc-button button-small"> <a href="{{ path('chill_main_advanced_search', { "name": search_name, "q": pattern } ) }}" class="btn btn-sm">
<i class="fa fa-search" aria-hidden="true"></i> {{ pattern }} <i class="fa fa-search" aria-hidden="true"></i> {{ pattern }}
</a> </a>
</p> </p>
@ -94,7 +94,7 @@
{% endif %} {% endif %}
{% if preview == true and persons|length < total %} {% if preview == true and persons|length < total %}
<li> <li>
<a href="{{ path('chill_main_search', { "name": search_name|default('abcd'), "q" : pattern }) }}" class="sc-button"> <a href="{{ path('chill_main_search', { "name": search_name|default('abcd'), "q" : pattern }) }}" class="btn">
{{ 'See all results'|trans }} {{ 'See all results'|trans }}
</a> </a>
</li> </li>

View File

@ -2,7 +2,7 @@
<p> <p>
{{ '%total% persons matching the search pattern:'|transchoice( total, { '%total%' : total}) }} {{ '%total% persons matching the search pattern:'|transchoice( total, { '%total%' : total}) }}
<a href="{{ path('chill_main_advanced_search', { "name": search_name, "q": pattern } ) }}" class="sc-button button-small"> <a href="{{ path('chill_main_advanced_search', { "name": search_name, "q": pattern } ) }}" class="btn btn-sm">
<i class="fa fa-fw fa-search" aria-hidden="true"></i> {{ pattern }} <i class="fa fa-fw fa-search" aria-hidden="true"></i> {{ pattern }}
</a> </a>
</p> </p>
@ -27,7 +27,7 @@
{% endif %} {% endif %}
{% if preview == true and persons | length < total %} {% if preview == true and persons | length < total %}
<li> <li>
<a href="{{ path('chill_main_search', { "name": search_name|default('abcd'), "q" : pattern }) }}" class="sc-button"> <a href="{{ path('chill_main_search', { "name": search_name|default('abcd'), "q" : pattern }) }}" class="btn">
{{ 'See all results'|trans }} {{ 'See all results'|trans }}
</a> </a>
</li> </li>
@ -79,12 +79,12 @@
</ul> </ul>
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<a href="{{ path('chill_person_view', { 'person_id' : person.id }) }}" class="sc-button blue" /> <a href="{{ path('chill_person_view', { 'person_id' : person.id }) }}" class="btn btn-chill-blue" />
<i class="fa fa-folder-open-o"></i> {{ 'Open person file'|trans }} <i class="fa fa-folder-open-o"></i> {{ 'Open person file'|trans }}
</a> </a>
</li> </li>
<li> <li>
<a href="{{ path('chill_person_accompanying_period_list', { 'person_id' : person.id }) }}" class="sc-button green" title="{{ 'See accompanying periods'|trans }}"/> <a href="{{ path('chill_person_accompanying_period_list', { 'person_id' : person.id }) }}" class="btn btn-chill-green" title="{{ 'See accompanying periods'|trans }}"/>
<i class="fa fa-random"></i></a> <i class="fa fa-random"></i></a>
</li> </li>
</ul> </ul>
@ -107,7 +107,7 @@
<div class="header"> <div class="header">
<a href="{{ path('chill_person_accompanying_course_index', { 'accompanying_period_id': app.accompanyingPeriod.id }) }}" <a href="{{ path('chill_person_accompanying_course_index', { 'accompanying_period_id': app.accompanyingPeriod.id }) }}"
class="sc-button green" title="{{ 'See accompanying period'|trans }}"> class="btn btn-chill-green" title="{{ 'See accompanying period'|trans }}">
<i class="fa fa-fw fa-random"></i> <i class="fa fa-fw fa-random"></i>
</a> </a>
<span>{{ 'Since %date%'|trans({'%date%': app.startDate|format_date('medium') }) }}</span> <span>{{ 'Since %date%'|trans({'%date%': app.startDate|format_date('medium') }) }}</span>
@ -156,7 +156,7 @@
{% endif %} {% endif %}
{% if preview == true and persons|length < total %} {% if preview == true and persons|length < total %}
<li> <li>
<a href="{{ path('chill_main_search', { "name": search_name|default('abcd'), "q" : pattern }) }}" class="sc-button"> <a href="{{ path('chill_main_search', { "name": search_name|default('abcd'), "q" : pattern }) }}" class="btn">
{{ 'See all results'|trans }} {{ 'See all results'|trans }}
</a> </a>
</li> </li>

View File

@ -77,7 +77,7 @@
<ul class="grid-12 record_actions"> <ul class="grid-12 record_actions">
<li class="cancel"> <li class="cancel">
<a href="{{ app.request.headers.get('referer') }}" class="sc-button grey center margin-5"> <a href="{{ app.request.headers.get('referer') }}" class="btn btn-chill-gray center margin-5">
<i class="fa fa-arrow-left"></i> <i class="fa fa-arrow-left"></i>
{{ 'Return'|trans }} {{ 'Return'|trans }}
</a> </a>

View File

@ -15,7 +15,7 @@
<ul class="grid-12 record_actions "> <ul class="grid-12 record_actions ">
<li class="cancel"> <li class="cancel">
<a href="{{ path('chill_person_duplicate_view', {'person_id' : person.id}) }}" class="sc-button"> <a href="{{ path('chill_person_duplicate_view', {'person_id' : person.id}) }}" class="btn">
<i class="fa fa-arrow-left"></i> <i class="fa fa-arrow-left"></i>
{{ 'Return'|trans }} {{ 'Return'|trans }}
</a> </a>

View File

@ -63,7 +63,7 @@
<i class="fa fa-cog fa-fw"></i>{{ 'Merge'|trans }}</a> <i class="fa fa-cog fa-fw"></i>{{ 'Merge'|trans }}</a>
</li> </li>
<li> <li>
<a class="sc-button" title="{{ 'Switch to truefalse'|trans }}" <a class="btn" title="{{ 'Switch to truefalse'|trans }}"
href="{{ path('chill_person_duplicate_not_duplicate', {person1_id : person.id, person2_id : duplicatePerson.id}) }}"> href="{{ path('chill_person_duplicate_not_duplicate', {person1_id : person.id, person2_id : duplicatePerson.id}) }}">
<i class="fa fa-toggle-on fa-fw"></i>{{ 'duplicate'|trans }}</a> <i class="fa fa-toggle-on fa-fw"></i>{{ 'duplicate'|trans }}</a>
</li> </li>
@ -125,7 +125,7 @@
<a class="btn btn-show" target="_blank" href="{{ path('chill_person_view', { person_id : notDuplicatePerson.id }) }}"></a> <a class="btn btn-show" target="_blank" href="{{ path('chill_person_view', { person_id : notDuplicatePerson.id }) }}"></a>
</li> </li>
<li> <li>
<a class="sc-button" title="{{ 'Switch to duplicate'|trans }}" <a class="btn" title="{{ 'Switch to duplicate'|trans }}"
href="{{ path('chill_person_remove_duplicate_not_duplicate', {person1_id : person.id, person2_id : notDuplicatePerson.id}) }}"> href="{{ path('chill_person_remove_duplicate_not_duplicate', {person1_id : person.id, person2_id : notDuplicatePerson.id}) }}">
<i class="fa fa-toggle-off fa-fw"></i>{{ 'not-duplicate'|trans }}</a> <i class="fa fa-toggle-off fa-fw"></i>{{ 'not-duplicate'|trans }}</a>
</li> </li>
@ -142,7 +142,7 @@
<ul class="record_actions"> <ul class="record_actions">
<li class="cancel"> <li class="cancel">
<a href="{{ path('chill_person_view', {person_id: person.id }) }}" class="sc-button"> <a href="{{ path('chill_person_view', {person_id: person.id }) }}" class="btn">
<i class="fa fa-arrow-left"></i> <i class="fa fa-arrow-left"></i>
{{ 'Return'|trans }}</a> {{ 'Return'|trans }}</a>
</li> </li>

View File

@ -29,7 +29,7 @@
<li class="cancel"> <li class="cancel">
<a href="{{ path('report_list', { 'person_id': person.id } ) }}" class="btn btn-cancel">{{ 'Back to the list'|trans }}</a> <a href="{{ path('report_list', { 'person_id': person.id } ) }}" class="btn btn-cancel">{{ 'Back to the list'|trans }}</a>
<li> <li>
<button class="sc-button green" type="submit"> <button class="btn btn-chill-green" type="submit">
<i class="fa fa-plus"></i> <i class="fa fa-plus"></i>
{{ 'Create a new report'|trans }} {{ 'Create a new report'|trans }}
</button> </button>

View File

@ -24,7 +24,7 @@
{{ form_start(form) }} {{ form_start(form) }}
{{ form_widget(form.cFGroup) }} {{ form_widget(form.cFGroup) }}
<button class="sc-button green" type="submit"> <button class="btn btn-chill-green" type="submit">
<i class="fa fa-upload"></i> <i class="fa fa-upload"></i>
{{ 'Export this kind of reports'|trans }} {{ 'Export this kind of reports'|trans }}
</button> </button>

View File

@ -62,9 +62,9 @@
<ul class="record_actions"> <ul class="record_actions">
{% if workflow_transitions(task)|length > 0 %} {% if workflow_transitions(task)|length > 0 %}
<li> <li>
<div class="bt-dropdown"> <div class="btn dropdown-toggle">
<a href="" class="btn btn-task-exchange">&nbsp;</a> <a href="" class="btn btn-task-exchange">&nbsp;</a>
<div class="bt-dropdown-content"> <div class="dropdown-menu">
{% for transition in workflow_transitions(task) %} {% for transition in workflow_transitions(task) %}
<a href="{{ path('chill_task_task_transition', { 'taskId': task.id, 'transition': transition.name, 'kind': 'single-task', 'list_params': app.request.query.all }) }}" class="{{ task_workflow_metadata(task, 'transition.class', transition)|e('html_attr') }}">{{ task_workflow_metadata(task, 'transition.verb', transition)|trans }}</a> <a href="{{ path('chill_task_task_transition', { 'taskId': task.id, 'transition': transition.name, 'kind': 'single-task', 'list_params': app.request.query.all }) }}" class="{{ task_workflow_metadata(task, 'transition.class', transition)|e('html_attr') }}">{{ task_workflow_metadata(task, 'transition.verb', transition)|trans }}</a>
{% endfor %} {% endfor %}
@ -127,7 +127,7 @@
{% else %} {% else %}
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<a href="{{ path('chill_task_singletask_list', app.request.query.all|merge({ 'status': [ status ] })) }}" class="sc-button"> <a href="{{ path('chill_task_singletask_list', app.request.query.all|merge({ 'status': [ status ] })) }}" class="btn">
{{ 'See more' | trans }} {{ 'See more' | trans }}
</a> </a>
</li> </li>
@ -166,7 +166,7 @@
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<button type="submit" class="sc-button">{{ 'Filter'|trans }}</button> <button type="submit" class="btn">{{ 'Filter'|trans }}</button>
</li> </li>
</ul> </ul>
{{ form_end(form)}} {{ form_end(form)}}

View File

@ -39,7 +39,7 @@
<a class="btn btn-cancel" href="{% if app.request.query.has('returnPath') %} <a class="btn btn-cancel" href="{% if app.request.query.has('returnPath') %}
{{ app.request.query.get('returnPath')|escape('html_attr') }}"> {{ app.request.query.get('returnPath')|escape('html_attr') }}">
{% else %} {% else %}
{{ path('chill_task_single_task_show', { 'id': task.id, 'list_params': app.request.query.get('list_params', { } )} ) }}" class="sc-button"> {{ path('chill_task_single_task_show', { 'id': task.id, 'list_params': app.request.query.get('list_params', { } )} ) }}" class="btn">
{% endif %} {% endif %}
{{ app.request.query.get('returnLabel')|default('Cancel'|trans) }} {{ app.request.query.get('returnLabel')|default('Cancel'|trans) }}
</a> </a>

View File

@ -37,9 +37,9 @@
{{ form_row(form.warningInterval) }} {{ form_row(form.warningInterval) }}
<div class="grid-12 centered sticky-form-buttons"> <div class="grid-12 centered sticky-form-buttons">
<!-- {{ form_row(form.submit, { 'label': 'Add a new task'|trans, 'attr': {'class': 'fa fa-save sc-button green margin-10'} }) }} --> <!-- {{ form_row(form.submit, { 'label': 'Add a new task'|trans, 'attr': {'class': 'fa fa-save btn btn-chill-green margin-10'} }) }} -->
<button class="sc-button green margin-10" type="submit"><i class="fa fa-save"></i> {{ 'Add a new task'|trans }}</button> <button class="btn btn-chill-green margin-10" type="submit"><i class="fa fa-save"></i> {{ 'Add a new task'|trans }}</button>
</div> </div>
{{ form_end(form) }} {{ form_end(form) }}

View File

@ -95,9 +95,9 @@
</li> </li>
{% if workflow_transitions(task)|length > 0 %} {% if workflow_transitions(task)|length > 0 %}
<li> <li>
<div class="bt-dropdown"> <div class="btn dropdown-toggle">
<a href="" class="btn btn-task-exchange">&nbsp;{{'Change task status'|trans}}</a> <a href="" class="btn btn-task-exchange">&nbsp;{{'Change task status'|trans}}</a>
<div class="bt-dropdown-content"> <div class="dropdown-menu">
{% for transition in workflow_transitions(task) %} {% for transition in workflow_transitions(task) %}
<a href="{{ path('chill_task_task_transition', { 'taskId': task.id, 'transition': transition.name, 'kind': 'single-task', 'return_path': app.request.uri }) }}" class="{{ task_workflow_metadata(task, 'transition.class', transition)|e('html_attr') }}">{{ task_workflow_metadata(task, 'transition.verb', transition)|trans }}</a> <a href="{{ path('chill_task_task_transition', { 'taskId': task.id, 'transition': transition.name, 'kind': 'single-task', 'return_path': app.request.uri }) }}" class="{{ task_workflow_metadata(task, 'transition.class', transition)|e('html_attr') }}">{{ task_workflow_metadata(task, 'transition.verb', transition)|trans }}</a>
{% endfor %} {% endfor %}