mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
Adding text editing bars to report and new topic (#60)
This commit is contained in:
parent
44a20a7888
commit
ac12462bec
2 changed files with 21 additions and 2 deletions
|
@ -40,8 +40,25 @@ p
|
||||||
= form_for @changeset, @action, fn f ->
|
= form_for @changeset, @action, fn f ->
|
||||||
.field
|
.field
|
||||||
= select f, :category, report_categories(), class: "input"
|
= select f, :category, report_categories(), class: "input"
|
||||||
|
.block
|
||||||
|
.block__header.block__header--js-tabbed
|
||||||
|
a.selected href="#" data-click-tab="write"
|
||||||
|
i.fas.fa-edit>
|
||||||
|
' Edit
|
||||||
|
|
||||||
|
a href="#" data-click-tab="preview"
|
||||||
|
i.fa.fa-eye>
|
||||||
|
' Preview
|
||||||
|
|
||||||
|
.block__tab.communication-edit__tab.selected data-tab="write"
|
||||||
|
= render PhilomenaWeb.TextileView, "_help.html", conn: @conn
|
||||||
|
= render PhilomenaWeb.TextileView, "_toolbar.html", conn: @conn
|
||||||
|
|
||||||
.field
|
.field
|
||||||
= textarea f, :reason, class: "input input--wide", placeholder: "Provide anything else we should know here."
|
= textarea f, :reason, class: "input input--wide input--text js-preview-input js-toolbar-input", placeholder: "Provide anything else we should know here."
|
||||||
|
|
||||||
|
.block__tab.communication-edit__tab.hidden data-tab="preview"
|
||||||
|
' [Loading preview...]
|
||||||
|
|
||||||
= if !@conn.assigns.current_user do
|
= if !@conn.assigns.current_user do
|
||||||
.field
|
.field
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
|
|
||||||
= inputs_for f, :posts, fn fp ->
|
= inputs_for f, :posts, fn fp ->
|
||||||
.field
|
.field
|
||||||
|
= render PhilomenaWeb.TextileView, "_help.html", conn: @conn
|
||||||
|
= render PhilomenaWeb.TextileView, "_toolbar.html", conn: @conn
|
||||||
= textarea fp, :body, class: "input input--wide input--text js-preview-input js-toolbar-input", placeholder: "Please read the site rules before posting and use [spoiler][/spoiler] for NSFW stuff in SFW forums.", required: true
|
= textarea fp, :body, class: "input input--wide input--text js-preview-input js-toolbar-input", placeholder: "Please read the site rules before posting and use [spoiler][/spoiler] for NSFW stuff in SFW forums.", required: true
|
||||||
= error_tag fp, :body
|
= error_tag fp, :body
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue