Use new joined buttons style for groups of buttons

This commit is contained in:
Thomas Levine 2013-06-11 14:38:17 -04:00 committed by Tom Hughes
parent dc031d121c
commit c789acd39d
6 changed files with 15 additions and 21 deletions

View file

@ -1,4 +1,4 @@
<div id="browse_controls" class='inner12'> <div id="browse_controls" class='inner12 buttons'>
<a id="browse_filter_toggle" class="button" href="#"><%= t'browse.start_rjs.manually_select' %></a> <a id="browse_filter_toggle" class="button" href="#"><%= t'browse.start_rjs.manually_select' %></a>
<a id="browse_hide_areas_box" class="button" href="#"><%= t'browse.start_rjs.hide_areas' %></a> <a id="browse_hide_areas_box" class="button" href="#"><%= t'browse.start_rjs.hide_areas' %></a>
</div> </div>

View file

@ -26,9 +26,7 @@
<p><%= t'oauth_clients.show.support_notice' %></p> <p><%= t'oauth_clients.show.support_notice' %></p>
<table> <div class="buttons">
<tr> <%= button_to t('oauth_clients.show.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get %>
<td><%= button_to t('oauth_clients.show.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get %></td> <%= button_to t('oauth_clients.show.delete'), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t('oauth_clients.show.confirm') } %>
<td><%= button_to t('oauth_clients.show.delete'), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t('oauth_clients.show.confirm') } %></td> </div>
</tr>
</table>

View file

@ -13,10 +13,8 @@
</p> </p>
<% if @user and @user.moderator? %> <% if @user and @user.moderator? %>
<table> <div class="buttons">
<tr> <%= button_to t('redaction.show.edit'), edit_redaction_path(@redaction), :method => :get %></td>
<td><%= button_to t('redaction.show.edit'), edit_redaction_path(@redaction), :method => :get %></td> <%= button_to t('redaction.show.destroy'), @redaction, :method => "delete", :remote => true, :data => { :confirm => t('redaction.show.confirm') } %>
<td><%= button_to t('redaction.show.destroy'), @redaction, :method => "delete", :remote => true, :data => { :confirm => t('redaction.show.confirm') } %></td> </div>
</tr>
</table>
<% end %> <% end %>

View file

@ -55,10 +55,8 @@
<br /><br /> <br /><br />
<%= if_user(@trace.user) do %> <%= if_user(@trace.user) do %>
<table> <div class="buttons">
<tr> <%= button_to t('trace.view.edit_track'), :controller => 'trace', :action => 'edit', :id => @trace.id %>
<td><%= button_to t('trace.view.edit_track'), :controller => 'trace', :action => 'edit', :id => @trace.id %></td> <%= button_to t('trace.view.delete_track'), :controller => 'trace', :action => 'delete', :id => @trace.id %>
<td><%= button_to t('trace.view.delete_track'), :controller => 'trace', :action => 'delete', :id => @trace.id %></td> </div>
</tr>
</table>
<% end %> <% end %>

View file

@ -30,7 +30,7 @@
<%= render :partial => 'user', :collection => @users %> <%= render :partial => 'user', :collection => @users %>
</table> </table>
<div id="user_list_actions"> <div id="user_list_actions buttons">
<%= submit_tag t('user.list.confirm'), :name => "confirm" %> <%= submit_tag t('user.list.confirm'), :name => "confirm" %>
<%= submit_tag t('user.list.hide'), :name => "hide" %> <%= submit_tag t('user.list.hide'), :name => "hide" %>
</div> </div>

View file

@ -36,7 +36,7 @@
<span class="minorNote">(<%= link_to(t('user.terms.consider_pd_why'), t('user.terms.consider_pd_why_url'), :target => :new)%>)</span> <span class="minorNote">(<%= link_to(t('user.terms.consider_pd_why'), t('user.terms.consider_pd_why_url'), :target => :new)%>)</span>
</p> </p>
<%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %> <%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %>
<div class="signing-buttons"> <div class="signing-buttons buttons">
<%= submit_tag(t('user.terms.agree'), :name => "agree", :id => "agree") %> <%= submit_tag(t('user.terms.agree'), :name => "agree", :id => "agree") %>
<%= submit_tag(t('user.terms.decline'), :name => "decline", :id => "decline") %> <%= submit_tag(t('user.terms.decline'), :name => "decline", :id => "decline") %>
</div> </div>