clearing up div mess

This commit is contained in:
ablwr 2014-08-17 15:31:03 -04:00
parent 855c1f9bd6
commit f5b0d33595
7 changed files with 16 additions and 64 deletions

View File

@ -20,6 +20,7 @@ $(document).ready(function() {
$( ".remove_audio_track" ).toggle(); $( ".remove_audio_track" ).toggle();
}); });
$('#generate').click(function(){ $('#generate').click(function(){
$('#command_line').val("ffmpeg" + $('#command_line').val("ffmpeg" +
" -i " + $('#input_name').val() + " -i " + $('#input_name').val() +

View File

@ -11,7 +11,7 @@
<br/> <br/>
</fieldset> </fieldset>
</div> </div>
</div>
<div class="well"> <div class="well">
<fieldset> <fieldset>
@ -41,6 +41,8 @@
</fieldset> </fieldset>
</div> </div>
</div>
<div class="well"> <div class="well">
<fieldset> <fieldset>
<legend>Your command line:</legend> <legend>Your command line:</legend>

View File

@ -10,7 +10,7 @@
</div> </div>
<br/> <br/>
</fieldset> </fieldset>
</div` </div>
</div> </div>
<div class="well"> <div class="well">

View File

@ -21,4 +21,3 @@
</fieldset> </fieldset>
</div> </div>
</div> <!-- container -->

View File

@ -3,9 +3,9 @@
<fieldset> <fieldset>
<legend>Input</legend> <legend>Input</legend>
<div class="form-group"> <div class="form-group">
<label class="control-label" for="input_name">Input</label> <label class="control-label" for="r_audio_input_name">Input</label>
<div class="controls"> <div class="controls">
<input type="text" name="input_name" id="input_name" placeholder="input" /> <input type="text" name="r_audio_input_name" id="r_audio_input_name" placeholder="input" />
</div> </div>
</div> </div>
<br/> <br/>
@ -17,9 +17,9 @@
<fieldset> <fieldset>
<legend>Audio track</legend> <legend>Audio track</legend>
<div class="form-group"> <div class="form-group">
<label class="control-label" for="subtitles_name">Audio track</label> <label class="control-label" for="r_audio_track_name">Audio track</label>
<div class="controls"> <div class="controls">
<input type="text" name="subtitles_name" id="subtitles_name" placeholder="audio.mp3" /> <input type="text" name="r_audio_track_name" id="r_audio_track_name" placeholder="subtitles" />
</div> </div>
</div> </div>
</fieldset> </fieldset>
@ -29,23 +29,22 @@
<fieldset> <fieldset>
<legend>Output</legend> <legend>Output</legend>
<div class="form-group"> <div class="form-group">
<label class="control-label" for="output_name">Output</label> <label class="control-label" for="r_audio_output_name">Output</label>
<div class="controls"> <div class="controls">
<input type="text" name="output_name" id="output_name" placeholder="output" /> <input type="text" name="r_audio_output_name" id="r_audio_output_name" placeholder="output" />
</div> </div>
</div> </div>
</fieldset> </fieldset>
<br/> <br/>
<fieldset> <fieldset>
<input type="button" class="btn btn-large btn-primary" name="add_subtitles_generate" id="add_subtitles_generate" value="Generate" /> <input type="button" class="btn btn-large btn-primary" name="remove_subtitles_generate" id="remove_audio_track_generate" value="Generate" />
</fieldset> </fieldset>
</div> </div>
<div class="well"> <div class="well">
<fieldset> <fieldset>
<legend>Your command line:</legend> <legend>Your command line:</legend>
<textarea name="subtitles_command_line" id="subtitles_command_line" rows="3" cols="100"></textarea> <textarea name="remove_audio_track_command_line" id="remove_audio_track_command_line" rows="3" cols="100"></textarea>
</fieldset> </fieldset>
</div> </div>
</div> <!-- container -->

View File

@ -24,7 +24,7 @@
<div id="show_add_audio_track">Add audio track (replace)</div> <div id="show_add_audio_track">Add audio track (replace)</div>
</li> </li>
<li> <li>
<div id="show_web"><s>Export for web</s></div> <div id="show_web">Export for web</div>
</li> </li>
</ul> </ul>
</fieldset> </fieldset>
@ -47,3 +47,5 @@
<%= render "add_audio_track" %> <%= render "add_audio_track" %>
</div> </div>
</div> </div>
</div> <!-- container -->

View File

@ -1,51 +0,0 @@
<div id="file_names">
<div class="well">
<fieldset>
<legend>Input</legend>
<div class="form-group">
<label class="control-label" for="r_audio_input_name">Input</label>
<div class="controls">
<input type="text" name="r_audio_input_name" id="r_audio_input_name" placeholder="input" />
</div>
</div>
<br/>
</fieldset>
</div>
</div>
<div class="well">
<fieldset>
<legend>Audio track</legend>
<div class="form-group">
<label class="control-label" for="r_audio_track_name">Audio track</label>
<div class="controls">
<input type="text" name="r_audio_track_name" id="r_audio_track_name" placeholder="subtitles" />
</div>
</div>
</fieldset>
</div>
<div class="well">
<fieldset>
<legend>Output</legend>
<div class="form-group">
<label class="control-label" for="r_audio_output_name">Output</label>
<div class="controls">
<input type="text" name="r_audio_output_name" id="r_audio_output_name" placeholder="output" />
</div>
</div>
</fieldset>
<br/>
<fieldset>
<input type="button" class="btn btn-large btn-primary" name="remove_subtitles_generate" id="remove_audio_track_generate" value="Generate" />
</fieldset>
</div>
<div class="well">
<fieldset>
<legend>Your command line:</legend>
<textarea name="remove_audio_track_command_line" id="remove_audio_track_command_line" rows="3" cols="100"></textarea>
</fieldset>
</div>
</div> <!-- container -->