commit
6a4fe21c5f
@ -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 = {
|
||||
|
@ -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 %>
|
||||
|
6
init.rb
6
init.rb
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user