Permalink
Browse files

author - #60 - para imagenes y ayuda

  • Loading branch information...
1 parent 8d7d9e5 commit 673f5b8f5c4a83d121e74fd9010d84a7d513c9da @andreslucena andreslucena committed Mar 28, 2012
@@ -21,6 +21,24 @@
<%= f.file_field :img, required: true, class: 'upload' %>
<p class="help-block"><%= I18n.t("help.image.archive") %></p>
</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">
<%= f.text_field :tag_list, class: 'span8', :required => 'true' do %>
@@ -1,15 +1,19 @@
<% if user_signed_in? %>
<%= f.check_box :author_myself, :class => "author_myself" do %>
- Soy el autor
+ <%= I18n.t("help.content.author.myself") %>
<% end %>
<% end %>
<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 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 class="form-field">
@@ -37,6 +37,7 @@
# Configuración para ActionMailer
config.action_mailer.smtp_settings = {
+ :port => 1025,
:enable_starttls_auto => false
}
@@ -271,3 +271,7 @@ es:
address: "Ayuda de la direccion"
city: "Ayuda de la ciudad"
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.