From 8be78a2e311a81aecff493143812cbfe08cb85ff Mon Sep 17 00:00:00 2001 From: swag Date: Sat, 17 Sep 2022 03:56:07 -0400 Subject: [PATCH] I literally have no idea how this worked before, it's so late and my brain is fried --- templates/post.html.ep | 14 +++++++------- templates/thread_id.html.ep | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) 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.

<% } =%>