|
|
|
@ -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'); |
|
|
|
|
<h1>Создать запись</h1> |
|
|
|
|
<div> |
|
|
|
|
<%= form_for "/zerobin2" => (method => 'POST') => begin %> |
|
|
|
|
<%= form_for "/zerobin2" => (method => 'POST', enctype => "multipart/form-data") => begin %> |
|
|
|
|
<div> |
|
|
|
|
<span class="zerobin cblock"> |
|
|
|
|
<%= submit_button l('Save') %> |
|
|
|
@ -23,6 +23,11 @@
|
|
|
|
|
<%= select_field 'syntax' => $syntax; %> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<p> |
|
|
|
|
<input type="radio" name="source" value="form" checked="1">Копипаст ↓↓↓</input> |
|
|
|
|
<input type="radio" name="source" value="file">или файл →</input> |
|
|
|
|
<input type="file" name="file"> |
|
|
|
|
</p> |
|
|
|
|
<div> |
|
|
|
|
<%= tag 'textarea' => (placeholder => l('Paste your text here'), %opts) => '' %> |
|
|
|
|
</div> |
|
|
|
|