Sha256: 119327e7eb7fba8a503e8f1dafba6bc7bc667638988d2fc8aeb76c1f4420f3a7

Contents?: true

Size: 1.27 KB

Versions: 31

Compression:

Stored size: 1.27 KB

Contents

<div class="card">
  <div class="card-divider">
    <h2 class="card-title"><%= t(".title") %></h2>
  </div>
  <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>

        <button class="button small hollow add-external-domain"><%= t(".add") %></button>
      </div>
    </div>
  </div>
</div>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-admin-0.27.9 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.27.8 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.27.7 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.27.6 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.26.10 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.26.9 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.27.5 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.26.8 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.27.4 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.27.3 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.26.7 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.26.5 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.27.2 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.27.1 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.26.4 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.27.0 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.26.3 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.27.0.rc2 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.27.0.rc1 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb
decidim-admin-0.26.2 app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb