115 lines
3.3 KiB
Plaintext
115 lines
3.3 KiB
Plaintext
<h1>
|
|
<%= link_to @organization, organization_path(@organization) %>
|
|
</h1>
|
|
<div class="row mb-4">
|
|
<div class="col-sm-4">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h3 class="card-title">
|
|
<%= t '.contact_information' %>
|
|
</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<p>
|
|
<strong>
|
|
<%= Organization.human_attribute_name 'email' %>
|
|
</strong>
|
|
<%= @organization.email %>
|
|
<br/>
|
|
<strong>
|
|
<%= Organization.human_attribute_name 'phone' %>
|
|
</strong>
|
|
<%= @organization.phone %>
|
|
<br/>
|
|
<strong>Web</strong>
|
|
<%= link_to_if @organization.web.present?,
|
|
@organization.web,
|
|
@organization.web %>
|
|
<br/>
|
|
<strong>
|
|
<%= Organization.human_attribute_name 'public_opening_times' %>
|
|
</strong>
|
|
<br/>
|
|
<%= @organization.public_opening_times %>
|
|
<br/>
|
|
<strong>
|
|
<%= Organization.human_attribute_name 'address' %>
|
|
</strong>
|
|
<%= @organization.address %>
|
|
<br/>
|
|
<strong>
|
|
<%= Organization.human_attribute_name 'neighborhood' %>
|
|
</strong>
|
|
<%= @organization.neighborhood %>
|
|
<br/>
|
|
<strong>
|
|
<%= Organization.human_attribute_name 'city' %>
|
|
</strong>
|
|
<%= @organization.city %>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h3 class="card-title">
|
|
<%= t 'global.information' %>
|
|
</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<p>
|
|
<strong>
|
|
<%= Organization.human_attribute_name 'created_at' %>
|
|
</strong>
|
|
<%= l @organization.created_at, format: :long %>
|
|
<br/>
|
|
<strong>
|
|
<%= Organization.human_attribute_name 'updated_at' %>
|
|
</strong>
|
|
<%= l @organization.updated_at, format: :long %>
|
|
<br/>
|
|
<strong>
|
|
<%= t 'global.member_count' %>
|
|
</strong>
|
|
<%= @organization.members.count %>
|
|
<br/>
|
|
<strong>
|
|
<%= t 'global.balance' %>
|
|
</strong>
|
|
<%= seconds_to_hm(@organization.account.try(:balance)) %>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-5">
|
|
<ul class="nav nav-pills justify-content-end">
|
|
<% if current_user&.manages?(@organization) %>
|
|
<li class="nav-item">
|
|
<%= link_to edit_organization_path(@organization), class: 'nav-link' do %>
|
|
<%= glyph :pencil %>
|
|
<%= t "global.edit" %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
<% if current_user&.active?(@organization) %>
|
|
<li class="nav-item">
|
|
<%= link_to new_transfer_path(id: @organization, destination_account_id: @organization.account.id), class: 'nav-link' do %>
|
|
<%= glyph :time %>
|
|
<%= t "global.give_time" %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
<%= render "organizations/petition_button", organization: @organization %>
|
|
</div>
|
|
</div>
|
|
|
|
<% if current_user&.active?(@organization) %>
|
|
<%= render "shared/movements" %>
|
|
<% else %>
|
|
<div class='alert alert-info'>
|
|
<%= t ".join_timebank" %>
|
|
</div>
|
|
<% end %>
|