diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-07-03 13:58:57 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-07-03 14:01:41 -0400 |
commit | 8e15dbd73035c2a2198a2828a20ddcebe0739823 (patch) | |
tree | f93ada8d2c3c06e8cf1908bf5b0e22b1b54dd956 /app/views/admin/streams/_form.html.haml | |
parent | 49b11f2864f75bcfb8d0d01439939ed68aa90b8f (diff) | |
download | thoughts-8e15dbd73035c2a2198a2828a20ddcebe0739823.tar.gz thoughts-8e15dbd73035c2a2198a2828a20ddcebe0739823.tar.bz2 thoughts-8e15dbd73035c2a2198a2828a20ddcebe0739823.zip |
Implemented streams
Currently there are no links to the pages for editing stream updates, and the admin panel for managing streams could probably have a better look & feel, but here's some basic working functionality. refs #8
Diffstat (limited to 'app/views/admin/streams/_form.html.haml')
-rw-r--r-- | app/views/admin/streams/_form.html.haml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app/views/admin/streams/_form.html.haml b/app/views/admin/streams/_form.html.haml new file mode 100644 index 0000000..ce457cb --- /dev/null +++ b/app/views/admin/streams/_form.html.haml | |||
@@ -0,0 +1,25 @@ | |||
1 | %fieldset#content | ||
2 | .title-field | ||
3 | = f.label :title | ||
4 | = f.text_field :title, placeholder: "Title" | ||
5 | .slug-field | ||
6 | = f.label :slug, "https://feffernoo.se/thinks/" | ||
7 | = f.text_field :slug, placeholder: "insert-slug-here" | ||
8 | .body-field | ||
9 | = f.label :body | ||
10 | = f.cktext_area :body | ||
11 | %fieldset#details | ||
12 | - if f.object.errors.any? | ||
13 | #errors.details-module | ||
14 | %h3 Error! | ||
15 | %ul | ||
16 | - f.object.errors.full_messages.each do |error| | ||
17 | %li= error | ||
18 | .details-module | ||
19 | = f.fields_for :records, Record.new do |builder| | ||
20 | .should-create-record-field | ||
21 | = builder.check_box :_destroy, {checked: false}, "0", "1" | ||
22 | = builder.label :_destroy, "Create record?" | ||
23 | .record-description-field | ||
24 | = builder.text_area :description, placeholder: "record text" | ||
25 | .details-module= f.submit | ||