Merge pull request #1 from frywer/master

Update
This commit is contained in:
Javier Pastor 2020-02-01 11:49:15 +01:00 committed by GitHub
commit 6a4fe21c5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -1,5 +1,5 @@
<%= error_messages_for @custom_table %>
<div class="splitcontent">
<div class="splitcontentleft">
<div class="box tabular">
<p><%= f.text_field :name, size: 50, required: true %></p>
@ -54,6 +54,7 @@
</div>
</fieldset>
</div>
</div>
<script type="text/javascript">
window.ToggleCheckboxes = {

View File

@ -1,5 +1,5 @@
<%= error_messages_for 'custom_field' %>
<div class="splitcontent">
<div class="splitcontentleft">
<div class="box tabular">
<p><%= f.select :field_format, custom_field_formats_for_select(@custom_field), {}, :disabled => !@custom_field.new_record? %></p>
@ -112,5 +112,5 @@ when "IssueCustomField" %>
</fieldset>
<% end %>
</div>
</div>
<% include_calendar_headers_tags %>

View File

@ -2,12 +2,12 @@ Redmine::Plugin.register :custom_tables do
name 'Custom Tables plugin'
author 'Ivan Marangoz'
description 'This is a plugin for Redmine'
version '1.0.1'
version '1.0.4'
permission :manage_custom_tables, {
custom_entities: [:new, :edit, :create, :update, :destroy, :context_menu, :bulk_edit, :bulk_update],
}, global: true
Redmine::FieldFormat::UserFormat.customized_class_names << 'CustomEntity'
end
Redmine::MenuManager.map :admin_menu do |menu|
@ -15,4 +15,4 @@ Redmine::MenuManager.map :admin_menu do |menu|
:html => {:class => 'icon icon-package'}
end
Dir[File.join(File.dirname(__FILE__), '/lib/custom_tables/**/*.rb')].each { |file| require_dependency file }
Dir[File.join(File.dirname(__FILE__), '/lib/custom_tables/**/*.rb')].each { |file| require_dependency file }