button cancel, set icon with before

This commit is contained in:
Mathieu Jaumotte 2021-07-06 12:10:37 +02:00
parent ca17ca4984
commit c2122d62c6
8 changed files with 11 additions and 18 deletions

View File

@ -54,7 +54,6 @@
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<a href="{{ path('chill_event__event_show', { 'event_id' : participations[0].event.id } ) }}" class="btn 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>
{{ 'Back to the event'|trans }} {{ 'Back to the event'|trans }}
</a> </a>
</li> </li>

View File

@ -34,7 +34,6 @@
<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="btn 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>
{{ 'Back to the event'|trans }} {{ 'Back to the event'|trans }}
</a> </a>
</li> </li>

View File

@ -91,11 +91,11 @@ export default {
classAction() { classAction() {
switch (this.action) { switch (this.action) {
case 'show': case 'show':
return 'bt-show'; return 'btn-show';
case 'edit': case 'edit':
return 'bt-update'; return 'btn-update';
case 'create': case 'create':
return 'bt-create'; return 'btn-create';
} }
}, },
titleAction() { titleAction() {

View File

@ -60,7 +60,7 @@
</template> </template>
<button v-if="conc.allowRemove" @click="removeConcerned(conc)" class="btn bt-primary"> <button v-if="conc.allowRemove" @click="removeConcerned(conc)" class="btn btn-primary">
{{ $t('household_members_editor.remove_concerned') }} {{ $t('household_members_editor.remove_concerned') }}
</button> </button>
</div> </div>

View File

@ -90,16 +90,14 @@
{{ form_rest(form) }} {{ form_rest(form) }}
<ul class="col-12 list-inline sticky-form-buttons"> <ul class="col-12 record_actions sticky-form-buttons">
<li class="list-inline-item mr-auto"> <li class="cancel">
<a href="{{ path('chill_person_view', {'person_id' : person.id}) }}" class="btn btn-secondary"> <a href="{{ path('chill_person_view', {'person_id' : person.id}) }}" class="btn btn-cancel">
<i class="fa fa-arrow-left"></i>
{{ 'Return'|trans }} {{ 'Return'|trans }}
</a> </a>
</li> </li>
<li class="list-inline-item"> <li>
<button class="btn btn-success" type="submit"> <button class="btn btn-save" type="submit">
<i class="fa fa-fw fa-save"></i>
{{ 'Save'|trans }} {{ 'Save'|trans }}
</button> </button>
</li> </li>

View File

@ -78,7 +78,6 @@
<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="btn btn-chill-gray 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 }} {{ 'Return'|trans }}
</a> </a>
</li> </li>

View File

@ -15,8 +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="btn"> <a href="{{ path('chill_person_duplicate_view', {'person_id' : person.id}) }}" class="btn btn-cancel">
<i class="fa fa-arrow-left"></i>
{{ 'Return'|trans }} {{ 'Return'|trans }}
</a> </a>
</li> </li>

View File

@ -142,8 +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="btn"> <a href="{{ path('chill_person_view', {person_id: person.id }) }}" class="btn btn-cancel">
<i class="fa fa-arrow-left"></i>
{{ 'Return'|trans }}</a> {{ 'Return'|trans }}</a>
</li> </li>
<li> <li>