OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/views/enterprises/_form.html.erb

28 lines
1.0 KiB

<% if @current_token.present? %>
<collapsible-section section-title="<%=h t('admin.enterprise.replace_token') %>">
<% else %>
<collapsible-section initially-expanded="true"
section-title="<%=h t('admin.enterprise.add_token') %>">
<% end %>
<%= labelled_tabular_form_for @token,
url: { action: :create },
html: { class: 'token-form form -vertical' },
method: :post do |f|%>
<div class="form--space"></div>
<%= f.text_area :encoded_token,
value: nil,
cols: 60,
rows: 15,
placeholder: t('admin.enterprise.paste'),
autocomplete: "off",
autocorrect: "off",
autocapitalize: "off",
spellcheck: false %>
<div class="form--space"></div>
<%= styled_button_tag t(:button_save), id: 'token-submit-button', class: '-highlight -with-icon icon-checkmark' %>
<%= link_to t(:button_cancel), { action: :show }, class: 'button' %>
<% end %>
</collapsible-section>