use markdown editor
This commit is contained in:
6
Gemfile
6
Gemfile
@ -2,6 +2,9 @@ source "https://rubygems.org"
|
|||||||
|
|
||||||
ruby "3.1.3"
|
ruby "3.1.3"
|
||||||
|
|
||||||
|
gem "merged" , git: "https://github.com/HubFeenixMakers/merged"
|
||||||
|
#gem "merged" , path: "../merged"
|
||||||
|
|
||||||
gem "rails", "~> 7.0"
|
gem "rails", "~> 7.0"
|
||||||
|
|
||||||
gem "sprockets-rails"
|
gem "sprockets-rails"
|
||||||
@ -25,9 +28,6 @@ gem "pundit"
|
|||||||
gem "simple_form" , "5.1.0"
|
gem "simple_form" , "5.1.0"
|
||||||
gem "simple_form_tailwind_css"
|
gem "simple_form_tailwind_css"
|
||||||
|
|
||||||
gem "merged" , git: "https://github.com/HubFeenixMakers/merged"
|
|
||||||
#gem "merged" , path: "../merged"
|
|
||||||
|
|
||||||
gem "passenger" , require: "phusion_passenger/rack_handler"
|
gem "passenger" , require: "phusion_passenger/rack_handler"
|
||||||
gem "bootsnap", require: false
|
gem "bootsnap", require: false
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
GIT
|
GIT
|
||||||
remote: https://github.com/HubFeenixMakers/merged
|
remote: https://github.com/HubFeenixMakers/merged
|
||||||
revision: a452bd5d8daf83387172fe635ba3ccbb4bdd9ace
|
revision: b0c2d46c4815bb08dd750f34ef3e2ae996a8c69e
|
||||||
specs:
|
specs:
|
||||||
merged (0.1.0)
|
merged (0.1.0)
|
||||||
active_hash
|
active_hash
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
= f.error_notification
|
= f.error_notification
|
||||||
|
|
||||||
= f.input :name
|
= f.input :name
|
||||||
= f.input :text
|
= render "merged/form/editor" , object: @event , field: :text, form: f
|
||||||
.grid.grid-cols-2.gap-10
|
.grid.grid-cols-2.gap-10
|
||||||
= f.input :start_date
|
= f.input :start_date
|
||||||
= f.input :end_date
|
= f.input :end_date
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
%script{:src => "https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"}
|
||||||
|
%script{:src => "https://cdn.jsdelivr.net/npm/marked/marked.min.js"}
|
||||||
|
|
||||||
.flex.justify-center
|
.flex.justify-center
|
||||||
.column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"}
|
.column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"}
|
||||||
.text-xl.m-4
|
.text-xl.m-4
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
%script{:src => "https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"}
|
||||||
|
%script{:src => "https://cdn.jsdelivr.net/npm/marked/marked.min.js"}
|
||||||
|
|
||||||
.flex.justify-center
|
.flex.justify-center
|
||||||
.column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"}
|
.column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"}
|
||||||
.text-xl.m-4
|
.text-xl.m-4
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
%button.bg-red-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400{type: :submit}
|
%button.bg-red-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400{type: :submit}
|
||||||
Delete Profile
|
Delete Profile
|
||||||
|
|
||||||
.flex.flex-col.justify-center.mt-2
|
.flex.flex-col.justify-center
|
||||||
=link_to profile_path(profile) do
|
=link_to profile_path(profile) do
|
||||||
.px-2.py-2.text-center.bg-gray-200
|
.my-2.px-2.py-2.text-center.bg-gray-200
|
||||||
%h1.text-xl.font-bold.tracking-tight.sm:text-4xl
|
%h1.text-xl.font-bold.tracking-tight.sm:text-4xl
|
||||||
Your Events
|
Your Events
|
||||||
-if event = profile.events.length >0
|
-if event = profile.events.length >0
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
= f.error_notification
|
= f.error_notification
|
||||||
|
|
||||||
= f.input :name
|
= f.input :name
|
||||||
= f.input :bio
|
= render "merged/form/editor" , object: @profile , field: :bio, form: f
|
||||||
= f.input :kind, :as => :hidden
|
= f.input :kind, :as => :hidden
|
||||||
.flex.h-16.mt-2
|
.flex.h-16.mt-2
|
||||||
= image_tag(@profile.picture_url , class: "align-middle mr-2") if @profile.picture?
|
= image_tag(@profile.picture_url , class: "align-middle mr-2") if @profile.picture?
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
%script{:src => "https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"}
|
||||||
|
%script{:src => "https://cdn.jsdelivr.net/npm/marked/marked.min.js"}
|
||||||
|
|
||||||
.flex.justify-center
|
.flex.justify-center
|
||||||
.column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"}
|
.column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"}
|
||||||
.text-xl.m-4
|
.text-xl.m-4
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
%script{:src => "https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"}
|
||||||
|
%script{:src => "https://cdn.jsdelivr.net/npm/marked/marked.min.js"}
|
||||||
|
|
||||||
.flex.justify-center
|
.flex.justify-center
|
||||||
.column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"}
|
.column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"}
|
||||||
.text-xl.m-4
|
.text-xl.m-4
|
||||||
|
Reference in New Issue
Block a user