Skip to content

Commit

Permalink
Merge branch 'master' of github.com:concerto/concerto
Browse files Browse the repository at this point in the history
  • Loading branch information
brzaik committed Jun 24, 2012
2 parents 19c3c4f + 3b3e98e commit e9ad212
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions app/controllers/templates_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def show
def new
@template = Template.new
@template.media.build
@type = params[:type] || 'import'

respond_to do |format|
format.html # new.html.erb
Expand Down
9 changes: 0 additions & 9 deletions app/views/templates/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@
<%= f.check_box :is_hidden %>
</div>
</div>

<div class="clearfix">
<%= f.label "Upload Background" %>
<div class="input">
<%= f.fields_for :media do |media| %>
<%= media.file_field :file %>
<% end %>
</div>
</div>
</fieldset>

<div class="submit_bar actions">
Expand Down
4 changes: 2 additions & 2 deletions app/views/templates/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
<section class="C no">
<header id="template-header">
<%= back_button "#", :back %>
<h1><%= (params[:type] || 'import').capitalize + " Template" %></h1>
<h1><%= @type.capitalize + " Template" %></h1>
</header>
<div class="C-cont">
<article>
<% if params[:type] == "create" %>
<% if @type == "create" %>
<%= render 'create_form' %>
<% else %>
<%= render 'import_form' %>
Expand Down

0 comments on commit e9ad212

Please sign in to comment.