Update asciicast edit page to new layout
This commit is contained in:
parent
e5809d2213
commit
3041a646e2
@ -1,50 +0,0 @@
|
||||
<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>
|
@ -1 +0,0 @@
|
||||
<%= render :partial => 'form' %>
|
19
app/views/asciicasts/edit.html.slim
Normal file
19
app/views/asciicasts/edit.html.slim
Normal file
@ -0,0 +1,19 @@
|
||||
.container
|
||||
= form_for @asciicast, html: { class: 'form-horizontal' } do |f|
|
||||
legend Asciicast properties
|
||||
|
||||
.form-group
|
||||
= f.label :title, class: 'col-sm-2 control-label'
|
||||
.col-sm-10 = f.text_field :title, class: 'form-control'
|
||||
.form-group
|
||||
= f.label :description, class: 'col-sm-2 control-label'
|
||||
.col-sm-10
|
||||
= f.text_area :description, class: 'form-control', rows: 15
|
||||
p.help-block
|
||||
| Parsed with
|
||||
a[href="http://github.github.com/github-flavored-markdown/" target="_blank"]
|
||||
| GitHub Flavored Markdown
|
||||
.form-group
|
||||
.col-sm-offset-2.col-sm-10
|
||||
= f.submit 'Update asciicast', class: 'btn btn-primary'
|
||||
= link_to 'Cancel', asciicast_path, class: 'btn'
|
Loading…
Reference in New Issue
Block a user