little button work
This commit is contained in:
parent
ad22cf8aaf
commit
27e6d08e73
@ -25,7 +25,7 @@
|
||||
%ul.space-y-4.text-sm
|
||||
%li
|
||||
%a.text-gray-700.transition.hover:opacity-75{:href => "/members"}
|
||||
People
|
||||
Volunteers
|
||||
.col-span-2.sm:col-span-1
|
||||
%p.font-medium.text-gray-900 News
|
||||
%nav.mt-6{"aria-label" => "Footer Navigation - Downloads"}
|
||||
|
@ -13,7 +13,7 @@
|
||||
.prose= markdown(@member.bio)
|
||||
|
||||
- if current_member == @member
|
||||
.flex.justify-around
|
||||
.flex.justify-around.ml-20
|
||||
= 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
|
||||
Edit
|
||||
|
@ -2,13 +2,8 @@
|
||||
%div
|
||||
%div
|
||||
%h1 Editing story
|
||||
= form_for @story do |f|
|
||||
- if @story.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@story.errors.count, "error")} prohibited this story from being saved:"
|
||||
%ul
|
||||
- @story.errors.full_messages.each do |message|
|
||||
%li= message
|
||||
= simple_form_for @story do |f|
|
||||
= f.error_notification
|
||||
|
||||
= f.input :picture , as: :file , label: (@story.picture.blank? ? "Add picture" : "Change picture")
|
||||
= f.input :header
|
||||
|
@ -4,4 +4,7 @@
|
||||
|
||||
%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
|
||||
|
@ -1,5 +1,9 @@
|
||||
= render_story @story
|
||||
|
||||
= link_to 'Edit', edit_story_path(@story)
|
||||
\|
|
||||
= link_to 'Back', stories_path
|
||||
.mx-20.flex.justify-between
|
||||
= link_to edit_story_path(@story) do
|
||||
%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
|
||||
|
Loading…
Reference in New Issue
Block a user