about summary refs log tree commit diff stats
path: root/app/views/quotes
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-21 00:55:24 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-21 00:55:24 -0400
commit5dddde5dee7beecfb6824b208c4fb86c781a27f9 (patch)
treeca3c8f15020d889c8aeb4ebcb9ba102abee98923 /app/views/quotes
parent96813a5e508a54257ef03be613a704f1f71af53d (diff)
downloadthoughts-5dddde5dee7beecfb6824b208c4fb86c781a27f9.tar.gz
thoughts-5dddde5dee7beecfb6824b208c4fb86c781a27f9.tar.bz2
thoughts-5dddde5dee7beecfb6824b208c4fb86c781a27f9.zip
Added quote submission (and random)
Diffstat (limited to 'app/views/quotes')
-rw-r--r--app/views/quotes/new.html.erb2
-rw-r--r--app/views/quotes/new.html.haml24
2 files changed, 24 insertions, 2 deletions
diff --git a/app/views/quotes/new.html.erb b/app/views/quotes/new.html.erb deleted file mode 100644 index a4c6a0a..0000000 --- a/app/views/quotes/new.html.erb +++ /dev/null
@@ -1,2 +0,0 @@
1<h1>Quotes#new</h1>
2<p>Find me in app/views/quotes/new.html.erb</p>
diff --git a/app/views/quotes/new.html.haml b/app/views/quotes/new.html.haml new file mode 100644 index 0000000..887ff2c --- /dev/null +++ b/app/views/quotes/new.html.haml
@@ -0,0 +1,24 @@
1%p.normal You're about to submit a quote to the Four Island Quotes DB! This is great, but first, there are a few rules/guidelines/things you should know before submitting:
2%ul
3 %li Quotes should come from a chat involving one or more Four Island regulars. This is not a strict guideline, as quotes are often submitted from video chats or real life situations possibly involving only one Four Island regular, but just make sure before submitting that the quote you're submitting would be appreciated by other Four Island regulars.
4 %li Make sure to remove timestamps, if present in your quote, before submitting.
5 %li If your quote is extremely offensive, it will probably not be approved. This is not referring to profanity--you can leave profanity uncensored in your quotes.
6 %li If you want to, you can enter your username in the box below the quote labelled "Your username" (this is completely optional). This is mostly for record-keeping and statistical purposes; submitting a quote of yourself being awesome and then signing your name under it won't decrease the chances of it being accepted.
7 %li You can enter any notes about the quote that may be important (such as context, or if it's a memorable quote, why it's memorable) in the box below your quote.
8 %li You can also enter a list of comma-separated tags in the provided box. This is, again, optional, but it's suggested that you do tag your quote, especially with #{link_to "tags that already exist", tags_quotes_path}, though creating new tags is not frowned upon.
9%h3 Your Quote
10= form_for @quote do |f|
11 - if @quote.errors.any?
12 #error-messages
13 %h4 Errors were found!
14 %ul
15 - @quote.errors.full_messages.each do |msg|
16 %li= msg
17 .form-field= f.text_area :content
18 .form-field Your username (optional): #{f.text_field :submitter}
19 .form-field Notes (optional):
20 .form-field= f.text_area :notes
21 .form-field
22 Tags (optional):
23 .tags-input= f.text_field :tag_list, type: :tags, value: f.object.tag_list.join(",")
24 .form-field= f.submit