Sha256: 6abcfc5c9c51d2caf63166c541e2d9466fcf8ebe511269aabfa06964b1871bae

Contents?: true

Size: 1.31 KB

Versions: 7

Compression:

Stored size: 1.31 KB

Contents

<div class="form__wrapper">
  <div class="card">
    <div class="card-section">
      <% if form.send(:error?, :external_domains) %>
        <div class="input-field">
          <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 hollow add-external-domain"><%= t(".add") %></button>
        </div>
      </div>
    </div>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-admin-0.28.4 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.28.3 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.28.2 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.28.1 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.28.0 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.28.0.rc5 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.28.0.rc4 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb