diff --git a/templates/post.html.ep b/templates/post.html.ep index 32be5c6..ba890c9 100644 --- a/templates/post.html.ep +++ b/templates/post.html.ep @@ -2,15 +2,15 @@ % title 'New Thread';

<%= title %>

-
- <%= label_for name => 'Author' %> - <% if (my $previous_name = session->{'author'}) { %> - <%= text_field name => $previous_name, maxlength => 63, minlength => 1 %> +
+ <%= label_for author => 'Author' %> + <% if (my $previous_author = session->{'author'}) { %> + <%= text_field author => $previous_author, maxlength => 63, minlength => 1 %> <% } else { %> - <%= text_field name => 'Anonymous', maxlength => 63, minlength => 1 %> + <%= text_field author => 'Anonymous', maxlength => 63, minlength => 1 %> <% } %> - <% if (my $error = validation->error('name')) { =%> -

Invalid name: 1 to 63 characters please.

+ <% if (my $error = validation->error('author')) { =%> +

Invalid author: 1 to 63 characters please.

<% } =%>
diff --git a/templates/thread_id.html.ep b/templates/thread_id.html.ep index e959801..f0f6716 100644 --- a/templates/thread_id.html.ep +++ b/templates/thread_id.html.ep @@ -2,15 +2,15 @@ % title 'New Remark';

<%= title %>

-
- <%= label_for name => 'Author' %> - <% if (my $previous_name = session->{'author'}) { %> - <%= text_field name => $previous_name, maxlength => 63, minlength => 1 %> +
+ <%= label_for author => 'Author' %> + <% if (my $previous_author = session->{'author'}) { %> + <%= text_field author => $previous_author, maxlength => 63, minlength => 1 %> <% } else { %> - <%= text_field name => 'Anonymous', maxlength => 63, minlength => 1 %> + <%= text_field author => 'Anonymous', maxlength => 63, minlength => 1 %> <% } %> - <% if (my $error = validation->error('name')) { =%> -

Invalid name: 1 to 63 characters please.

+ <% if (my $error = validation->error('author')) { =%> +

Invalid author: 1 to 63 characters please.

<% } =%>