Sha256: c083635fde65f442543f3733ec58dabc52bab8817216525795b5ddb00102821e

Contents?: true

Size: 1.55 KB

Versions: 5

Compression:

Stored size: 1.55 KB

Contents

<%= form_with(model: banal_link, local: true) do |form| %>
  <% if banal_link.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(banal_link.errors.count, "error") %> prohibited this banal_link from being saved:</h2>

      <ul>
        <% banal_link.errors.full_messages.each do |message| %>
          <li><%= message %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div class="form-row">
    <div class="col">
      <h5>Link</h5>
      <div class="field">
        <div class='form-group'>
          <%= form.label :uri, 'URI' %>
          <%= form.url_field :uri, class: 'form-control', placeholder: 'e.g. https://google.com' %>
        </div>
      </div>
    </div>

    <div class="col">
      <h5>Metadata</h5>
      <%= form.fields_for :metadata do |metadata_form| %>
          <div class='form-group'>
            <%= metadata_form.label :category %>
            <%= metadata_form.select :category, ['Suppliers and products', 'Competitors', 'Blogs', 'Info sites', 'News and Media', 'Datasources', 'Other'], {}, { class: 'form-control' } %>
          </div>
    
          <div class='form-group'>
            <%= metadata_form.label :language, 'Country' %>
            <%= metadata_form.select :language, ['Norway', 'Sweden', 'Germany', 'Spain', 'Denmark', 'UK',  'International', 'Lithuania', 'Other'], {}, class: 'form-control' %>
          </div>
      <% end %>
    </div>
  </div>

  <%= render 'banal/related_objects/hidden_fields', {form: form} %>

  <div class="actions">
    <%= form.submit class: 'btn btn-primary' %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
ezii-browser-1.0.0 server/redux-os/app/views/banal/links/_form.html.erb
mega-os-1.0.0 app/views/banal/links/_form.html.erb
jester-data-8.0.0 app/views/banal/links/_form.html.erb
ezii-os-5.2.1 app/views/banal/links/_form.html.erb
ezii-os-2.0.1 app/views/banal/links/_form.html.erb