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