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

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

View File

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

View File

@@ -98,7 +98,7 @@
href="{{ chill_path_add_return_path('chill_person_household_members_editor', {
'persons': [ m.person.id ],
'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>
{{ 'household.Leave household'|trans }}
</a>

View File

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

View File

@@ -41,7 +41,7 @@
{{ 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) }}
</div>

View File

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

View File

@@ -18,7 +18,7 @@
<p>
{{ '%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 }}
</a>
</p>
@@ -97,7 +97,7 @@
{% endif %}
{% if preview == true and persons|length < total %}
<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 }}
</a>
</li>

View File

@@ -18,7 +18,7 @@
<p>
{{ '%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 }}
</a>
</p>
@@ -94,7 +94,7 @@
{% endif %}
{% if preview == true and persons|length < total %}
<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 }}
</a>
</li>

View File

@@ -2,7 +2,7 @@
<p>
{{ '%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 }}
</a>
</p>
@@ -27,7 +27,7 @@
{% endif %}
{% if preview == true and persons | length < total %}
<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 }}
</a>
</li>
@@ -79,12 +79,12 @@
</ul>
<ul class="record_actions">
<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 }}
</a>
</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>
</li>
</ul>
@@ -107,7 +107,7 @@
<div class="header">
<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>
</a>
<span>{{ 'Since %date%'|trans({'%date%': app.startDate|format_date('medium') }) }}</span>
@@ -156,7 +156,7 @@
{% endif %}
{% if preview == true and persons|length < total %}
<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 }}
</a>
</li>

View File

@@ -77,7 +77,7 @@
<ul class="grid-12 record_actions">
<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>
{{ 'Return'|trans }}
</a>

View File

@@ -15,7 +15,7 @@
<ul class="grid-12 record_actions ">
<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>
{{ 'Return'|trans }}
</a>

View File

@@ -63,7 +63,7 @@
<i class="fa fa-cog fa-fw"></i>{{ 'Merge'|trans }}</a>
</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}) }}">
<i class="fa fa-toggle-on fa-fw"></i>{{ 'duplicate'|trans }}</a>
</li>
@@ -125,7 +125,7 @@
<a class="btn btn-show" target="_blank" href="{{ path('chill_person_view', { person_id : notDuplicatePerson.id }) }}"></a>
</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}) }}">
<i class="fa fa-toggle-off fa-fw"></i>{{ 'not-duplicate'|trans }}</a>
</li>
@@ -142,7 +142,7 @@
<ul class="record_actions">
<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>
{{ 'Return'|trans }}</a>
</li>