diff --git a/app/views/samples/_spectrum_panel.html.erb b/app/views/samples/_spectrum_panel.html.erb
index 0b7828d..7a2b3e8 100644
--- a/app/views/samples/_spectrum_panel.html.erb
+++ b/app/views/samples/_spectrum_panel.html.erb
@@ -6,21 +6,21 @@
-
-
- <%= ApplicationHelper.humanize_range spectrum.range %>
+
+
+ <%= ApplicationHelper.humanize_category spectrum.category %>
-
+
·
-
- <%= ApplicationHelper.humanize_category spectrum.category %>
+
+ <%= ApplicationHelper.humanize_file_format spectrum.format %>
-
+
·
-
- <%= ApplicationHelper.humanize_file_format spectrum.format %>
+
+ id: <%= spectrum.id %>
diff --git a/app/views/samples/show.html.erb b/app/views/samples/show.html.erb
index e31fef6..41646ef 100644
--- a/app/views/samples/show.html.erb
+++ b/app/views/samples/show.html.erb
@@ -59,6 +59,19 @@
<%= spectrum.file.filename.to_s.truncate(20) %>
+ <% if spectrum.is_reference? %>
+
+ <%= render TooltipComponent.new(tooltip: "Reference", user: current_user) do %>
+
+ <% end %>
+
+ <% end %>
<% end %>
diff --git a/app/views/spectra/edit.html.erb b/app/views/spectra/edit.html.erb
index 6274a70..7ffd4bc 100644
--- a/app/views/spectra/edit.html.erb
+++ b/app/views/spectra/edit.html.erb
@@ -24,6 +24,16 @@
<%= f.input :category, default: @spectrum.category, collection: SpectraHelper::HUMANIZED_CATEGORIES_COLLECTION, input_html: { class: "w-full p-4 pr-6 text-sm border-gray-300 rounded-md shadow-sm focus:ring-1 focus:ring-primary-500 focus:border-primary-600 peer" }, hint: false, label: false %>
+
+ <%= render Forms::LabelComponent.new(optional: true).with_content("Sample thickness (mm)") %>
+ <%= f.input :sample_thickness, as: :float, input_html: { class: "w-full p-4 pr-6 text-sm border-gray-300 rounded-md shadow-sm focus:ring-1 focus:ring-primary-500 focus:border-primary-600", min: 0, step: 0.1 }, error_html: { data: { controller: 'flash', 'flash-target': 'flash' } }, placeholder: "3.61", required: false, disabled: false, readonly: false, hint: false, label: false, error: false %>
+
+
+
+ <%= f.input :is_reference, default: false, input_html: { class: "w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500" } %>
+ <%= render Forms::LabelComponent.new(optional: true, cls: "!mb-0").with_content("Reference spectrum") %>
+
+
<%= render Forms::LabelComponent.new().with_content("Description") %>
<%= render Forms::TextInputComponent.new(form: f, as: :rich_text_area, field: :description, required: false, placeholder: "General description") %>
diff --git a/app/views/spectra/new.html.erb b/app/views/spectra/new.html.erb
index 0e79d9a..8360520 100644
--- a/app/views/spectra/new.html.erb
+++ b/app/views/spectra/new.html.erb
@@ -24,6 +24,16 @@
<%= f.input :category, default: @spectrum.category, collection: SpectraHelper::HUMANIZED_CATEGORIES_COLLECTION, input_html: { class: "w-full p-4 pr-6 text-sm border-gray-300 rounded-md shadow-sm focus:ring-1 focus:ring-primary-500 focus:border-primary-600 peer" }, hint: false, label: false %>
+
+ <%= render Forms::LabelComponent.new(optional: true).with_content("Sample thickness (mm)") %>
+ <%= f.input :sample_thickness, as: :float, input_html: { class: "w-full p-4 pr-6 text-sm border-gray-300 rounded-md shadow-sm focus:ring-1 focus:ring-primary-500 focus:border-primary-600", min: 0.1, step: 0.1 }, error_html: { data: { controller: 'flash', 'flash-target': 'flash' } }, placeholder: "3.61", required: false, disabled: false, readonly: false, hint: false, label: false, error: false %>
+
+
+
+ <%= f.input :is_reference, default: false, input_html: { class: "w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500" } %>
+ <%= render Forms::LabelComponent.new(optional: true, cls: "!mb-0").with_content("Reference spectrum") %>
+
+
<%= render Forms::LabelComponent.new().with_content("Description") %>
<%= render Forms::TextInputComponent.new(form: f, as: :rich_text_area, field: :description, required: false, placeholder: "General description") %>