Sha256: a5857754829a2a2de592368c9893c42aefb72d53e5453bbc06941b0996c7c2e4

Contents?: true

Size: 1.28 KB

Versions: 6

Compression:

Stored size: 1.28 KB

Contents

<div class="form__wrapper">
  <div class="card">
    <div class="card-section">
      <% if form.send(:error?, :external_domains) %>
        <div>
          <div>&nbsp;</div>
          <%= form.send(:error_and_help_text, :external_domains) %>
        </div>
      <% end %>

      <div class="external-domains">
        <%= fields_for "external_domains[#{blank_external_domain.to_param}]", blank_external_domain do |external_domain_form| %>
          <script type="text/template" class="decidim-template">
            <%= render "external_domain",
                       form: external_domain_form,
                       id: blank_external_domain.to_param %>
          </script>
        <% end %>

        <div class="external-domains-list">
          <% @form.external_domains.each do |external_domain| %>
            <%= fields_for "external_domains[]", external_domain do |external_domain_form| %>
              <%= render "external_domain",
                         form: external_domain_form,
                         id: external_domain.to_param %>
            <% end %>
          <% end %>
        </div>
        <div class="row column">
          <button class="button button__sm button__secondary small add-external-domain"><%= t(".add") %></button>
        </div>
      </div>
    </div>
  </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-admin-0.29.1 app/views/decidim/admin/organization_external_domain_allowlist/_form.html.erb
decidim-admin-0.29.0 app/views/decidim/admin/organization_external_domain_allowlist/_form.html.erb
decidim-admin-0.29.0.rc4 app/views/decidim/admin/organization_external_domain_allowlist/_form.html.erb
decidim-admin-0.29.0.rc3 app/views/decidim/admin/organization_external_domain_allowlist/_form.html.erb
decidim-admin-0.29.0.rc2 app/views/decidim/admin/organization_external_domain_allowlist/_form.html.erb
decidim-admin-0.29.0.rc1 app/views/decidim/admin/organization_external_domain_allowlist/_form.html.erb