unless @attribute_name == :notes
unless @issue.safe_attribute_names.include?(@attribute_name)
logger.warn "### quick edit ### no safe attribute. target_specifier=" + @target_specifier
- render_404
+ @error_message = l(:text_can_not_edit)
+ render
end
end
--- /dev/null
+<div id="quick_edit_input_dialog" class="flash error"
+ style="display: none; z-index: 1000; position: fixed; top: 10px; left: 10px; opacity: 0.9; min-width: 300px; background-color: #ffe3e3;">
+ <div style="padding: 10px 5px;">
+ <span><%= @error_message %></span>
+ </div>
+</div>
+
+<script>
+//<![CDATA[
+ var dialog = $("#quick_edit_input_dialog");
+ dialog.fadeIn(500, function () {
+ setTimeout( function() { dialog.fadeOut(); }, 3000)
+ });
+ $("#quick_edit_input_dialog").click( function(e) { e.stopPropagation(); } );
+//]]>
+</script>
$("#quick_edit_input_dialogs").html(
+ <% if @error_message.nil? %>
"<%= escape_javascript(render :partial => 'input_dialog', :layout => false ) %>"
+ <% else %>
+ "<%= escape_javascript(render :partial => 'error_dialog', :layout => false ) %>"
+ <% end %>
);
text_invalid_format: invalid format.
text_multiple_update_confirm: You selected many issues to be the non unique value.\nAre you sure you want to update?
+ text_can_not_edit: This value can't be edited.
text_none_is_invalid: noneは特別な意味を持つため指定できません。
text_invalid_format: 入力された値の書式に誤りがあります。
text_multiple_update_confirm: 複数のチケットが同じ値に更新されます。よろしいですか?
+
+ text_can_not_edit: この値は編集できません。