Prod build process
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
<div class="bg-deepcove h-full w-full flex flex-col">
|
||||
<div class="flex items-center">
|
||||
<%= link_to employer_path(@employer.slug), class: "flex items-center h-14 space-x" do %>
|
||||
<div class="flex items-center h-14 text-bluemana hover:text-bronze">
|
||||
<%= icon "arrow-big-left-dash", library: "lucide", class: "h-full w-20 text-center" %>
|
||||
<div class="w-full pb-1 font-bold text-2xl">
|
||||
<%= "Back to Employer" %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="flex space-x-6 my-5 font-bold text-4xl">
|
||||
<h1 class="text-platinum">ID Card Exceptions:</h1>
|
||||
<h1 class="text-platinum">Alternate ID Cards:</h1>
|
||||
<h1 class="text-atmosphere">(<%= @employer.name %>)</h1>
|
||||
</div>
|
||||
<div class="flex flex-col">
|
||||
@@ -12,16 +22,22 @@
|
||||
<div class="flex flex-col pr-6 w-1/2">
|
||||
<div class="flex justify-between items-end w-full pb-2">
|
||||
<div class="w-[48%]">
|
||||
<%= exception_fields.select :exception_type, options_for_select(IdCard::FieldException::VALID_TYPES.map { |type| [type.titleize(keep_id_suffix: true), type]}, exc.exception_type), { label: { text: "Exception Based On" }, prompt: "Select Type", class: "w-full" }, data: { add_exception_target: "exception" } %>
|
||||
<%= exception_fields.select :exception_type, options_for_select(IdCard::FieldException::VALID_TYPES.map { |type| [type.titleize(keep_id_suffix: true), type]}, exc.exception_type), { label: { text: "Alternate ID Card Determined By" }, prompt: "Select Type", class: "w-full" }, data: { add_exception_target: "exception" } %>
|
||||
</div>
|
||||
<div class="w-[48%]">
|
||||
<%= exception_fields.text_field :exception_values, value: exc.exception_values.join(', '), label: { text: "Exception Values" }, class: "w-full" %>
|
||||
<%= exception_fields.text_field :exception_values, value: exc.exception_values.join(', '), label: { text: "Alternate ID Card Determination Value(s)" }, class: "w-full" %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-xl text-left font-bold mb-[-4px] z-1 text-platinum">
|
||||
Field Exception Items
|
||||
<div class="flex flex-none items-center w-full pt-4 z-1">
|
||||
<div class="flex flex-none text-xl text-left font-bold <%= "text-#{IdCard::Setup::FORM_COLORS[index]}" %>">
|
||||
Alternate ID Card Change Items
|
||||
</div>
|
||||
<div class="grow h-[1px] mt-2 mx-1 <%= "bg-#{IdCard::Setup::FORM_COLORS[index]}" %>"></div>
|
||||
<div class="flex flex-none text-xl text-left font-bold text-platinum">
|
||||
(Changes to Employer Default Card)
|
||||
</div>
|
||||
<div class="flex flex-none w-3 h-[1px] mt-2 mx-1 <%= "bg-#{IdCard::Setup::FORM_COLORS[index]}" %>"></div>
|
||||
</div>
|
||||
<div class="w-full h-[3px] rounded-r bg-NEXT_COLOR ml-[1px] mb-1"></div>
|
||||
<div class="flex flex-col w-full justify-start" data-controller="add-exception-item">
|
||||
<%= exception_fields.fields_for :field_exception_items do |exception_item_fields| %>
|
||||
<div class="flex justify-between items-start w-full" data-controller="exceptions-toggle">
|
||||
@@ -41,7 +57,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= button_tag "Add Another Item To Exception", class: "cursor-pointer bg-NEXT_COLOR hover:bg-deepcove text-xl font-bold text-platinum my-3 py-1 font-semibold leading-tight rounded border-3 border-NEXT_COLOR w-full", data: { action: "add-exception-item#addExemptionItem", add_exception_item_target: "exceptionItemButton" } %>
|
||||
<%= button_tag "Add Another Alternate ID Card Change Item", class: "cursor-pointer bg-#{IdCard::Setup::FORM_COLORS[index]} hover:bg-deepcove text-xl font-bold text-platinum my-3 py-1 font-semibold leading-tight rounded border-3 border-#{IdCard::Setup::FORM_COLORS[index]} w-full", data: { action: "add-exception-item#addExemptionItem", add_exception_item_target: "exceptionItemButton" } %>
|
||||
<template data-add-exception-item-target="exceptionItemTemplate">
|
||||
<%= exception_fields.fields_for :field_exception_items, IdCard::FieldExceptionItem.new, child_index: 'NEW_ITEM_RECORD' do |exception_item_fields| %>
|
||||
<div class="flex justify-between items-start w-full" data-controller="exceptions-toggle">
|
||||
@@ -66,24 +82,30 @@
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= button_tag "Add an Exception", class: "cursor-pointer text-lg font-medium py-2 px-4 rounded w-1/2 min-h-[340px] mt-3 text-[#E0E0E0] rounded-lg border border-[#C2C2C2] hover:shadow-[0_0_10px_3px_#93c5fd]", data: { action: "add-exception#addExemption", add_exception_target: "exceptionButton" } %>
|
||||
<%= button_tag "Add an Alternate ID Card", class: "cursor-pointer text-lg font-medium py-2 px-4 rounded w-1/2 min-h-[340px] mt-3 text-[#E0E0E0] rounded-lg border border-[#C2C2C2] hover:shadow-[0_0_10px_3px_#93c5fd]", data: { action: "add-exception#addExemption", add_exception_target: "exceptionButton" } %>
|
||||
<template data-add-exception-target="exceptionTemplate">
|
||||
<%= f.fields_for :field_exceptions, @setup.field_exceptions.build, child_index: 'NEW_RECORD' do |exception_fields| %>
|
||||
<div class="flex flex-col pr-6 w-1/2 pl-1">
|
||||
<div class="flex justify-between items-end w-full pb-2">
|
||||
<div class="w-[48%]">
|
||||
<%= exception_fields.select :exception_type, options_for_select(IdCard::FieldException::VALID_TYPES.map { |type| [type.titleize(keep_id_suffix: true), type] }), { label: { text: "Exception Based On" }, prompt: "Select Type", class: "w-full" }, data: { add_exception_target: "exception" } %>
|
||||
<%= exception_fields.select :exception_type, options_for_select(IdCard::FieldException::VALID_TYPES.map { |type| [type.titleize(keep_id_suffix: true), type] }), { label: { text: "Alternate ID Card Determined By" }, prompt: "Select Type", class: "w-full" }, data: { add_exception_target: "exception" } %>
|
||||
</div>
|
||||
<div class="w-[48%]">
|
||||
<%= exception_fields.text_field :exception_values, label: { text: "Exception Values" }, class: "w-full" %>
|
||||
<%= exception_fields.text_field :exception_values, label: { text: "Alternate ID Card Determination Value(s)" }, class: "w-full" %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-xl text-left font-bold mb-[-4px] z-1 text-platinum">
|
||||
Field Exception Items
|
||||
<div class="flex flex-none items-center w-full pt-4 z-1">
|
||||
<div class="flex flex-none text-xl text-left font-bold text-NEXT_COLOR">
|
||||
Alternate ID Card Change Items
|
||||
</div>
|
||||
<div class="grow h-[1px] mt-2 mx-1 bg-NEXT_COLOR"></div>
|
||||
<div class="flex flex-none text-xl text-left font-bold text-platinum">
|
||||
(Changes to Employer Default Card)
|
||||
</div>
|
||||
<div class="flex flex-none w-3 h-[1px] mt-2 mx-1 bg-NEXT_COLOR"></div>
|
||||
</div>
|
||||
<div class="w-full h-[3px] rounded-r bg-NEXT_COLOR ml-[1px] mb-1"></div>
|
||||
<div class="flex flex-col w-full justify-start" data-controller="add-exception-item">
|
||||
<%= button_tag "Add Another Item To Exception", class: "cursor-pointer bg-NEXT_COLOR hover:bg-deepcove text-xl font-bold text-platinum my-3 py-1 font-semibold leading-tight rounded border-3 border-NEXT_COLOR w-full", data: { action: "add-exception-item#addExemptionItem", add_exception_item_target: "exceptionItemButton" } %>
|
||||
<%= button_tag "Add Alternate ID Card Change Item", class: "cursor-pointer bg-NEXT_COLOR hover:bg-deepcove text-xl font-bold text-platinum my-3 py-1 font-semibold leading-tight rounded border-3 border-NEXT_COLOR w-full", data: { action: "add-exception-item#addExemptionItem", add_exception_item_target: "exceptionItemButton" } %>
|
||||
<template data-add-exception-item-target="exceptionItemTemplate">
|
||||
<%= exception_fields.fields_for :field_exception_items, IdCard::FieldExceptionItem.new, child_index: 'NEW_ITEM_RECORD' do |exception_item_fields| %>
|
||||
<div class="flex justify-between items-start w-full" data-controller="exceptions-toggle">
|
||||
@@ -110,8 +132,8 @@
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
<div class="py-8">
|
||||
<%= f.submit "Submit Network" %>
|
||||
<div class="flex space-x-3 py-8">
|
||||
<%= f.submit "Save Alternate ID Cards" %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user