Commit d800d7dffbff0baaf4fb42da52c398a7510e2c9c

Authored by AntonioTerceiro
1 parent 2f70f8a4

ActionItem41: adding missing views directory


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1327 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/manage_communities/index.rhtml 0 → 100644
... ... @@ -0,0 +1,12 @@
  1 +<h1><%= _("%s's communities") % profile.name %></h1>
  2 +
  3 +<ul>
  4 + <% for community in @communities %>
  5 + <li>
  6 + <%= link_to community.name, community.url %>
  7 + <%= link_to _('(manage)'), community.admin_url %>
  8 + </li>
  9 + <% end %>
  10 +</ul>
  11 +
  12 +<%= link_to _('Create a new community'), :action => 'new' %>
... ...
app/views/manage_communities/new.rhtml 0 → 100644
... ... @@ -0,0 +1,12 @@
  1 +<% labelled_form_for :community, @community do |f| %>
  2 +
  3 + <%= f.text_field :name %>
  4 +
  5 + <%= f.text_area :description %>
  6 +
  7 + <% button_bar do %>
  8 + <%= submit_button(:save, _('Create')) %>
  9 + <%= button(:cancel, _('Cancel'), :action => 'index') %>
  10 + <% end %>
  11 +
  12 +<% end %>
... ...