Commit f77e5fabd4fa6bb72185c7efbdc2973fed588682
Committed by
Alessandro Palmeira
1 parent
97161dee
Exists in
master
and in
29 other branches
[Mezuro] Fixed view names
Showing
4 changed files
with
89 additions
and
89 deletions
Show diff stats
plugins/mezuro/views/mezuro_plugin_repository/new.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1,41 @@ |
| 1 | +<h2><%= @project_content.name %> Project</h2> | |
| 2 | + | |
| 3 | +<% form_for :repository, :url => {:action =>"create_repository", :controller => "mezuro_plugin_repository"}, :method => :get do |f| %> | |
| 4 | + <%= hidden_field_tag :id, @project_content.id %> | |
| 5 | + | |
| 6 | + <p> | |
| 7 | + <%= f.label :name, "Name:" %> | |
| 8 | + <%= f.text_field :name %> | |
| 9 | + </p> | |
| 10 | + <p> | |
| 11 | + <%= f.label :description, "Description:" %> | |
| 12 | + <%= f.text_field :description %> | |
| 13 | + </p> | |
| 14 | + | |
| 15 | + <%= required labelled_form_field _('License'), | |
| 16 | + f.select(:license, MezuroPlugin::Helpers::ContentViewerHelper.create_license_options) %><br/> | |
| 17 | + <p> | |
| 18 | + | |
| 19 | + <p> | |
| 20 | + <%= f.label :process_period, "Process Period:" %> | |
| 21 | + <%= f.select(:process_period, MezuroPlugin::Helpers::ContentViewerHelper.create_periodicity_options ) %> | |
| 22 | + </p> | |
| 23 | + <%= f.label :type, "Type:" %> | |
| 24 | + <%= f.select :type, @repository_types %> | |
| 25 | + </p> | |
| 26 | + | |
| 27 | + <p> | |
| 28 | + <%= f.label :address, "Address:" %> | |
| 29 | + <%= f.text_field :address %> | |
| 30 | + </p> | |
| 31 | + | |
| 32 | + </p> | |
| 33 | + <%= f.label :configuration_id, "Configuration:" %> | |
| 34 | + <%= f.select :configuration_id, @configuration_select %> | |
| 35 | + </p> | |
| 36 | + | |
| 37 | + <p> | |
| 38 | + <%= f.submit "Add" %> | |
| 39 | + </p> | |
| 40 | + | |
| 41 | +<% end %> | ... | ... |
plugins/mezuro/views/mezuro_plugin_repository/new_repository.html.erb
| ... | ... | @@ -1,41 +0,0 @@ |
| 1 | -<h2><%= @project_content.name %> Project</h2> | |
| 2 | - | |
| 3 | -<% form_for :repository, :url => {:action =>"create_repository", :controller => "mezuro_plugin_repository"}, :method => :get do |f| %> | |
| 4 | - <%= hidden_field_tag :id, @project_content.id %> | |
| 5 | - | |
| 6 | - <p> | |
| 7 | - <%= f.label :name, "Name:" %> | |
| 8 | - <%= f.text_field :name %> | |
| 9 | - </p> | |
| 10 | - <p> | |
| 11 | - <%= f.label :description, "Description:" %> | |
| 12 | - <%= f.text_field :description %> | |
| 13 | - </p> | |
| 14 | - | |
| 15 | - <%= required labelled_form_field _('License'), | |
| 16 | - f.select(:license, MezuroPlugin::Helpers::ContentViewerHelper.create_license_options) %><br/> | |
| 17 | - <p> | |
| 18 | - | |
| 19 | - <p> | |
| 20 | - <%= f.label :process_period, "Process Period:" %> | |
| 21 | - <%= f.select(:process_period, MezuroPlugin::Helpers::ContentViewerHelper.create_periodicity_options ) %> | |
| 22 | - </p> | |
| 23 | - <%= f.label :type, "Type:" %> | |
| 24 | - <%= f.select :type, @repository_types %> | |
| 25 | - </p> | |
| 26 | - | |
| 27 | - <p> | |
| 28 | - <%= f.label :address, "Address:" %> | |
| 29 | - <%= f.text_field :address %> | |
| 30 | - </p> | |
| 31 | - | |
| 32 | - </p> | |
| 33 | - <%= f.label :configuration_id, "Configuration:" %> | |
| 34 | - <%= f.select :configuration_id, @configuration_select %> | |
| 35 | - </p> | |
| 36 | - | |
| 37 | - <p> | |
| 38 | - <%= f.submit "Add" %> | |
| 39 | - </p> | |
| 40 | - | |
| 41 | -<% end %> |
plugins/mezuro/views/mezuro_plugin_repository/show.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1,48 @@ |
| 1 | +<script src="/plugins/mezuro/javascripts/processing.js" type="text/javascript"></script> | |
| 2 | +<h3><%= @project_name %></h3> | |
| 3 | + | |
| 4 | +<table> | |
| 5 | + <tr> | |
| 6 | + <td><%= _('Name') %></td> | |
| 7 | + <td><%= @repository.name %></td> | |
| 8 | + </tr> | |
| 9 | + <tr> | |
| 10 | + <td><%= _('Description') %></td> | |
| 11 | + <td><%= @repository.description %></td> | |
| 12 | + </tr> | |
| 13 | + <tr> | |
| 14 | + <td><%= _('License') %></td> | |
| 15 | + <td><%= @repository.license %></td> | |
| 16 | + </tr> | |
| 17 | + <tr> | |
| 18 | + <td><%= _('Process Period') %></td> | |
| 19 | + <td><%= MezuroPlugin::Helpers::ContentViewerHelper.get_periodicity_option(@repository.process_period) %></td> | |
| 20 | + </tr> | |
| 21 | + <tr> | |
| 22 | + <td><%= _('Type') %></td> | |
| 23 | + <td><%= @repository.type %></td> | |
| 24 | + </tr> | |
| 25 | + <tr> | |
| 26 | + <td><%= _('Address') %></td> | |
| 27 | + <td><%= @repository.address %></td> | |
| 28 | + </tr> | |
| 29 | + <tr> | |
| 30 | + <td><%= _('Configuration') %></td> | |
| 31 | + <td><%= @configuration_name %></td> | |
| 32 | + </tr> | |
| 33 | + <tr> | |
| 34 | + <td><%= _('Status')%></td> | |
| 35 | + <td> | |
| 36 | + <div id="processing-state" style="color:DarkGoldenRod"><%= @processing.state %></div> | |
| 37 | + <div id="msg-time"></div> | |
| 38 | + </td> | |
| 39 | + </tr> | |
| 40 | +</table> | |
| 41 | + | |
| 42 | + | |
| 43 | +<br /> | |
| 44 | + | |
| 45 | +<div id="processing" data-profile="<%= @page.profile.identifier %>" data-content="<%= @page.id %>" | |
| 46 | + data-repository-id="<%= @repository.id %>"></div> | |
| 47 | +<div id="project-tree"></div> | |
| 48 | +<div id="module-result"></div> | ... | ... |
plugins/mezuro/views/mezuro_plugin_repository/show_repository.html.erb
| ... | ... | @@ -1,48 +0,0 @@ |
| 1 | -<script src="/plugins/mezuro/javascripts/processing.js" type="text/javascript"></script> | |
| 2 | -<h3><%= @project_name %></h3> | |
| 3 | - | |
| 4 | -<table> | |
| 5 | - <tr> | |
| 6 | - <td><%= _('Name') %></td> | |
| 7 | - <td><%= @repository.name %></td> | |
| 8 | - </tr> | |
| 9 | - <tr> | |
| 10 | - <td><%= _('Description') %></td> | |
| 11 | - <td><%= @repository.description %></td> | |
| 12 | - </tr> | |
| 13 | - <tr> | |
| 14 | - <td><%= _('License') %></td> | |
| 15 | - <td><%= @repository.license %></td> | |
| 16 | - </tr> | |
| 17 | - <tr> | |
| 18 | - <td><%= _('Process Period') %></td> | |
| 19 | - <td><%= MezuroPlugin::Helpers::ContentViewerHelper.get_periodicity_option(@repository.process_period) %></td> | |
| 20 | - </tr> | |
| 21 | - <tr> | |
| 22 | - <td><%= _('Type') %></td> | |
| 23 | - <td><%= @repository.type %></td> | |
| 24 | - </tr> | |
| 25 | - <tr> | |
| 26 | - <td><%= _('Address') %></td> | |
| 27 | - <td><%= @repository.address %></td> | |
| 28 | - </tr> | |
| 29 | - <tr> | |
| 30 | - <td><%= _('Configuration') %></td> | |
| 31 | - <td><%= @configuration_name %></td> | |
| 32 | - </tr> | |
| 33 | - <tr> | |
| 34 | - <td><%= _('Status')%></td> | |
| 35 | - <td> | |
| 36 | - <div id="processing-state" style="color:DarkGoldenRod"><%= @processing.state %></div> | |
| 37 | - <div id="msg-time"></div> | |
| 38 | - </td> | |
| 39 | - </tr> | |
| 40 | -</table> | |
| 41 | - | |
| 42 | - | |
| 43 | -<br /> | |
| 44 | - | |
| 45 | -<div id="processing" data-profile="<%= @page.profile.identifier %>" data-content="<%= @page.id %>" | |
| 46 | - data-repository-id="<%= @repository.id %>"></div> | |
| 47 | -<div id="project-tree"></div> | |
| 48 | -<div id="module-result"></div> |