Skip to content

Instantly share code, notes, and snippets.

@jpemberthy
Created August 7, 2009 15:47
Show Gist options
  • Save jpemberthy/163968 to your computer and use it in GitHub Desktop.
Save jpemberthy/163968 to your computer and use it in GitHub Desktop.
Element.update("content", "\u003Ch4\u003ECreate New Document\u003C/h4\u003E\r\n\u003Cform action=\"/railfrog_admin/create_chunk\" method=\"post\" onsubmit=\"new Ajax.Request('/railfrog_admin/create_chunk', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false;\"\u003E\u003Cdiv style=\"margin:0;padding:0\"\u003E\u003Cinput name=\"authenticity_token\" type=\"hidden\" value=\"4a696668506e589c48c29ab99def55d274c768d0\" /\u003E\u003C/div\u003E\r\n \u003Cinput id=\"parent_id\" name=\"parent_id\" type=\"hidden\" value=\"3\" /\u003E\r\n \u003Cinput id=\"markup\" name=\"markup\" type=\"hidden\" value=\"html\" /\u003E\r\n \n\n\n\n\u003Cp\u003E\u003Clabel for=\"site_mapping_path_segment\"\u003EDocument Name\u003C/label\u003E\u003Cbr/\u003E\n\u003Cinput id=\"site_mapping_path_segment\" name=\"site_mapping[path_segment]\" size=\"30\" type=\"text\" value=\"\" /\u003E\u003Cbr/\u003E\n\u0026nbsp; \u0026nbsp; the document name will be the last part of the URL for this document\u003C/p\u003E\n\n\u003Cp\u003E\u003Clabel for=\"chunk_mime_type_str\"\u003EDocument Type\u003C/label\u003E\u003Cbr/\u003E\n\u003Cinput id=\"chunk_mime_type_str\" name=\"chunk[mime_type_str]\" size=\"30\" type=\"text\" value=\"\" /\u003E\u003C/p\u003E\n\n\u003Cp\u003E\u003Clabel for=\"site_mapping_is_internal\"\u003EIs Internal\u003C/label\u003E\u003Cbr/\u003E\n\u003Cinput id=\"site_mapping_is_internal\" name=\"site_mapping[is_internal]\" type=\"checkbox\" value=\"1\" /\u003E\u003Cinput name=\"site_mapping[is_internal]\" type=\"hidden\" value=\"0\" /\u003E\u003Cbr/\u003E\n\u0026nbsp; \u0026nbsp; internal documents can be included by layouts but not viewed directly\u003C/p\u003E\n\u003Cp\u003E\u003Clabel for=\"chunk_version_description\"\u003EDocument Description\u003C/label\u003E\u003Cbr/\u003E\n\u003Cinput id=\"chunk_description\" name=\"chunk[description]\" size=\"30\" type=\"text\" /\u003E\u003C/p\u003E\n\u003Cp\u003E\u003Clabel for=\"chunk_version_content\"\u003EContent\u003C/label\u003E\u003Cbr/\u003E\n\u003Ctextarea cols=\"40\" columns=\"80\" id=\"XinhaTextArea\" name=\"chunk_version[content]\" rows=\"50\" style=\"width: 100%;\"\u003E\u003C/textarea\u003E\u003C/p\u003E\n\u003Cp\u003E\u003Clabel for=\"chunk_version_comments\"\u003EComments\u003C/label\u003E\u003Cbr/\u003E\n\u003Cinput id=\"chunk_version_comments\" name=\"chunk_version[comments]\" size=\"30\" type=\"text\" /\u003E\u003C/p\u003E\n\n\r\n \u0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment