Skip to content

Commit

Permalink
style modal
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcEgliP committed Feb 16, 2024
1 parent c7ae5e6 commit c93663b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
10 changes: 9 additions & 1 deletion app/assets/stylesheets/styles.scss
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
@import "bootstrap";
@import "bootstrap";

#skill_radar {
width: 50% !important;
}

#skill_portfolio {
width: 50% !important;
}
20 changes: 10 additions & 10 deletions app/views/skills/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
- @skill.errors.full_messages.each do |error|
%li= error
= form_with(model: @skill) do |f|
.mb-3
.mb-4.w-100
= f.label :title, class: "form-label"
= f.text_field :title, class: "form-control"
.mb-3
= f.label :kategorie, class: "form-label"
= f.collection_select :category_id, Category.all, :id, :title, {prompt: true}
.mb-3
= f.label :radar, class: "form-label"
= f.select :radar, Settings.radar
.mb-3
= f.label :portfolio, class: "form-label"
.mb-2.w-100
= f.label :kategorie, class: "form-label w-25"
= f.collection_select :category_id, Category.all, :id, :title, {prompt: true}, class: "w-50"
.mb-2.w-100
= f.label :radar, class: "form-label w-25"
= f.select :radar, Settings.radar
.mb-2.w-100
= f.label :portfolio, class: "form-label w-25"
= f.select :portfolio, Settings.portfolio

.mb-3
.mb-1.mt-4
= f.button class:"btn btn-primary","aria-label":"Close"
= link_to "Cancel", skills_path, class: "btn btn-outline-secondary"

0 comments on commit c93663b

Please sign in to comment.