From f77e5fabd4fa6bb72185c7efbdc2973fed588682 Mon Sep 17 00:00:00 2001
From: Alessandro Palmeira + João M. M. da Silva
+ <%= f.label :name, "Name:" %>
+ <%= f.text_field :name %>
+
+ <%= f.label :description, "Description:" %>
+ <%= f.text_field :description %>
+
+
+
+ <%= f.label :process_period, "Process Period:" %>
+ <%= f.select(:process_period, MezuroPlugin::Helpers::ContentViewerHelper.create_periodicity_options ) %>
+ <%= @project_content.name %> Project
+
+<% form_for :repository, :url => {:action =>"create_repository", :controller => "mezuro_plugin_repository"}, :method => :get do |f| %>
+ <%= hidden_field_tag :id, @project_content.id %>
+
+
+
+ <%= f.label :address, "Address:" %> + <%= f.text_field :address %> +
+ + + <%= f.label :configuration_id, "Configuration:" %> + <%= f.select :configuration_id, @configuration_select %> + + ++ <%= f.submit "Add" %> +
+ +<% end %> diff --git a/plugins/mezuro/views/mezuro_plugin_repository/new_repository.html.erb b/plugins/mezuro/views/mezuro_plugin_repository/new_repository.html.erb deleted file mode 100644 index 1e5cfc5..0000000 --- a/plugins/mezuro/views/mezuro_plugin_repository/new_repository.html.erb +++ /dev/null @@ -1,41 +0,0 @@ -- <%= f.label :name, "Name:" %> - <%= f.text_field :name %> -
-- <%= f.label :description, "Description:" %> - <%= f.text_field :description %> -
- - <%= required labelled_form_field _('License'), - f.select(:license, MezuroPlugin::Helpers::ContentViewerHelper.create_license_options) %>- -
- <%= f.label :process_period, "Process Period:" %> - <%= f.select(:process_period, MezuroPlugin::Helpers::ContentViewerHelper.create_periodicity_options ) %> -
- <%= f.label :type, "Type:" %> - <%= f.select :type, @repository_types %> - - -- <%= f.label :address, "Address:" %> - <%= f.text_field :address %> -
- - - <%= f.label :configuration_id, "Configuration:" %> - <%= f.select :configuration_id, @configuration_select %> - - -- <%= f.submit "Add" %> -
- -<% end %> diff --git a/plugins/mezuro/views/mezuro_plugin_repository/show.html.erb b/plugins/mezuro/views/mezuro_plugin_repository/show.html.erb new file mode 100644 index 0000000..b833711 --- /dev/null +++ b/plugins/mezuro/views/mezuro_plugin_repository/show.html.erb @@ -0,0 +1,48 @@ + +<%= _('Name') %> | +<%= @repository.name %> | +
<%= _('Description') %> | +<%= @repository.description %> | +
<%= _('License') %> | +<%= @repository.license %> | +
<%= _('Process Period') %> | +<%= MezuroPlugin::Helpers::ContentViewerHelper.get_periodicity_option(@repository.process_period) %> | +
<%= _('Type') %> | +<%= @repository.type %> | +
<%= _('Address') %> | +<%= @repository.address %> | +
<%= _('Configuration') %> | +<%= @configuration_name %> | +
<%= _('Status')%> | +
+ <%= @processing.state %>
+
+ |
+
<%= _('Name') %> | -<%= @repository.name %> | -
<%= _('Description') %> | -<%= @repository.description %> | -
<%= _('License') %> | -<%= @repository.license %> | -
<%= _('Process Period') %> | -<%= MezuroPlugin::Helpers::ContentViewerHelper.get_periodicity_option(@repository.process_period) %> | -
<%= _('Type') %> | -<%= @repository.type %> | -
<%= _('Address') %> | -<%= @repository.address %> | -
<%= _('Configuration') %> | -<%= @configuration_name %> | -
<%= _('Status')%> | -
- <%= @processing.state %>
-
- |
-