Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

1.1 KB
Raw Blame
<% html_title t(:label_administration), t(:label_announcement) %>

<%=
  render(Primer::OpenProject::PageHeader.new) do |header|
    header.with_title { "#{t(:label_announcement)} (#{notice_annoucement_active})" }
    header.with_breadcrumbs(
      [{ href: admin_index_path, text: t(:label_administration) },
       t(:label_announcement)]
    )
  end
%>

<%= error_messages_for "announcement" %>

<%= labelled_tabular_form_for @announcement,
                              url: { action: :update },
                              html: { method: :put } do |f| %>
  <div class="form--field">
    <%= f.text_area :text,
                    cols: 80,
                    rows: 5,
                    label: t(:label_text),
                    container_class: "-xxwide",
                    with_text_formatting: true %>
  </div>
  <div class="form--field">
    <%= f.date_picker :show_until, label: t("announcements.show_until") %>
  </div>
  <div class="form--field">
    <%= f.check_box :active, label: t(:label_active) %>
  </div>
  <%= styled_button_tag t(:button_save), class: "-primary -with-icon icon-checkmark" %>
<% end %>