You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
976 B
29 lines
976 B
10 years ago
|
% layout 'default';
|
||
|
% title 'Zerobin -- View';
|
||
|
% my %times = (day => 1, week => 7, month => 30, quarter => 90, year => 395);
|
||
|
% my @times = map { [l($_) => $times{$_}] } sort { $times{$a} <=> $times{$b} } keys(%times);
|
||
|
% stash 'styles' => 'zerobin';
|
||
|
% stash 'expire' => 30;
|
||
|
<h1>Создать запись</h1>
|
||
|
<div>
|
||
|
<div>
|
||
|
<%= form_for "/zerobin2/create" => (method => 'POST') => begin %>
|
||
|
<span class="zerobin cblock">
|
||
|
<%= submit_button l('Save') %>
|
||
|
</span>
|
||
|
<span class="zerobin cblock">
|
||
|
<%= tag 'label' => (for => 'expire') => l('Keep for') %>:
|
||
|
<%= select_field 'expire' => \@times %>
|
||
|
</span>
|
||
|
<span class="zerobin cblock">
|
||
|
<%= check_box 'syntax' => 0 %>
|
||
|
<%= tag 'label' => (for => 'syntax') => l('Syntax highlight') %>
|
||
|
</span>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
<hr style="width: 50%"/>
|
||
|
<div>
|
||
|
<%= tag 'textarea' => (id => "paste", placeholder => l('Paste your text here')) => '' %>
|
||
|
</div>
|
||
|
</div>
|