From 63ab22bed798ff0823aaa8edb63ac6e1c6a403c7 Mon Sep 17 00:00:00 2001
From: Diego Araújo + Rafael Manzo
- <%= 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.license_options) %>
- <%= f.label :process_period, "Process Period:" %>
- <%= f.select(:process_period, MezuroPlugin::Helpers::ContentViewerHelper.periodicity_options, :selected => @repository.process_period.to_i) %>
-
- <%= 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, :selected => @repository.configuration_id.to_i %>
-
<%= f.submit "Add" %>
diff --git a/plugins/mezuro/views/mezuro_plugin_repository/new.html.erb b/plugins/mezuro/views/mezuro_plugin_repository/new.html.erb
index 859b903..c81d0fe 100644
--- a/plugins/mezuro/views/mezuro_plugin_repository/new.html.erb
+++ b/plugins/mezuro/views/mezuro_plugin_repository/new.html.erb
@@ -3,36 +3,29 @@
<% form_for :repository, :url => {:action =>"create", :controller => "mezuro_plugin_repository"}, :method => :get do |f| %>
<%= hidden_field_tag :id, @project_content.id %>
-
- <%= 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.periodicity_options ) %>
-
-
-
- <%= f.label :address, "Address:" %> - <%= f.text_field :address %> -
+ <%= required labelled_form_field _('Type'), + f.select(:type, @repository_types) %> - - <%= f.label :configuration_id, "Configuration:" %> - <%= f.select :configuration_id, @configuration_select %> - + <%= required labelled_form_field _('Address'), + f.text_field(:address) %> + + <%= required labelled_form_field _('Configuration'), + f.select(:configuration_id, @configuration_select) %><%= f.submit "Add" %> -- libgit2 0.21.2