Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: fix bad alignment in delete item modal header #413

Merged
merged 1 commit into from
Aug 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions rero_ils/templates/rero_ils/_editor_button_actions.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<div class="modal fade" data-modal="deleteRecord" id="confirm-{{ json.id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal fade" data-modal="deleteRecord" id="confirm-{{ json.id }}" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel">{{ _('Confirm Delete') }}</h4>
<h5 class="modal-title" id="myModalLabel">{{ _('Confirm Delete') }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>

<div class="modal-body">
Expand All @@ -13,25 +16,24 @@ <h4 class="modal-title" id="myModalLabel">{{ _('Confirm Delete') }}</h4>

<div class="modal-footer">
<button type="button" class="btn btn-warning" data-dismiss="modal">{{ _('Cancel') }}</button>
<button data-delete-url="{{ href_delete }}" data-next="{{ next }}" type="button" class="btn btn-danger btn-ok delete">{{ _('Delete') }}</button>
<button data-delete-url="{{ href_delete }}" data-next="{{ next }}" type="button"
class="btn btn-danger btn-ok delete">{{ _('Delete') }}</button>
</div>
</div>
</div>
</div>

<div class="btn-group btn-group-sm align-self-end" role="group" aria-label="Buttons to edit records">
<a href="#source-{{ json.id }}" data-toggle="collapse" type="button" role="button" class="btn btn-info" aria-expanded="false" aria-controls="JSON display">
<a href="#source-{{ json.id }}" data-toggle="collapse" type="button" role="button" class="btn btn-info"
aria-expanded="false" aria-controls="JSON display">
<i class="fa fa-search-plus fa-fw"></i> {{ _('JSON') }}
</a>
<a href="{{ href_update }}" type="button" class="btn btn-success">
<i class="fa fa-pencil-square-o fa-fw"></i> {{ _('Edit') }}
</a>
<a
{% if json.can_delete %}href="#confirm-{{ json.id }}"{% endif %}
type="button" class="btn btn-danger"
data-toggle="{% if json.can_delete %}modal{% else %}tooltip{% endif %}"
{% if not json.can_delete %}disabled {% endif %}{%if message and not json.can_delete %} title="{{ message }}"{% endif %}
>
<a {% if json.can_delete %}href="#confirm-{{ json.id }}" {% endif %} type="button" class="btn btn-danger"
data-toggle="{% if json.can_delete %}modal{% else %}tooltip{% endif %}" {% if not json.can_delete %}disabled
{% endif %}{%if message and not json.can_delete %} title="{{ message }}" {% endif %}>
<i class="fa fa-trash-o fa-fw"></i> {{ _('Delete') }}
</a>
</div>
Expand Down