mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2025-10-27 15:08:11 +01:00
upgraded to rails
This commit is contained in:
17
app/views/forms/_form.html.erb
Normal file
17
app/views/forms/_form.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<%= form_for(@form) do |f| %>
|
||||
<% if @form.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(@form.errors.count, "error") %> prohibited this form from being saved:</h2>
|
||||
|
||||
<ul>
|
||||
<% @form.errors.full_messages.each do |message| %>
|
||||
<li><%= message %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
6
app/views/forms/edit.html.erb
Normal file
6
app/views/forms/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing form</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @form %> |
|
||||
<%= link_to 'Back', forms_path %>
|
||||
72
app/views/forms/index.html.erb
Normal file
72
app/views/forms/index.html.erb
Normal file
@@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>ffmproviser</title>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="assets/bootstrap.min.css">
|
||||
<link href="assets/jquery.steps.css" rel="stylesheet" >
|
||||
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="assets/forms.js"></script>
|
||||
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
|
||||
</head>
|
||||
|
||||
<div class="container">
|
||||
<h1>➺ ffmproviser ❥</h1>
|
||||
|
||||
<!-- form begins -->
|
||||
|
||||
<div class="well">
|
||||
<fieldset>
|
||||
<legend>First form</legend>
|
||||
<!-- First we need a select question option... form or not? -->
|
||||
<h4>What is your question?</h4>
|
||||
<ul>
|
||||
<li>Display info</li>
|
||||
<li>Export for web</li>
|
||||
<li>Add subtitles track</li>
|
||||
<li>Remove audio track</li>
|
||||
<li>Add audio track</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="file_names">
|
||||
<div class="well">
|
||||
<fieldset>
|
||||
<legend>Input and Output</legend>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="input_name">Input</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="input_name" id="input_name" placeholder="input" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="output_name">Output</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="output_name" id="output_name" placeholder="output" />
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<input type="button" class="btn btn-large btn-primary" name="generate" id="generate" value="Generate" />
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="well">
|
||||
<fieldset>
|
||||
<legend>Your command line:</legend>
|
||||
<textarea name="command_line" id="command_line" rows="3" cols="100"></textarea>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
</div> <!-- container -->
|
||||
|
||||
<div class="footer">
|
||||
<p>Made with ♥ by <a href="http://www.ashleyblewer.com">Ashley Blewer</a></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
4
app/views/forms/index.json.jbuilder
Normal file
4
app/views/forms/index.json.jbuilder
Normal file
@@ -0,0 +1,4 @@
|
||||
json.array!(@forms) do |form|
|
||||
json.extract! form, :id
|
||||
json.url form_url(form, format: :json)
|
||||
end
|
||||
5
app/views/forms/new.html.erb
Normal file
5
app/views/forms/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New form</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', forms_path %>
|
||||
4
app/views/forms/show.html.erb
Normal file
4
app/views/forms/show.html.erb
Normal file
@@ -0,0 +1,4 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<%= link_to 'Edit', edit_form_path(@form) %> |
|
||||
<%= link_to 'Back', forms_path %>
|
||||
1
app/views/forms/show.json.jbuilder
Normal file
1
app/views/forms/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.extract! @form, :id, :created_at, :updated_at
|
||||
Reference in New Issue
Block a user