Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
37 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,7 @@ | |
background-color: #8c1515; | ||
color: white; | ||
} | ||
|
||
abbr[title], abbr[data-original-title] { | ||
text-decoration: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,25 @@ | ||
<h3>Complete the YAML form below</h3> | ||
<%= form_with model: @bundle_context, local: true do |form| %> | ||
<%if @bundle_context.errors.any? %> | ||
<h3 class="text-danger">ERRORS</h3> | ||
<% end %> | ||
<div class="row"> | ||
<div class="col-5"> | ||
<%= form.fields_for :job_runs do |jt| %> | ||
<%= jt.label :job_type %> | ||
<%= jt.select(:job_type, [["Pre Assembly Run", "preassembly"],["Discovery Report", "discovery_report"]]) %> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-5"> | ||
<%= form.label :project_name %> | ||
<%if @bundle_context.errors.include?(:project_name)%> | ||
<% style = "form_control is-invalid" %> | ||
|
||
<div class="invalid-feedback"> | ||
<h1> HELLO </h1> | ||
<%= @bundle_context.errors.full_messages_for(:project_name).first %> | ||
</div> | ||
<% else %> | ||
<% style = "form_control" %> | ||
<% end %> | ||
<%= form.text_field :project_name, class: style %> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-5"> | ||
<%= form.label :content_structure, "Content Structure" %> | ||
<%= form.select :content_structure, options_for_select([ | ||
['Simple Image', 'simple_image'], | ||
['Simple Book', 'simple_book'], | ||
['Book as Image','book_as_image'], | ||
['File', 'file'], | ||
['SMPL', 'smpl'] | ||
]), class: "form-control" %> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-5"> | ||
<%= form.label :bundle_dir, "Bundle Directory" %> | ||
<%if @bundle_context.errors.include?(:bundle_dir) %> | ||
<%= form.text_field :bundle_dir, class: "form-control is-invalid" %> | ||
<div class="invalid-feedback"> | ||
<h1>HELLO</h1> | ||
<%= @bundle_context.errors.full_messages_for(:bundle_dir).first %> | ||
</div> | ||
<% else %> | ||
<%= form.text_field :bundle_dir, class: "form-control" %> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-5"> | ||
<%= form.label :staging_style_symlink, "Staging Style Symlink?" %> | ||
<%= form.check_box :staging_style_symlink, class: "form-control" %> | ||
</div> | ||
</div> | ||
<div class="row mt-2"> | ||
<div class="col-5"> | ||
<%= form.label :content_metadata_creation %> | ||
<%= form.select :content_metadata_creation, options_for_select([ | ||
["Default", "default"], | ||
|
||
<%= simple_form_for(@bundle_context) do |form| %> | ||
<%= form.simple_fields_for :job_runs do |jt| %> | ||
<%= jt.input :job_type, collection: [["Pre Assembly Run", "preassembly"],["Discovery Report", "discovery_report"]] %> | ||
<% end %> | ||
<%= form.input :project_name %> | ||
<%= form.input :content_structure, collection: [['Simple Image', 'simple_image'], | ||
['Simple Book', 'simple_book'], | ||
['Book as Image','book_as_image'], | ||
['File', 'file'], | ||
['SMPL', 'smpl']] %> | ||
<%= form.input :bundle_dir %> | ||
<%= form.input :staging_style_symlink %> | ||
<%= form.input :content_metadata_creation, collection: [["Default", "default"], | ||
["Filename", "filename"], | ||
["SMPL", "smpl_cm_style"] | ||
]), class: "form-control" %> | ||
</div> | ||
</div> | ||
<div class="row mt-3"> | ||
<div class="col-2 ml-5"> | ||
<%= submit_tag("Submit", class: "form-control btn-sul-dlss") %> | ||
</div> | ||
</div> | ||
["SMPL", "smpl_cm_style"]] %> | ||
<%= form.button :submit, class: "btn-sul-dlss" %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters