Gui kosmetik
Some checks failed
/ Run tests (push) Failing after 1m10s
/ Run system tests (push) Failing after 1m15s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-11-01 04:47:56 +01:00
parent fd2a166025
commit 823284d6ba
5 changed files with 29 additions and 19 deletions

View file

@ -12,10 +12,11 @@
</i> </i>
<% end %> <% end %>
</div> </div>
<div class=""> <% if element.description %>
<div class="mb-3">
<%= element.description %> <%= element.description %>
</div> </div>
<% end %>
<% end %> <% end %>

View file

@ -1,4 +1,4 @@
<%= bootstrap_form_with(model: element.persisted? ? element : [:page, element]) do |form| %> <%= bootstrap_form_with(model: element.persisted? ? element : [:page, element], class: "mb-3") do |form| %>
<%= form.hidden_field :page_id %> <%= form.hidden_field :page_id %>
<%= form.text_field :title %> <%= form.text_field :title %>
<%= form.rich_text_area :description %> <%= form.rich_text_area :description %>

View file

@ -1,10 +0,0 @@
<h1>a11ydive</h1>
<h2>Dashboard</h1>
<p>
<i class="bi bi-journal-text"></i>
<%= Report.count %>
<%= link_to Report.model_name.human(count: Report.count), :reports %>
</p>

View file

@ -0,0 +1,13 @@
h1 a11ydive
h2 Dashboard
- if Report.any?
h3 Zuletzt bearbeitete Prüfberichte
ul
- Report.all.order(updated_at: :desc).limit(3).each do |r|
li = link_to(r.name, r)
p
i.bi.bi-journal-text
=< Report.count
=< link_to Report.model_name.human(count: Report.count), :reports

View file

@ -27,11 +27,17 @@
</div> </div>
</div> </div>
<% end %> <% end %>
<%= success_criterion.quick_criterion %> <div class="mb-2">
<%= success_criterion.quick_fail %> <%= success_criterion.quick_criterion %>
<%= success_criterion.quick_fix %> </div>
<div class="mb-2">
<%= success_criterion.quick_fail %>
</div>
<div class="">
<%= success_criterion.quick_fix %>
</div>
<% if success_criterion.test_comment.present? %> <% if success_criterion.test_comment.present? %>
<div class="comment"><%= success_criterion.test_comment %></div> <div class="comment mt-2 mb-0"><%= success_criterion.test_comment %></div>
<% end %> <% end %>
</div> </div>
</div> </div>