Improve admin's styles

This commit is contained in:
Alberto Garcia Cabeza
2015-08-29 00:35:08 +02:00
parent c0eb46288c
commit f75c21f40f
2 changed files with 17 additions and 15 deletions

View File

@@ -37,23 +37,17 @@
<!-- Badge collective name, "collective" by default --> <!-- Badge collective name, "collective" by default -->
<td>Colectivo</td> <td>Colectivo</td>
<!-- /. Badge collective name, "collective" by default --> <!-- /. Badge collective name, "collective" by default -->
<td>
<!-- Edit collective bagde, "collective" by default -->
<%= link_to t("admin.organizations.index.edit"), "", class: "button radius tiny" %>
<!-- /. Edit collective bagde, "collective" by default -->
</td>
<% if organization.verified? %> <% if organization.verified? %>
<td class="verified"> <td class="verified">
<i class="icon-check"></i> <i class="icon-check"></i>
<%= t("admin.organizations.index.verified") %> <%= t("admin.organizations.index.verified") %>
</td> </td>
<% end %> <% end %>
<% if organization.rejected? %>
<td class="rejected">
<i class="icon-x"></i>
<%= t("admin.organizations.index.rejected") %>
</td>
<% end %>
<td>
<!-- Edit collective bagde, "collective" by default -->
<%= link_to t("admin.organizations.index.edit"), "", class: "button radius tiny secondary" %>
<!-- /. Edit collective bagde, "collective" by default -->
</td>
<% if can? :verify, organization %> <% if can? :verify, organization %>
<td> <td>
<%= link_to t("admin.organizations.index.verify"), <%= link_to t("admin.organizations.index.verify"),
@@ -62,6 +56,12 @@
%> %>
</td> </td>
<% end %> <% end %>
<% if organization.rejected? %>
<td class="rejected">
<i class="icon-x"></i>
<%= t("admin.organizations.index.rejected") %>
</td>
<% end %>
<% if can? :reject, organization %> <% if can? :reject, organization %>
<td><%= link_to t("admin.organizations.index.reject"), <td><%= link_to t("admin.organizations.index.reject"),
reject_admin_organization_path(organization, request.query_parameters), reject_admin_organization_path(organization, request.query_parameters),

View File

@@ -32,10 +32,12 @@
as: :tag, as: :tag,
html: { id: "edit_tag_#{tag.id}", class: "text-right"}) do |f| %> html: { id: "edit_tag_#{tag.id}", class: "text-right"}) do |f| %>
<%= f.label "featured_#{tag.id}" do %> <span class="left">
<%= f.check_box :featured, label: false, id: "tag_featured_#{tag.id}", class: "left" %> <%= f.label "featured_#{tag.id}" do %>
<span class="checkbox left"><%= t("admin.tags.mark_as_featured") %></span> <%= f.check_box :featured, label: false, id: "tag_featured_#{tag.id}", class: "inline-block" %>
<% end %> <span class="checkbox inline-block"><%= t("admin.tags.mark_as_featured") %></span>
<% end %>
</span>
<%= f.submit(class: "button radius tiny success") %> <%= f.submit(class: "button radius tiny success") %>