Skip to content

Commit

Permalink
moved the texts to a tooltip (title tag) the current design of the ed…
Browse files Browse the repository at this point in the history
…itor isn't supporting anything else without a bigger rewrite
  • Loading branch information
malte-laukoetter authored and windy1 committed Jan 28, 2017
1 parent 0e796b4 commit 81ce671
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/views/utils/editor.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,41 @@

@if(enabled) {
<!-- Edit -->
<button type="button" class="btn btn-sm btn-edit btn-page btn-default">
<button type="button" class="btn btn-sm btn-edit btn-page btn-default" title="@messages("general.edit")">
<i class="fa fa-edit"></i> @messages("general.edit")
</button>

<!-- Preview -->
<div class="btn-edit-container btn-preview-container">
<div class="btn-edit-container btn-preview-container" title="@messages("general.preview")">
<button type="button" class="btn btn-sm btn-preview btn-page btn-default">
<i class="fa fa-eye"></i> @messages("general.preview")
<i class="fa fa-eye"></i>
</button>
</div>

<!-- Save -->
@if(savable) {
<div class="btn-edit-container btn-save-container">
<div class="btn-edit-container btn-save-container" title="@messages("general.save")">
<button form="form-editor-save" type="submit" class="btn btn-sm btn-save btn-page btn-default">
<i class="fa fa-save"></i> @messages("general.save")
<i class="fa fa-save"></i>
</button>
</div>
}

<!-- Cancel -->
@if(cancellable) {
<div class="btn-edit-container btn-cancel-container">
<div class="btn-edit-container btn-cancel-container" title="@messages("general.cancel")">
<button type="button" class="btn btn-sm btn-cancel btn-page btn-default">
<i class="fa fa-times"></i> @messages("general.cancel")
<i class="fa fa-times"></i>
</button>
</div>
}

<!-- Delete -->
@if(deletable) {
<div class="btn-edit-container btn-delete-container">
<div class="btn-edit-container btn-delete-container" title="@messages("general.delete")">
<button type="button" class="btn btn-sm btn-page-delete btn-page btn-default"
data-toggle="modal" data-target="#modal-page-delete">
<i class="fa fa-trash"></i> @messages("general.delete")
<i class="fa fa-trash"></i>
</button>
</div>

Expand Down

0 comments on commit 81ce671

Please sign in to comment.