- <% english_auction_presenter = EnglishBidsPresenter.new(auction) %>
-
- <%= link_to auction_path(auction.uuid), target: '_top' do %>
- <%= domain_name_with_embedded_colors(auction.domain_name) %>
+ |
+
+ <% english_auction_presenter = EnglishBidsPresenter.new(auction) %>
+
+
+ <%= link_to auction_path(auction.uuid), target: '_top', style: 'color: black; font-weight: bold; text-decoration: none;' do %>
+ <%= domain_name_with_embedded_colors(auction.domain_name) %>
+ <% end %>
+ |
+
+
+ <% if auction.english? %>
+ IO
+ <% else %>
+ PO
+ <% end %>
+ |
+
+ 25-01-2023 | 23:59:59 |
+
+
+ <% if auction.english? %>
+ <%= english_auction_presenter.maximum_bids %> €
+ <% else %>
+ <%= auction.users_price %> €
+ <% end %>
+ |
+
+ <% if auction.english? %>
+
+ <%= english_auction_presenter.bidder_name(auction.currently_winning_offer, current_user) %>
+ |
+ <% else %>
+
+ <% if auction.users_offer_uuid %>
+ Sinu pakkumus
<% end %>
- |
-
- <%= t('auctions.ends_at') %>
- <%= I18n.l(auction.ends_at) %>
- |
-
- <%= t('auctions.auction_type') %>
- <%= t("auctions.#{auction.platform&.downcase.presence || 'blind'}") %>
- |
-
- <% if auction.platform == 'blind' || auction.platform.nil? %>
- <%= t('auctions.your_current_price') %>: <%= auction.users_price %>
- <% else %>
- <%= t('auctions.your_current_price') %>:
- <%= english_auction_presenter.maximum_bids %>
- <% end %>
- |
-
- <% if auction.platform != 'blind' && !auction.platform.nil? %>
- <%= english_auction_presenter.bidder_name(auction.currently_winning_offer, user) %>
- <% end %>
- |
-
- <%= auction.decorate.auction_offer_button(user) %>
- |
+
+ <% end %>
+
+
+ <% if auction.english? %>
+
+ <% if auction.users_offer_uuid %>
+
+ <%= link_to edit_english_offer_path(auction.users_offer_uuid), class: "c-btn c-btn--ghost c-btn--icon", title: "Edit" do %>
+
+ <% end %>
+
+ <% else %>
+ <%= link_to 'Esita pakkumus', new_auction_english_offer_path(auction_uuid: auction.uuid), class: "c-btn c-btn--green" %>
+ <% end %>
+
+ <% else %>
+
+ <% if auction.users_offer_uuid %>
+
+ <%= link_to edit_offer_path(auction.users_offer_uuid), class: "c-btn c-btn--ghost c-btn--icon", title: "Edit" do %>
+
+ <% end %>
+
+ <%= link_to '#', class: "c-btn c-btn--ghost c-btn--icon", title: "Delete" do %>
+
+ <% end %>
+
+ <% else %>
+ <%= link_to 'Esita pakkumus', new_auction_offer_path(auction_uuid: auction.uuid), class: "c-btn c-btn--green" %>
+ <% end %>
+
+ <% end %>
+ |
diff --git a/app/views/auctions/deprecated/_auction.html.erb b/app/views/auctions/deprecated/_auction.html.erb
new file mode 100644
index 000000000..44e112854
--- /dev/null
+++ b/app/views/auctions/deprecated/_auction.html.erb
@@ -0,0 +1,32 @@
+
+ <% english_auction_presenter = EnglishBidsPresenter.new(auction) %>
+
+ <%= link_to auction_path(auction.uuid), target: '_top' do %>
+ <%= domain_name_with_embedded_colors(auction.domain_name) %>
+ <% end %>
+ |
+
+ <%= t('auctions.ends_at') %>
+ <%= I18n.l(auction.ends_at) %>
+ |
+
+ <%= t('auctions.auction_type') %>
+ <%= t("auctions.#{auction.platform&.downcase.presence || 'blind'}") %>
+ |
+
+ <% if auction.platform == 'blind' || auction.platform.nil? %>
+ <%= t('auctions.your_current_price') %>: <%= auction.users_price %>
+ <% else %>
+ <%= t('auctions.your_current_price') %>:
+ <%= english_auction_presenter.maximum_bids %>
+ <% end %>
+ |
+
+ <% if auction.platform != 'blind' && !auction.platform.nil? %>
+ <%= english_auction_presenter.bidder_name(auction.currently_winning_offer, user) %>
+ <% end %>
+ |
+
+ <%= auction.decorate.auction_offer_button(user) %>
+ |
+
diff --git a/app/views/auctions/_bottom_grid.html.erb b/app/views/auctions/deprecated/_bottom_grid.html.erb
similarity index 100%
rename from app/views/auctions/_bottom_grid.html.erb
rename to app/views/auctions/deprecated/_bottom_grid.html.erb
diff --git a/app/views/auctions/_english_bottom_grid.html.erb b/app/views/auctions/deprecated/_english_bottom_grid.html.erb
similarity index 100%
rename from app/views/auctions/_english_bottom_grid.html.erb
rename to app/views/auctions/deprecated/_english_bottom_grid.html.erb
diff --git a/app/views/auctions/_top_grid.html.erb b/app/views/auctions/deprecated/_top_grid.html.erb
similarity index 100%
rename from app/views/auctions/_top_grid.html.erb
rename to app/views/auctions/deprecated/_top_grid.html.erb
diff --git a/app/views/auctions/index2.html.erb b/app/views/auctions/deprecated/index.html.erb
similarity index 99%
rename from app/views/auctions/index2.html.erb
rename to app/views/auctions/deprecated/index.html.erb
index 74091d421..64dfbd00d 100644
--- a/app/views/auctions/index2.html.erb
+++ b/app/views/auctions/deprecated/index.html.erb
@@ -27,6 +27,7 @@
turbo_frame: "auction_list",
action: 'input->debounce#search'
}, class: 'ui form field' do |f| %>
+
<%= f.search_field :domain_name, value: params[:domain_name], placeholder: t('search_by_domain_name'), class: 'prompt' %>
@@ -38,6 +39,7 @@
<%= daily_summary_link %>
+
<%= f.label :type, t('auctions.index.select_type') %>
@@ -48,6 +50,7 @@
<%= f.select :auction_offer_type, [[t('auctions.index.with_offers'), 'with_offers'], [t('auctions.index.without_offers'), 'without_offers']], { include_blank: t(:all) }, { class: '' } %>
+
<% end %>
@@ -64,6 +67,7 @@
data-english-offers-english-text-value="<%= t('auctions.english') %>"
data-english-offers-blind-text-value="<%= t('auctions.blind') %>">