<%= form.button id: :create_measurement_button, disabled: true -%>
<%= image_link_to t(:cancel), "close-outline", measurements_path, name: :cancel,
class: 'dangerous', onclick: render_turbo_stream('form_close') %>
diff --git a/app/views/quantities/_form.html.erb b/app/views/quantities/_form.html.erb
index 3597590..15686a1 100644
--- a/app/views/quantities/_form.html.erb
+++ b/app/views/quantities/_form.html.erb
@@ -9,7 +9,7 @@
<%= form.text_area :description, cols: 30, rows: 1, escape: false %>
-
+ |
<%= form.button %>
<%= image_link_to t(:cancel), "close-outline", quantities_path, class: 'dangerous',
name: :cancel, onclick: render_turbo_stream('form_close', {row: row}) %>
diff --git a/app/views/quantities/_quantity.html.erb b/app/views/quantities/_quantity.html.erb
index c3b14f6..43344e2 100644
--- a/app/views/quantities/_quantity.html.erb
+++ b/app/views/quantities/_quantity.html.erb
@@ -5,14 +5,14 @@
data: {drag_path: reparent_quantity_path(quantity), drop_id: dom_id(quantity),
drop_id_param: "quantity[parent_id]"} do %>
- |
- <%= link_to quantity, edit_quantity_path(quantity), onclick: 'this.blur();',
- data: {turbo_stream: true} %>
+ |
+ <%= link_to quantity, edit_quantity_path(quantity), class: 'link',
+ onclick: 'this.blur();', data: {turbo_stream: true} %>
|
<%= quantity.description %> |
<% if current_user.at_least(:active) %>
-
+ |
<%= image_link_to t('.new_subquantity'), 'plus-outline', new_quantity_path(quantity),
id: dom_id(quantity, :new, :link), onclick: 'this.blur();', data: {turbo_stream: true} %>
diff --git a/app/views/quantities/index.html.erb b/app/views/quantities/index.html.erb
index 9d9a1af..ecd3258 100644
--- a/app/views/quantities/index.html.erb
+++ b/app/views/quantities/index.html.erb
@@ -15,7 +15,7 @@
| <%= Quantity.human_attribute_name(:name) %> |
- <%= Quantity.human_attribute_name(:description) %> |
+ <%= Quantity.human_attribute_name(:description) %> |
<% if current_user.at_least(:active) %>
<%= t :actions %> |
|
diff --git a/app/views/readouts/_form.html.erb b/app/views/readouts/_form.html.erb
index bbb5c31..79d1293 100644
--- a/app/views/readouts/_form.html.erb
+++ b/app/views/readouts/_form.html.erb
@@ -4,17 +4,17 @@
<%# TODO: add grayed readout index (in separate column?) %>
<%= readout.quantity.relative_pathname(@superquantity) %>
+ <%= form.hidden_field :quantity_id %>
|
<%= form.number_field :value, required: true, autofocus: readout_counter == 0 %>
|
- <%= form.hidden_field :quantity_id %>
<%= form.collection_select :unit_id, @user_units, :id,
->(u){ sanitize(' ' * (u.base_id ? 1 : 0) + u.symbol) },
{prompt: '', disabled: '', selected: ''}, required: true %>
|
-
+ |
<%# TODO: change to _link_ after giving up displaying relative paths %>
<%= image_button_tag '', 'delete-outline', class: 'dangerous', name: nil,
formaction: discard_readouts_path(readout.quantity),
diff --git a/app/views/units/_form.html.erb b/app/views/units/_form.html.erb
index c419874..a5b1a3e 100644
--- a/app/views/units/_form.html.erb
+++ b/app/views/units/_form.html.erb
@@ -8,11 +8,11 @@
|
<%= form.text_area :description, cols: 30, rows: 1, escape: false %>
|
-
+ |
<%= form.number_field :multiplier, required: true, size: 10, min: :step if @unit.base_id? %>
|
-
+ |
<%= form.button %>
<%= image_link_to t(:cancel), "close-outline", units_path, class: 'dangerous',
name: :cancel, onclick: render_turbo_stream('form_close', {row: row}) %>
diff --git a/app/views/units/_unit.html.erb b/app/views/units/_unit.html.erb
index f332fdc..d5e726e 100644
--- a/app/views/units/_unit.html.erb
+++ b/app/views/units/_unit.html.erb
@@ -6,14 +6,15 @@
drop_id: dom_id(unit.base || unit),
drop_id_param: "unit[base_id]"} do %>
- |
- <%= link_to unit, edit_unit_path(unit), onclick: 'this.blur();', data: {turbo_stream: true} %>
+ |
+ <%= link_to unit, edit_unit_path(unit), class: 'link', onclick: 'this.blur();',
+ data: {turbo_stream: true} %>
|
<%= unit.description %> |
- <%= unit.multiplier.to_html %> |
+ <%= unit.multiplier.to_html %> |
<% if current_user.at_least(:active) %>
-
+ |
<% unless unit.base_id? %>
<%= image_link_to t('.new_subunit'), 'plus-outline', new_unit_path(unit),
id: dom_id(unit, :new, :link), onclick: 'this.blur();', data: {turbo_stream: true} %>
diff --git a/app/views/units/index.html.erb b/app/views/units/index.html.erb
index 417fab5..775fef8 100644
--- a/app/views/units/index.html.erb
+++ b/app/views/units/index.html.erb
@@ -14,7 +14,7 @@
| <%= Unit.human_attribute_name(:symbol) %> |
- <%= Unit.human_attribute_name(:description) %> |
+ <%= Unit.human_attribute_name(:description) %> |
<%= Unit.human_attribute_name(:multiplier) %> |
<% if current_user.at_least(:active) %>
<%= t :actions %> |
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index ccb438d..ac351b1 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -11,7 +11,7 @@
| |
<% @users.each do |user| %>
- | <%= link_to user, user_path(user) %> |
+ <%= link_to user, user_path(user), class: 'link' %> |
<% if user == current_user %>
<%= user.status %>
@@ -22,11 +22,11 @@
<% end %>
<% end %>
|
-
+ |
<%= svg_tag 'pictograms/checkbox-marked-outline' if user.confirmed_at.present? %>
|
<%= l user.created_at, format: :without_tz %> |
-
+ |
<% if allow_disguise?(user) %>
<%= image_link_to t('.disguise'), 'incognito', disguise_user_path(user) %>
<% end %>
diff --git a/app/views/users/unlocks/new.html.erb b/app/views/users/unlocks/new.html.erb
index 2f4fab8..71ac7e4 100644
--- a/app/views/users/unlocks/new.html.erb
+++ b/app/views/users/unlocks/new.html.erb
@@ -8,7 +8,7 @@
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
-
+
<%= f.submit "Resend unlock instructions" %>
<% end %>
|