diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-03 17:53:05 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-03 17:53:05 +0000 |
commit | 4766f36a4d74924f21ff329c4318ce4e069ffa04 (patch) | |
tree | 969b84632f2a8b0db79788a8a6db8e41d63e5cb4 /mod/groups/views/default/forms/forums/addtopic.php | |
parent | 57a217fd6b708844407486046a1faa23b46cac08 (diff) | |
download | elgg-4766f36a4d74924f21ff329c4318ce4e069ffa04.tar.gz elgg-4766f36a4d74924f21ff329c4318ce4e069ffa04.tar.bz2 |
Pulled in the interface changes.
git-svn-id: http://code.elgg.org/elgg/trunk@5257 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/forms/forums/addtopic.php')
-rw-r--r-- | mod/groups/views/default/forms/forums/addtopic.php | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/mod/groups/views/default/forms/forums/addtopic.php b/mod/groups/views/default/forms/forums/addtopic.php new file mode 100644 index 000000000..d002b110a --- /dev/null +++ b/mod/groups/views/default/forms/forums/addtopic.php @@ -0,0 +1,101 @@ +<?php + + /** + * Elgg Groups topic edit/add page + * + * @package ElggGroups + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Curverider <info@elgg.com> + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.com/ + * + * @uses $vars['object'] Optionally, the topic to edit + */ + + // Set title, form destination + $title = elgg_echo("groups:addtopic"); + $action = "groups/addtopic"; + $tags = ""; + $title = ""; + $message = ""; + $message_id = ""; + $status = ""; + $access_id = ACCESS_DEFAULT; + + // get the group guid + $group_guid = (int) get_input('group_guid'); + + // set the title + echo elgg_view_title(elgg_echo("groups:addtopic")); + +?> +<div class="contentWrapper"> + <!-- display the input form --> + <form action="<?php echo $vars['url']; ?>action/<?php echo $action; ?>" method="post"> + <?php echo elgg_view('input/securitytoken'); ?> + + <p> + <label><?php echo elgg_echo("title"); ?><br /> + <?php + //display the topic title input + echo elgg_view("input/text", array( + "internalname" => "topictitle", + "value" => $title, + )); + ?> + </label> + </p> + + <!-- display the tag input --> + <p> + <label><?php echo elgg_echo("tags"); ?><br /> + <?php + + echo elgg_view("input/tags", array( + "internalname" => "topictags", + "value" => $tags, + )); + + ?> + </label> + </p> + + <!-- topic message input --> + <p class="longtext_editarea"> + <label><?php echo elgg_echo("groups:topicmessage"); ?><br /> + <?php + + echo elgg_view("input/longtext",array( + "internalname" => "topicmessage", + "value" => $message, + )); + ?> + </label> + </p> + + <!-- set the topic status --> + <p> + <label><?php echo elgg_echo("groups:topicstatus"); ?><br /> + <select name="status"> + <option value="open" <?php if($status == "") echo "SELECTED";?>><?php echo elgg_echo('groups:topicopen'); ?></option> + <option value="closed" <?php if($status == "closed") echo "SELECTED";?>><?php echo elgg_echo('groups:topicclosed'); ?></option> + </select> + </label> + </p> + + <!-- access --> + <p> + <label> + <?php echo elgg_echo('access'); ?><br /> + <?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $access_id)); ?> + </label> + </p> + + <!-- required hidden info and submit button --> + <p> + <input type="hidden" name="group_guid" value="<?php echo $group_guid; ?>" /> + <input type="submit" class="submit_button" value="<?php echo elgg_echo('save'); ?>" /> + </p> + + </form> +</div> |