|
| 1 | +<% content_for :body_layout_body_color, 'white' %> |
| 2 | +<% content_for :page_title, "Split Details: #{@split.name}" %> |
| 3 | + |
1 | 4 | <div class="TakeoverText"> |
2 | 5 | <h1 class="TakeoverText-title sc-m-v--l">Reassign Visitors to <%= @split.name %></h1> |
3 | 6 | </div> |
4 | 7 |
|
5 | | -<div class="InfoCard"> |
6 | | - <%= simple_form_for(@bulk_assignment_creation, url: admin_split_bulk_assignments_path) do |f| %> |
7 | | - <%= f.input :identifiers_listing, as: :text, label: 'IDs To Assign', :input_html => {:rows => 10} %> |
| 8 | +<%= simple_form_for(@bulk_assignment_creation, url: admin_split_bulk_assignments_path) do |f| %> |
| 9 | + <%= f.input :identifiers_listing, as: :text, label: 'IDs To Assign', :input_html => {:rows => 10} %> |
8 | 10 |
|
9 | | - <% if @bulk_assignment_creation.new_identifier_creation_ratio_above_warning_threshold? %> |
10 | | - <div id="identifier_creation_warning"> |
11 | | - <p> |
12 | | - <%= percentage @bulk_assignment_creation.new_identifier_creation_ratio %> |
13 | | - (<%= @bulk_assignment_creation.new_identifier_count %> of <%= @bulk_assignment_creation.total_identifiers_to_assign_count %>) |
14 | | - of the identifiers provided will be <em>created</em> as part of this operation. |
15 | | - <br> |
16 | | - That's unusual. Please verify that you selected the correct <strong>Identified By</strong> below |
17 | | - and double-check that the IDs listed above are correct. |
18 | | - Do you still wish to proceed? |
19 | | - </p> |
| 11 | + <% if @bulk_assignment_creation.new_identifier_creation_ratio_above_warning_threshold? %> |
| 12 | + <div id="identifier_creation_warning"> |
| 13 | + <p> |
| 14 | + <%= percentage @bulk_assignment_creation.new_identifier_creation_ratio %> |
| 15 | + (<%= @bulk_assignment_creation.new_identifier_count %> of <%= @bulk_assignment_creation.total_identifiers_to_assign_count %>) |
| 16 | + of the identifiers provided will be <em>created</em> as part of this operation. |
20 | 17 | <br> |
21 | | - </div> |
22 | | - <div class="sc-m-l--s"> |
23 | | - <%= f.input :force_identifier_creation, as: :boolean, label: 'YES', wrapper_html: { class: "has-error" } %> |
24 | | - </div> |
25 | | - <% end %> |
26 | | - <div class="IdentifierTypeSelection sc-m-v--s"> |
27 | | - <%= f.input :identifier_type_id, label: 'Identified By', collection: identifier_types, label_method: :name, value_method: :id, include_blank: true %> |
| 18 | + That's unusual. Please verify that you selected the correct <strong>Identified By</strong> below |
| 19 | + and double-check that the IDs listed above are correct. |
| 20 | + Do you still wish to proceed? |
| 21 | + </p> |
| 22 | + <br> |
28 | 23 | </div> |
29 | | - <div class="fs-VariantOptions"> |
30 | | - <%= f.input :variant, label: "To Variant", include_blank: false, collection: @split.variants, as: :radio_buttons %> |
| 24 | + <div class="sc-m-l--s"> |
| 25 | + <%= f.input :force_identifier_creation, as: :boolean, label: 'YES', wrapper_html: { class: "has-error" } %> |
31 | 26 | </div> |
32 | | - <%= f.input :reason, placeholder: "e.g. Turn FeatureX on" %> |
33 | | - |
34 | | - <%= render "shared/form_footer", f: f, submit_text: "Assign To Split", submit_disable_with_text: "Assigning..." %> |
35 | 27 | <% end %> |
36 | | -</div> |
| 28 | + <div class="IdentifierTypeSelection sc-m-v--s"> |
| 29 | + <%= f.input :identifier_type_id, label: 'Identified By', collection: identifier_types, label_method: :name, value_method: :id, include_blank: true %> |
| 30 | + </div> |
| 31 | + <div class="fs-VariantOptions"> |
| 32 | + <%= f.input :variant, label: "To Variant", include_blank: false, collection: @split.variants, as: :radio_buttons %> |
| 33 | + </div> |
| 34 | + <%= f.input :reason, placeholder: "e.g. Turn FeatureX on" %> |
| 35 | + |
| 36 | + <%= render "shared/form_footer", f: f, submit_text: "Assign To Split", submit_disable_with_text: "Assigning..." %> |
| 37 | +<% end %> |
0 commit comments