Created
March 1, 2012 22:48
-
-
Save rsanchez/1953785 to your computer and use it in GitHub Desktop.
safecracker bp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{if logged_in_group_id != 1}{redirect='404'}{/if} | |
<html> | |
<head> | |
<link href="{path=css/_ee_saef_css}" type="text/css" rel="stylesheet" media="screen" /> | |
<style type="text/css"> | |
.error { color: red; } | |
</style> | |
</head> | |
<body> | |
{exp:safecracker channel="{segment_3}" return="site/safecracker/{segment_3}/ENTRY_ID" entry_id="{segment_4}"} | |
{global_errors} | |
<p class="error">{error}</p> | |
{/global_errors} | |
<label for="author_id">Author</label> | |
<select name="author_id" id="author_id"> | |
{exp:query sql="SELECT member_id, screen_name FROM exp_members"} | |
<option value="{member_id}" {if "{author_id}" == "{member_id}"}selected="selected"{/if}>{screen_name}</option> | |
{/exp:query} | |
</select> | |
<label for="title">Title</label> | |
<input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();" /> | |
<label for="url_title">URL Title</label> | |
<input type="text" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50" /> | |
{custom_fields} | |
<label for="{field_name}">{if required}* {/if}{field_label}</label> | |
{if error} | |
<p class="error">{error}</p> | |
{/if} | |
{field_instructions} | |
{formatting_buttons} | |
{display_field} | |
{/custom_fields} | |
{status_menu} | |
<label for="status">Status</label> | |
<select name="status" id="status"> | |
{select_options} | |
</select> | |
{/status_menu} | |
<label for="entry_date">Date</label> | |
<input type="text" name="entry_date" id="entry_date" value="{entry_date}" maxlength="23" size="25" /> | |
<label for="expiration_date">Expiration Date</label> | |
<input type="text" name="expiration_date" id="expiration_date" value="{expiration_date}" maxlength="23" size="25" /> | |
<label for="comment_expiration_date">Comment Expiration Date</label> | |
<input type="text" name="comment_expiration_date" id="comment_expiration_date" value="{comment_expiration_date}" maxlength="23" size="25" /> | |
<label class="checkbox"><input type="checkbox" name="sticky" value="y" {sticky} /> Make Entry Sticky</label> | |
<label class="checkbox"><input type="checkbox" name="allow_comments" value="y" {allow_comments} /> Allow Comments</label> | |
<label class="checkbox"><input type="checkbox" name="dst_enabled" value="y" {dst_enabled} />DST Active on Date of Entry</label> | |
{category_menu} | |
<label for="categories">Categories</label> | |
<select name="category[]" id="categories" size="4" multiple="multiple"> | |
{select_options} | |
</select> | |
{/category_menu} | |
<input type="submit" name="submit" value="Submit" /> | |
{/exp:safecracker} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment