Sha256: 5cf8867a657de46c750a217d3f64ad9595e064ef6482e05e6eb17a5be891ed12

Contents?: true

Size: 1.47 KB

Versions: 7

Compression:

Stored size: 1.47 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>

      <div class="row column">
        <%= form.check_box :show_in_footer %>
      </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

7 entries across 7 versions & 1 rubygems

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