scinote-web/app/views/users/settings/teams/new.html.erb

35 lines
1.4 KiB
Text
Raw Normal View History

2017-01-25 19:01:23 +08:00
<% provide(:head_title, t("users.settings.teams.head_title")) %>
2018-05-15 23:10:31 +08:00
<% provide(:container_class, "no-second-nav-container") %>
2017-01-25 19:01:23 +08:00
<%= render partial: "users/settings/sidebar" %>
2017-01-25 19:01:23 +08:00
<div class="tab-content">
2018-05-15 23:10:31 +08:00
<div class="tab-pane content-pane" role="tabpanel"></div>
<div class="tab-pane content-pane active" role="tabpanel">
2023-07-03 17:11:51 +08:00
<%= form_with model: @new_team, url: create_team_path do |f| %>
<div class="sci-input-container mb-4 max-w-lg" style="display: block !important">
2023-07-03 17:11:51 +08:00
<label><%= t('users.settings.teams.new.name_label') %></label>
2017-01-25 19:01:23 +08:00
<%= f.text_field :name,
autofocus: true,
2023-07-03 17:11:51 +08:00
class: 'sci-input-field',
2017-01-25 19:01:23 +08:00
placeholder: t('users.settings.teams.new.name_placeholder') %>
<br>
2017-01-25 19:01:23 +08:00
<small>
<%=t 'users.settings.teams.new.name_sublabel' %>
</small>
</div>
<div class="sci-input-container mb-4 max-w-lg" style="display: block !important">
<%= f.text_area :description, class: "sci-input-field textarea", label: t('users.settings.teams.new.description_label') %>
2023-08-11 17:34:11 +08:00
<br>
2017-01-25 19:01:23 +08:00
<small>
<%=t 'users.settings.teams.new.description_sublabel' %>
</small>
</div>
2023-06-19 21:45:22 +08:00
<%= link_to t('general.cancel'), teams_path, class: 'btn btn-secondary' %>
2018-04-26 21:19:05 +08:00
<%= f.submit t('users.settings.teams.new.create'), class: 'btn btn-success' %>
2017-01-25 19:01:23 +08:00
<% end %>
</div>
</div>