asciinema.org/app/views/asciicasts/_form.html.erb
2012-12-18 21:38:49 +01:00

51 lines
1.8 KiB
Plaintext

<section class="supplimental">
<div class="wrapper">
<%= form_for @asciicast, :html => { :class => 'form-horizontal' } do |f| %>
<fieldset>
<legend><%= controller.action_name.capitalize %> asciicast</legend>
<div class="control-group">
<%= f.label :title, :class => 'control-label' %>
<div class="controls">
<%= f.text_field :title, :class => 'text_field span6' %>
</div>
</div>
<div class="control-group">
<%= f.label :description, :class => 'control-label' %>
<div class="controls">
<%= f.text_area :description, :class => 'text_area span6', :rows => 15 %>
</div>
<div class="controls">
Parsed with <a href="http://github.github.com/github-flavored-markdown/"
target="_blank">GitHub Flavored Markdown</a>
</div>
</div>
<div class="control-group">
<%= f.label :time_compression, :class => 'control-label' %>
<div class="controls">
<label class="radio" for="asciicast_time_compression_true">
<%= f.radio_button :time_compression, true %>
Enabled - terminal inactivity won't last longer
than <%= Asciicast::MAX_DELAY.to_i %> sec (recommended)
</label>
<label class="radio" for="asciicast_time_compression_false">
<%= f.radio_button :time_compression, false %>
Disabled - no change to timeline
</label>
</div>
</div>
<div class="form-actions">
<%= f.submit 'Update asciicast', :class => 'btn btn-primary' %>
<%= link_to 'Cancel', asciicast_path, :class => 'btn' %>
</div>
</fieldset>
<% end %>
</div>
</section>