Sha256: 54aab0187a4f191247bd17fafb8bf16213c1dc2a961bf07439372907d9a95eed

Contents?: true

Size: 1.38 KB

Versions: 6

Compression:

Stored size: 1.38 KB

Contents

<div class="form__wrapper">
  <div class="card pt-4">
    <div class="card-section">
      <div class="row column">
        <%= form.translated :text_field, :title, autofocus: true, aria: { label: :title } %>
      </div>

      <% if allowed_to? :update_slug, :static_page, static_page: form.object %>
        <div class="row column slug">
          <div>
            <%= form.label :slug %>
          </div>
          <%= form.text_field :slug, label: false, help_text: t(".slug_help_html", url: decidim_form_slug_url("pages", form.object.slug)) %>
        </div>
      <% end %>

      <div class="row column mt-2">
        <%= form.translated :editor, :content, aria: { label: :content } %>
      </div>

      <div class="row column">
        <div>
          <%= form.label :topic %>
        </div>
        <%= form.select :topic_id, form.object.topics.map { |topic| [translated_attribute(topic.title), topic.id] }, include_blank: t(".none"), label: false %>
      </div>

      <%= render partial: "form_notable_changes", locals: { form: } %>

      <div class="row column">
        <div>
          <%= form.label :weight %>
        </div>
        <%= form.number_field :weight, label: false %>
      </div>

      <% if form.object.control_public_access? %>
        <div class="row column">
          <%= form.check_box :allow_public_access %>
        </div>
      <% end %>

    </div>
  </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

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