2017-01-25 19:01:23 +08:00
|
|
|
<% provide(:head_title, t("users.settings.teams.head_title")) %>
|
|
|
|
|
2017-02-02 17:36:23 +08:00
|
|
|
<div data-hook="team-beginning"></div>
|
2017-02-01 00:32:08 +08:00
|
|
|
|
2017-01-25 19:01:23 +08:00
|
|
|
<%= render partial: "users/settings/navigation.html.erb" %>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane tab-pane-settings" role="tabpanel"></div>
|
|
|
|
<div class="tab-pane tab-pane-settings active" role="tabpanel">
|
|
|
|
|
|
|
|
<%= render partial: "users/settings/teams/breadcrumbs.html.erb" %>
|
|
|
|
|
|
|
|
<!-- TITLE -->
|
|
|
|
<%= link_to team_name_path(@team, format: :json),
|
|
|
|
remote: true,
|
|
|
|
class: 'name-link name-refresh',
|
|
|
|
style: 'color: inherit' do %>
|
|
|
|
<h3><%= @team.name %></h3>
|
|
|
|
<% end %>
|
|
|
|
<br />
|
|
|
|
<!-- End of TITLE -->
|
|
|
|
|
|
|
|
<!-- HEADER -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6 col-sm-3">
|
|
|
|
<div class="badge-icon bg-primary">
|
|
|
|
<span class="glyphicon glyphicon-calendar"></span>
|
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<span class="hidden-xs hidden-sm"><%= t("users.settings.teams.edit.header_created_at") %></span>
|
2017-01-30 22:55:21 +08:00
|
|
|
<strong><%= l(@team.created_at, format: :full_date) %></strong>
|
2017-01-25 19:01:23 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-01-30 22:55:21 +08:00
|
|
|
<div class="col-xs-10 col-sm-5">
|
2017-01-25 19:01:23 +08:00
|
|
|
<div class="badge-icon bg-primary">
|
|
|
|
<span class="glyphicon glyphicon-user"></span>
|
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
2017-01-30 22:55:21 +08:00
|
|
|
<span class="hidden-xs hidden-sm"><%= t("users.settings.teams.edit.header_created_by") %></span>
|
|
|
|
<strong><%= t("users.settings.teams.edit.header_created_by_name_email", name: team_created_by(@team).name, email: team_created_by(@team).email) %></strong>
|
2017-01-25 19:01:23 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-01-30 22:55:21 +08:00
|
|
|
<div class="col-xs-8 col-sm-4">
|
2017-01-25 19:01:23 +08:00
|
|
|
<div class="badge-icon bg-primary">
|
|
|
|
<span class="glyphicon glyphicon-hdd"></span>
|
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<span class="hidden-xs hidden-sm"><%= t("users.settings.teams.edit.header_space_taken") %></span>
|
2017-02-02 17:36:23 +08:00
|
|
|
<strong data-hook="team-space-taken"><%= "#{number_to_human_size(@team.space_taken)}" %></strong>
|
2017-01-25 19:01:23 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-02-02 17:36:23 +08:00
|
|
|
<div data-hook="team-header-second-row"></div>
|
2017-02-01 00:32:08 +08:00
|
|
|
|
2017-03-30 23:21:29 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-24 col-sm-12" data-hook="team-header-description">
|
|
|
|
<div class="badge-icon bg-primary">
|
|
|
|
<%= link_to team_description_path(@team, format: :json),
|
|
|
|
remote: true,
|
|
|
|
class: 'description-link',
|
|
|
|
style: 'color: inherit' do %>
|
|
|
|
<span class="glyphicon glyphicon-info-sign"></span>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="well well-sm">
|
|
|
|
<%= link_to team_description_path(@team, format: :json),
|
|
|
|
remote: true,
|
|
|
|
class: 'description-label description-link description-refresh',
|
|
|
|
style: 'color: inherit' do %>
|
|
|
|
<%= render partial: "users/settings/teams/description_label.html.erb", locals: { team: @team } %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2017-01-25 19:01:23 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- End of HEADER -->
|
|
|
|
|
|
|
|
<!-- USERS TABLE -->
|
|
|
|
<div class="panel panel-default panel-team-users">
|
|
|
|
<div class="panel-heading">
|
2017-01-30 22:55:21 +08:00
|
|
|
<%= t("users.settings.teams.edit.team_members_title") %>
|
2017-01-25 19:01:23 +08:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2017-01-30 22:55:21 +08:00
|
|
|
<div class="col-xs-24 col-sm-12">
|
|
|
|
<a href="#" class="btn btn-primary pull-right row" data-trigger="invite-users" data-modal-id="team-invite-users-modal">
|
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
|
|
|
<%= t("users.settings.teams.edit.add_user") %>
|
|
|
|
</a>
|
|
|
|
</div>
|
2017-01-25 19:01:23 +08:00
|
|
|
<div class="users-datatable">
|
|
|
|
<table id="users-table" class="table" data-source="<%= team_users_datatable_path(@team, format: :json) %>">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th id="user-name"><%= t("users.settings.teams.edit.thead_user_name") %></th>
|
|
|
|
<th id="email"><%= t("users.settings.teams.edit.thead_email") %></th>
|
2017-01-30 22:55:21 +08:00
|
|
|
<th id="user-role"><%= t("users.settings.teams.edit.thead_role") %></th>
|
2017-01-25 19:01:23 +08:00
|
|
|
<th id="joined-on"><%= t("users.settings.teams.edit.thead_joined_on") %></th>
|
|
|
|
<th id="status"><%= t("users.settings.teams.edit.thead_status") %></th>
|
2017-01-30 22:55:21 +08:00
|
|
|
<th id="options"><%= t("users.settings.teams.edit.thead_actions") %></th>
|
2017-01-25 19:01:23 +08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody></tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- End of USERS TABLE -->
|
2017-02-01 00:32:08 +08:00
|
|
|
|
2017-02-02 17:36:23 +08:00
|
|
|
<div data-hook="team-the-end"></div>
|
2017-02-01 00:32:08 +08:00
|
|
|
|
2017-01-25 19:01:23 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= render partial: 'users/settings/teams/name_modal.html.erb' %>
|
|
|
|
<%= render partial: 'users/settings/teams/description_modal.html.erb' %>
|
|
|
|
<%= render(
|
|
|
|
partial: 'shared/invite_users_modal.html.erb',
|
|
|
|
locals: {
|
|
|
|
modal_id: 'team-invite-users-modal',
|
|
|
|
type: 'invite_to_team',
|
|
|
|
team: @team
|
|
|
|
}
|
|
|
|
)
|
|
|
|
%>
|
|
|
|
<%= render partial: 'users/settings/teams/destroy_modal.html.erb', locals: { team: @team } %>
|
2017-02-09 21:33:12 +08:00
|
|
|
<%= render partial: 'users/settings/user_teams/destroy_user_team_modal.html.erb' %>
|
2017-01-25 19:01:23 +08:00
|
|
|
<%= stylesheet_link_tag 'datatables' %>
|
2017-02-09 21:33:12 +08:00
|
|
|
<%= javascript_include_tag 'users/settings/teams/show' %>
|