diff options
author | hellekin <hellekin@cepheide.org> | 2020-11-12 23:39:13 +0100 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-11-12 23:39:13 +0100 |
commit | 6c9922a87fb72b958b78014c45b6cd1efafdd30e (patch) | |
tree | c58addb0b39bafe5bc8aceebe659bb2cc86f3851 /app/views/taxonomies | |
parent | 8d9387cf64929b6467b6ba52f22ca0aa5ed35782 (diff) | |
download | incommon-map-6c9922a87fb72b958b78014c45b6cd1efafdd30e.tar.gz |
Add Stimulus Map and Taxonomy (WIP)
This commit add StimulusJS interaction for the map
and taxonomy, as well as styling.
It provides preliminary work to hook up live data on the map
from the taxonomy.
Diffstat (limited to 'app/views/taxonomies')
-rw-r--r-- | app/views/taxonomies/_taxonomy.html.erb | 8 | ||||
-rw-r--r-- | app/views/taxonomies/filter/_taxonomy.html.erb | 1 | ||||
-rw-r--r-- | app/views/taxonomies/filter/show.html.erb | 1 | ||||
-rw-r--r-- | app/views/taxonomies/index.html.erb | 5 | ||||
-rw-r--r-- | app/views/taxonomies/show.html.erb | 1 |
5 files changed, 16 insertions, 0 deletions
diff --git a/app/views/taxonomies/_taxonomy.html.erb b/app/views/taxonomies/_taxonomy.html.erb new file mode 100644 index 0000000..eff6931 --- /dev/null +++ b/app/views/taxonomies/_taxonomy.html.erb @@ -0,0 +1,8 @@ +<section id="taxonomy-<%= taxonomy.to_param %>" data-controller="taxonomy" data-taxonomy-uuid="<%= taxonomy.uuid %>"> + <h3><%= taxonomy.name %></h3> + <p class="summary"><%= h taxonomy.summary %></p> + <div class="description"><%= m taxonomy.description %></div> + <button data-action="taxonomy#deploy">Preview</button> + <div class="deploy" data-target="taxonomy.deploy"></div> +</section> + diff --git a/app/views/taxonomies/filter/_taxonomy.html.erb b/app/views/taxonomies/filter/_taxonomy.html.erb new file mode 100644 index 0000000..99e9c89 --- /dev/null +++ b/app/views/taxonomies/filter/_taxonomy.html.erb @@ -0,0 +1 @@ +<%= taxonomy_filter %> diff --git a/app/views/taxonomies/filter/show.html.erb b/app/views/taxonomies/filter/show.html.erb new file mode 100644 index 0000000..99e9c89 --- /dev/null +++ b/app/views/taxonomies/filter/show.html.erb @@ -0,0 +1 @@ +<%= taxonomy_filter %> diff --git a/app/views/taxonomies/index.html.erb b/app/views/taxonomies/index.html.erb new file mode 100644 index 0000000..d060f6c --- /dev/null +++ b/app/views/taxonomies/index.html.erb @@ -0,0 +1,5 @@ +<section id="taxonomies"> + <h2>Available Taxonomies</h2> + + <%= render collection: @taxonomies: %> +</section> diff --git a/app/views/taxonomies/show.html.erb b/app/views/taxonomies/show.html.erb new file mode 100644 index 0000000..99e9c89 --- /dev/null +++ b/app/views/taxonomies/show.html.erb @@ -0,0 +1 @@ +<%= taxonomy_filter %> |