diff --git a/templates/zerobin/create.html.ep b/templates/zerobin/create.html.ep index 570a99f..4b5755a 100644 --- a/templates/zerobin/create.html.ep +++ b/templates/zerobin/create.html.ep @@ -6,10 +6,10 @@ % param 'expire' => 30; % my $syntax = (stash 'syntax') || []; % param 'syntax' => ''; -% my %opts = (id => 'paste', name => 'paste', required => 1); +% my %opts = (id => 'paste', name => 'paste');

Создать запись

- <%= form_for "/zerobin2" => (method => 'POST') => begin %> + <%= form_for "/zerobin2" => (method => 'POST', enctype => "multipart/form-data") => begin %>
<%= submit_button l('Save') %> @@ -23,6 +23,11 @@ <%= select_field 'syntax' => $syntax; %>
+

+ Копипаст ↓↓↓ + или файл →  + +

<%= tag 'textarea' => (placeholder => l('Paste your text here'), %opts) => '' %>