Make the account image form less ugly
This commit is contained in:
parent
69e1c2c3ca
commit
3b43cb33cb
2 changed files with 29 additions and 19 deletions
|
@ -1295,9 +1295,8 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.accountImage-options {
|
.accountImage-options p {
|
||||||
width: 50%;
|
margin-bottom: 0px;
|
||||||
display: inline-block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nohome .location {
|
.nohome .location {
|
||||||
|
|
|
@ -89,35 +89,46 @@
|
||||||
<label><%= t 'user.account.image' %></label>
|
<label><%= t 'user.account.image' %></label>
|
||||||
<div class="accountImage">
|
<div class="accountImage">
|
||||||
<%= user_image @user %>
|
<%= user_image @user %>
|
||||||
<table class="accountImage-options">
|
<fieldset class="accountImage-options">
|
||||||
<% if @user.image.file? %>
|
<% if @user.image.file? %>
|
||||||
<fieldset class="form-row">
|
<div class="form-row">
|
||||||
<%= radio_button_tag "image_action", "keep", !@user.image_use_gravatar %>
|
<%= radio_button_tag "image_action", "keep", !@user.image_use_gravatar %>
|
||||||
<%= t 'user.account.keep image' %>
|
<%= t 'user.account.keep image' %>
|
||||||
</fieldset>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @user.image.file? || @user.image_use_gravatar? %>
|
<% if @user.image.file? || @user.image_use_gravatar? %>
|
||||||
<fieldset class="form-row">
|
<div class="form-row">
|
||||||
<%= radio_button_tag "image_action", "delete" %>
|
<%= radio_button_tag "image_action", "delete" %>
|
||||||
<%= t 'user.account.delete image' %>
|
<%= t 'user.account.delete image' %>
|
||||||
</fieldset>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @user.image.file? %>
|
<% if @user.image.file? %>
|
||||||
<fieldset class="form-row">
|
<div>
|
||||||
<%= radio_button_tag "image_action", "new" %>
|
<div class="form-row">
|
||||||
<%= t 'user.account.replace image' %><br /><%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %><br /><span class="form-help deemphasize"><%= t 'user.account.image size hint' %></span>
|
<%= radio_button_tag "image_action", "new" %>
|
||||||
</fieldset>
|
<%= t 'user.account.replace image' %>
|
||||||
|
</div>
|
||||||
|
<div class="form-row">
|
||||||
|
<%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %>
|
||||||
|
<p class="form-help deemphasize"><%= t 'user.account.image size hint' %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<fieldset class="form-row">
|
<div class="form-row">
|
||||||
<%= radio_button_tag "image_action", "new" %>
|
<%= radio_button_tag "image_action", "new" %>
|
||||||
<%= t 'user.account.new image' %><br /><%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %><br /><span class="form-help deemphasize"><%= t 'user.account.image size hint' %></span>
|
<%= t 'user.account.new image' %>
|
||||||
</fieldset>
|
</div>
|
||||||
|
<div class="form-row">
|
||||||
|
<%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %>
|
||||||
|
<p class="form-help deemphasize"><%= t 'user.account.image size hint' %></p>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<fieldset class="form-row">
|
<div class="form-row">
|
||||||
<%= radio_button_tag "image_action", "gravatar", @user.image_use_gravatar %>
|
<%= radio_button_tag "image_action", "gravatar", @user.image_use_gravatar %>
|
||||||
<%= t 'user.account.gravatar.gravatar' %> <span class="form-help deemphasize">(<a href="<%= t 'user.account.gravatar.link' %>" target="_new"><%= t 'user.account.gravatar.link text' %></a>)</span>
|
<%= t 'user.account.gravatar.gravatar' %>
|
||||||
</fieldset>
|
<p class="form-help deemphasize">(<a href="<%= t 'user.account.gravatar.link' %>" target="_new"><%= t 'user.account.gravatar.link text' %></a>)</p>
|
||||||
</table>
|
</div>
|
||||||
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue