kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.2 KiB
56 lines
2.2 KiB
15 years ago
|
<%= javascript_include_tag 'jquery-1.4.2.min.js', :plugin => 'redmine_backlogs' %>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
var $j = jQuery.noConflict();
|
||
|
|
||
|
function enable_apply()
|
||
|
{
|
||
|
tasktracker = $j("#settings_task_tracker").val();
|
||
|
submit = $j('input[type=submit]')
|
||
|
|
||
|
|
||
|
disable = false;
|
||
|
log = tasktracker + '::'
|
||
|
$j("#settings_story_trackers :selected").each(function(i, selected){
|
||
|
disable = disable || ($j(selected).attr('value') == tasktracker);
|
||
|
});
|
||
|
if (disable) {
|
||
|
submit.attr('disabled', 'disabled');
|
||
|
} else {
|
||
|
submit.removeAttr('disabled');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$j(document).ready(function() {
|
||
|
$j("#settings_task_tracker").change(function() { enable_apply(); });
|
||
|
$j("#settings_story_trackers").change(function() { enable_apply(); });
|
||
|
|
||
|
enable_apply();
|
||
|
});
|
||
|
</script>
|
||
|
|
||
15 years ago
|
<p>
|
||
|
<%= content_tag(:label, l(:backlogs_story_tracker)) %>
|
||
15 years ago
|
<%= select_tag("settings[story_trackers]", options_from_collection_for_select(Tracker.all, :id, :name, Story.trackers), :multiple => true) %>
|
||
15 years ago
|
</p>
|
||
15 years ago
|
<p>
|
||
|
<%= content_tag(:label, l(:backlogs_task_tracker)) %>
|
||
15 years ago
|
<%= select_tag("settings[task_tracker]", options_from_collection_for_select(Tracker.all, :id, :name, Task.tracker)) %>
|
||
15 years ago
|
</p>
|
||
15 years ago
|
<p>
|
||
|
<%= content_tag(:label, l(:backlogs_points_burn_direction)) %>
|
||
|
<%= select_tag("settings[points_burn_direction]",
|
||
|
options_for_select([
|
||
|
[l(:label_points_burn_up), 'up'],
|
||
|
[l(:label_points_burn_down), 'down']
|
||
15 years ago
|
], Setting.plugin_redmine_backlogs[:points_burn_direction])) %>
|
||
15 years ago
|
</p>
|
||
15 years ago
|
<p>
|
||
|
<%= content_tag(:label, l(:backlogs_card_specification)) %>
|
||
15 years ago
|
<%= select_tag("settings[card_spec]", options_for_select(Cards::TaskboardCards::LABELS.keys.sort.collect{|label| [label, label]}, Setting.plugin_redmine_backlogs[:card_spec])) %>
|
||
15 years ago
|
</p>
|
||
15 years ago
|
<p>
|
||
|
<%= content_tag(:label, l(:backlogs_wiki_template)) %>
|
||
|
<%= text_field_tag("settings[wiki_template]", Setting.plugin_redmine_backlogs[:wiki_template]) %>
|
||
|
</p>
|