change html structure for flash msg, change columns buttons

This commit is contained in:
Mojca Lorber 2020-01-20 14:02:42 +01:00
parent 8b635ac38a
commit 772118d246
3 changed files with 8 additions and 14 deletions

View file

@ -18,7 +18,7 @@
</div>
<div class="repo-datatables-buttons pull-right" style="display: inline;">
<button class="btn btn-primary help_tooltips manage-repo-column-index"
<button class="btn btn-secondary help_tooltips manage-repo-column-index"
data-modal-url="<%= repository_columns_index_html_path(@repository) %>"
data-action="new"
data-tooltiplink="<%= I18n.t('tooltips.link.inventory.manage_columns') %>"

View file

@ -44,7 +44,7 @@
<% end %>
</div>
<button class="btn btn-primary help_tooltips manage-repo-column-index"
<button class="btn btn-secondary help_tooltips manage-repo-column-index"
data-modal-url="<%= repository_columns_index_html_path(@repository) %>"
data-action="new"
data-tooltiplink="<%= I18n.t('tooltips.link.inventory.manage_columns') %>"

View file

@ -1,29 +1,23 @@
<div id="notifications">
<% if flash[:success] %>
<div id="alert-flash" class="alert alert-success alert-dismissable alert-floating">
<div>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<span class="fas fa-check-circle"></span>
<span><%= sanitize_input(flash[:success]) %></span>
</div>
<span class="message"><%= sanitize_input(flash[:success]) %></span>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<% end %>
<% if notice %>
<div id="alert-flash" class="alert alert-info alert-dismissable alert-floating">
<div>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<span class="fas fa-info-circle"></span>
<span><%= notice %></span>
</div>
<span class="message"><%= notice %></span>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<% end %>
<% if alert and !alert.empty? or flash[:error]%>
<div id="alert-flash" class="alert alert-danger alert-dismissable alert-floating">
<div>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<span class="fas fa-exclamation-circle"></span>
<span><%= alert || sanitize_input(flash[:error]) %></span>
</div>
<span class="message"><%= alert || sanitize_input(flash[:error]) %></span>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<% end %>
</div>