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