little button work

This commit is contained in:
Torsten 2023-01-18 12:40:19 +02:00
parent ad22cf8aaf
commit 27e6d08e73
5 changed files with 15 additions and 13 deletions

View File

@ -25,7 +25,7 @@
%ul.space-y-4.text-sm %ul.space-y-4.text-sm
%li %li
%a.text-gray-700.transition.hover:opacity-75{:href => "/members"} %a.text-gray-700.transition.hover:opacity-75{:href => "/members"}
People Volunteers
.col-span-2.sm:col-span-1 .col-span-2.sm:col-span-1
%p.font-medium.text-gray-900 News %p.font-medium.text-gray-900 News
%nav.mt-6{"aria-label" => "Footer Navigation - Downloads"} %nav.mt-6{"aria-label" => "Footer Navigation - Downloads"}

View File

@ -13,7 +13,7 @@
.prose= markdown(@member.bio) .prose= markdown(@member.bio)
- if current_member == @member - if current_member == @member
.flex.justify-around .flex.justify-around.ml-20
= link_to edit_member_path(@member) do = link_to edit_member_path(@member) do
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400 %button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
Edit Edit

View File

@ -2,13 +2,8 @@
%div %div
%div %div
%h1 Editing story %h1 Editing story
= form_for @story do |f| = simple_form_for @story do |f|
- if @story.errors.any? = f.error_notification
#error_explanation
%h2= "#{pluralize(@story.errors.count, "error")} prohibited this story from being saved:"
%ul
- @story.errors.full_messages.each do |message|
%li= message
= f.input :picture , as: :file , label: (@story.picture.blank? ? "Add picture" : "Change picture") = f.input :picture , as: :file , label: (@story.picture.blank? ? "Add picture" : "Change picture")
= f.input :header = f.input :header

View File

@ -4,4 +4,7 @@
%br %br
= link_to 'New Story', new_story_path .flex.ml-20
= link_to new_story_path do
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
New Story

View File

@ -1,5 +1,9 @@
= render_story @story = render_story @story
= link_to 'Edit', edit_story_path(@story) .mx-20.flex.justify-between
\| = link_to edit_story_path(@story) do
= link_to 'Back', stories_path %button.mt-6.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
Edit
= link_to stories_path do
%button.mt-6.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
Back