diff --git a/app/avo/resources/gazetteer.rb b/app/avo/resources/gazetteer.rb index 991fa307904f4af6fb9c64bb5a2d60d88f8da98f..9fb3100ba96a104be1ec3bbdac4284b123b38899 100644 --- a/app/avo/resources/gazetteer.rb +++ b/app/avo/resources/gazetteer.rb @@ -5,6 +5,13 @@ class Avo::Resources::Gazetteer < Avo::BaseResource query.order(name: :asc) } + def description + ApplicationController.render( + template: "avo/descriptions/_gazetteer", + layout: false + ).html_safe + end + # self.includes = [] # self.attachments = [] # self.search = { diff --git a/app/views/avo/descriptions/_gazetteer.html.erb b/app/views/avo/descriptions/_gazetteer.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..180bae037814772cb6dd4d823f4d46ceb37058ae --- /dev/null +++ b/app/views/avo/descriptions/_gazetteer.html.erb @@ -0,0 +1,47 @@ +<div class="flex gap-4"> + <div class="mb-4"> + <h6 class="font-bold mb-2">For a <i>production site</i> to appear on <a href="<%= facem_home_url %>/map?type=production" target="_blank">the map</a>:</h6> + <ul class="list-disc ml-4"> + <li class="mb-2"> + 1. Create a new location with at least: + <ul class="list-disc ml-4"> + <li>- a name</li> + <li>- latitude + longitude OR an ellipse</li> + </ul> + </li> + <li class="mb-2"> + 2. Create a fabric code with: + <ul class="list-disc ml-4"> + <li>- your new location as the production site</li> + <li>- a ware type</li> + <li>- a serial number</li> + </ul> + </li> + <li class="mb-2"> + 3. Add at least one sample with: + <ul class="list-disc ml-4"> + <li>- its fabric code set to the new fabric code</li> + </ul> + </li> + </ul> + </div> + + <div class="mb-4"> + <h6 class="font-bold mb-2">For a <i>discovery site</i> to appear on <a href="<%= facem_home_url %>/map?type=discovery" target="_blank">the map</a>:</h6> + <ul class="list-disc ml-4"> + <li class="mb-2"> + 1. Create a new location with at least: + <ul class="list-disc ml-4"> + <li>- a name</li> + <li>- latitude + longitude</li> + </ul> + </li> + <li class="mb-2"> + 2. Add at least one sample with: + <ul class="list-disc ml-4"> + <li>- its discovery site set to the new location</li> + </ul> + </li> + </ul> + </div> +</div> \ No newline at end of file