|
|
|
@ -7,19 +7,19 @@
|
|
|
|
|
<h1>Загрузить файл</h1> |
|
|
|
|
<div> |
|
|
|
|
<%= form_for "/imgbin" => (method => 'POST', enctype => 'multipart/form-data') => begin %> |
|
|
|
|
<div> |
|
|
|
|
<span class="zerobin cblock"> |
|
|
|
|
<%= submit_button l('Upload') %> |
|
|
|
|
</span> |
|
|
|
|
<span class="zerobin cblock"> |
|
|
|
|
<%= tag 'label' => (for => 'expire') => l('Keep for') %>: |
|
|
|
|
<%= select_field 'expire' => \@times %> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<hr/> |
|
|
|
|
<div> |
|
|
|
|
<%= file_field 'file', required => 1 %> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<span class="zerobin cblock"> |
|
|
|
|
<%= submit_button l('Upload') %> |
|
|
|
|
</span> |
|
|
|
|
<span class="zerobin cblock"> |
|
|
|
|
<%= tag 'label' => (for => 'expire') => l('Keep for') %>: |
|
|
|
|
<%= select_field 'expire' => \@times %> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<hr/> |
|
|
|
|
<div> |
|
|
|
|
<%= file_field 'file', required => 1 %> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
% if (my $error = flash 'error') { |
|
|
|
|