Skip to content

Commit

Permalink
author - #60 - para imagenes y ayuda
Browse files Browse the repository at this point in the history
  • Loading branch information
andreslucena committed Mar 28, 2012
1 parent 8d7d9e5 commit 673f5b8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
18 changes: 18 additions & 0 deletions webapp/app/views/images/_create_step.html.erb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,6 +21,24 @@
<%= f.file_field :img, required: true, class: 'upload' %> <%= f.file_field :img, required: true, class: 'upload' %>
<p class="help-block"><%= I18n.t("help.image.archive") %></p> <p class="help-block"><%= I18n.t("help.image.archive") %></p>
</div> </div>

<% if user_signed_in? %>
<%= f.check_box :author_myself, :class => "author_myself" do %>
<%= I18n.t("help.content.author.myself") %>
<% end %>
<% end %>

<div class="form-field author-field">
<%= f.text_field :author_name, class: 'span8', :required => "true" do %>
<p class="help-block"><%= I18n.t("help.content.author.name") %></p>
<% end %>
</div>

<div class="form-field author-field">
<%= f.text_field :author_link, class: 'span8', :type => "url" do %>
<p class="help-block"><%= I18n.t("help.content.author.url") %></p>
<% end %>
</div>


<div class="form-field"> <div class="form-field">
<%= f.text_field :tag_list, class: 'span8', :required => 'true' do %> <%= f.text_field :tag_list, class: 'span8', :required => 'true' do %>
Expand Down
10 changes: 7 additions & 3 deletions webapp/app/views/partials/_form_for_content.html.erb
Original file line number Original file line Diff line number Diff line change
@@ -1,15 +1,19 @@
<% if user_signed_in? %> <% if user_signed_in? %>
<%= f.check_box :author_myself, :class => "author_myself" do %> <%= f.check_box :author_myself, :class => "author_myself" do %>
Soy el autor <%= I18n.t("help.content.author.myself") %>
<% end %> <% end %>
<% end %> <% end %>


<div class="form-field author-field"> <div class="form-field author-field">
<%= f.text_field :author_name, class: 'span8', :required => "true" %> <%= f.text_field :author_name, class: 'span8', :required => "true" do %>
<p class="help-block"><%= I18n.t("help.content.author.name") %></p>
<% end %>
</div> </div>


<div class="form-field author-field"> <div class="form-field author-field">
<%= f.text_field :author_link, class: 'span8', :type => "url" %> <%= f.text_field :author_link, class: 'span8', :type => "url" do %>
<p class="help-block"><%= I18n.t("help.content.author.url") %></p>
<% end %>
</div> </div>


<div class="form-field"> <div class="form-field">
Expand Down
1 change: 1 addition & 0 deletions webapp/config/environments/development.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@


# Configuración para ActionMailer # Configuración para ActionMailer
config.action_mailer.smtp_settings = { config.action_mailer.smtp_settings = {
:port => 1025,
:enable_starttls_auto => false :enable_starttls_auto => false
} }


Expand Down
4 changes: 4 additions & 0 deletions webapp/config/locales/es.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -271,3 +271,7 @@ es:
address: "Ayuda de la direccion" address: "Ayuda de la direccion"
city: "Ayuda de la ciudad" city: "Ayuda de la ciudad"
country: "Ayuda de la país" country: "Ayuda de la país"
author:
myself: "Soy el autor"
name: "Autor (nombre)"
url: "Autor (URL)"

0 comments on commit 673f5b8

Please sign in to comment.