Skip to content

Commit

Permalink
BundleContext controller now uses bundle_context_params in new
Browse files Browse the repository at this point in the history
  • Loading branch information
jermnelson committed Sep 13, 2018
1 parent 7d0cba5 commit 83f148d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
6 changes: 1 addition & 5 deletions app/controllers/bundle_context_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ def index
end

def create
@bundle_context = BundleContext.create
@bundle_context.project_name = bundle_context_params[:project_name]
@bundle_context.content_structure = bundle_context_params[:content_structure]
@bundle_context.content_metadata_creation = bundle_context_params[:content_metadata_creation]
@bundle_context.bundle_dir = bundle_context_params[:bundle_dir]
@bundle_context = BundleContext.new(bundle_context_params)

# TODO: ticket #270 user should be authenticated as saved in AR
user = User.create(sunet_id: 'temp')
Expand Down
16 changes: 8 additions & 8 deletions app/views/bundle_context/_yaml_form.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
<div class="col-5">
<%= label_tag :content_structure, "Content Structure" %>
<%= select_tag :content_structure, options_for_select([
['Simple Image', 'simple_image_structure'],
['Simple Book', 'simple_book_structure'],
['Book as Image','book_as_image_structure'],
['File', 'file_structure'],
['SMPL', 'smpl_structure']
['Simple Image', 'simple_image'],
['Simple Book', 'simple_book'],
['Book as Image','book_as_image'],
['File', 'file'],
['SMPL', 'smpl']
]), class: "form-control" %>
</div>
</div>
Expand All @@ -60,9 +60,9 @@
<div class="col-5">
<%= label_tag :content_metadata_creation %>
<%= select_tag :content_metadata_creation, options_for_select([
["Default", "default_style"],
["Filename", "filename_style"],
["SMPL", "smpl_style"]
["Default", "default"],
["Filename", "filename"],
["SMPL", "smpl_cm_style"]
]), class: "form-control" %>
</div>
</div>
Expand Down

0 comments on commit 83f148d

Please sign in to comment.