From 925c7af1c93692d77eced0c7c4bc3de9db684c7c Mon Sep 17 00:00:00 2001 From: ablwr Date: Mon, 4 Aug 2014 14:26:05 -0400 Subject: [PATCH] latest form builds trying to abstract --- app/assets/javascripts/forms.js | 7 ++++++- app/views/forms/_display.html.erb | 24 ++++++++++++++++++++++++ app/views/forms/index.html.erb | 18 ++++++++++-------- 3 files changed, 40 insertions(+), 9 deletions(-) create mode 100644 app/views/forms/_display.html.erb diff --git a/app/assets/javascripts/forms.js b/app/assets/javascripts/forms.js index cb0ed6f..8ff14ee 100644 --- a/app/assets/javascripts/forms.js +++ b/app/assets/javascripts/forms.js @@ -6,4 +6,9 @@ $(document).ready(function() { " -o " + $('#output_name').val()) }); -}); + $('#display_generate').click(function(){ + $('#display_command_line').val("ffmpeg" + + " -i " + $('#input_name').val()) + }); + +}); \ No newline at end of file diff --git a/app/views/forms/_display.html.erb b/app/views/forms/_display.html.erb new file mode 100644 index 0000000..f95eef8 --- /dev/null +++ b/app/views/forms/_display.html.erb @@ -0,0 +1,24 @@ +
+
+
+ Input +
+ +
+ +
+
+
+ +
+
+
+ +
+
+ Your command line: + +
+
+ + \ No newline at end of file diff --git a/app/views/forms/index.html.erb b/app/views/forms/index.html.erb index 9ad584e..986dfbc 100644 --- a/app/views/forms/index.html.erb +++ b/app/views/forms/index.html.erb @@ -7,9 +7,11 @@
First form -

What is your question?

+

What do you want to do?