2013-01-19 18:32:09 +01:00
|
|
|
%h3.page_title New Team
|
|
|
|
%hr
|
|
|
|
= form_for @team, url: teams_path do |f|
|
|
|
|
- if @team.errors.any?
|
2013-01-30 15:53:18 +01:00
|
|
|
.alert.alert-error
|
2013-01-19 18:32:09 +01:00
|
|
|
%span= @team.errors.full_messages.first
|
|
|
|
.clearfix
|
|
|
|
= f.label :name do
|
|
|
|
Team name is
|
|
|
|
.input
|
2013-01-24 10:19:09 +01:00
|
|
|
= f.text_field :name, placeholder: "Ex. Ruby Developers", class: "xxlarge left"
|
2013-02-19 20:02:25 +01:00
|
|
|
|
|
|
|
.clearfix.team-description-holder
|
|
|
|
= f.label :description, "Details"
|
|
|
|
.input
|
|
|
|
= f.text_area :description, maxlength: 250, class: "xxlarge js-gfm-input", rows: 4
|
|
|
|
|
|
|
|
.form-actions
|
|
|
|
= f.submit 'Create team', class: "btn btn-create"
|
|
|
|
|
2013-01-19 18:32:09 +01:00
|
|
|
%hr
|
|
|
|
.padded
|
|
|
|
%ul
|
2013-01-22 23:20:27 +01:00
|
|
|
%li All created teams are public (users can view who enter into team and which project are assigned for this team)
|
2013-01-19 18:32:09 +01:00
|
|
|
%li People within a team see only projects they have access to
|
2013-01-22 23:20:27 +01:00
|
|
|
%li You will be able to assign existing projects for team
|
2013-02-18 13:35:38 +01:00
|
|
|
%hr
|
|
|
|
|
|
|
|
- if current_user.can_create_group?
|
|
|
|
.clearfix
|
|
|
|
.input.light
|
|
|
|
Need a group for several dependent projects?
|
|
|
|
= link_to new_group_path, class: "btn btn-tiny" do
|
|
|
|
Create a group
|
|
|
|
- if current_user.can_create_project?
|
|
|
|
.clearfix
|
|
|
|
.input.light
|
|
|
|
Want to create a project?
|
|
|
|
= link_to new_project_path, class: "btn btn-tiny" do
|
|
|
|
Create a project
|