aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/forms
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-10 17:13:37 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-10 17:13:37 +0000
commit409331a459355fb827aa33acf3275f3d618a2510 (patch)
treec300483fe791a99a4e6890cf507ddf7c9843078d /mod/groups/views/default/forms
parent755367a31d3c1dbc1cc24ce270a217d2390cbe44 (diff)
downloadelgg-409331a459355fb827aa33acf3275f3d618a2510.tar.gz
elgg-409331a459355fb827aa33acf3275f3d618a2510.tar.bz2
Updated Groups to the new interface. Some view clean-up & simplification done.
git-svn-id: http://code.elgg.org/elgg/trunk@5348 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/forms')
-rw-r--r--mod/groups/views/default/forms/forums/addpost.php42
-rw-r--r--mod/groups/views/default/forms/forums/addtopic.php52
2 files changed, 48 insertions, 46 deletions
diff --git a/mod/groups/views/default/forms/forums/addpost.php b/mod/groups/views/default/forms/forums/addpost.php
index 004638f33..8aa316caa 100644
--- a/mod/groups/views/default/forms/forums/addpost.php
+++ b/mod/groups/views/default/forms/forums/addpost.php
@@ -13,28 +13,22 @@
*/
?>
- <form action="<?php echo $vars['url']; ?>action/groups/addpost" method="post">
- <p class="longtext_editarea">
- <label><?php echo elgg_echo("groups:reply"); ?><br />
- <?php
-
- echo elgg_view("input/longtext",array(
- "internalname" => "topic_post",
- "value" => $body,
- ));
- ?>
- </label>
- </p>
- <p>
- <!-- pass across the topic guid -->
- <input type="hidden" name="topic_guid" value="<?php echo $vars['entity']->guid; ?>" />
- <input type="hidden" name="group_guid" value="<?php echo $vars['entity']->container_guid; ?>" />
-
-<?php
- echo elgg_view('input/securitytoken');
-?>
- <!-- display the save button -->
- <input type="submit" class="submit_button" value="<?php echo elgg_echo('save'); ?>" />
- </p>
+<form action="<?php echo $vars['url']; ?>action/groups/addpost" method="post" class="margin_top">
+ <label><?php echo elgg_echo("groups:reply"); ?><br />
+ <?php
- </form> \ No newline at end of file
+ echo elgg_view("input/longtext",array(
+ "internalname" => "topic_post",
+ "value" => $body,
+ ));
+ ?>
+ </label>
+
+ <!-- pass across the topic guid -->
+ <input type="hidden" name="topic_guid" value="<?php echo $vars['entity']->guid; ?>" />
+ <input type="hidden" name="group_guid" value="<?php echo $vars['entity']->container_guid; ?>" />
+
+ <?php echo elgg_view('input/securitytoken'); ?>
+ <!-- display the save button -->
+ <input type="submit" class="submit_button" value="<?php echo elgg_echo('post'); ?>" />
+</form> \ No newline at end of file
diff --git a/mod/groups/views/default/forms/forums/addtopic.php b/mod/groups/views/default/forms/forums/addtopic.php
index e9fbb7109..37075aa6d 100644
--- a/mod/groups/views/default/forms/forums/addtopic.php
+++ b/mod/groups/views/default/forms/forums/addtopic.php
@@ -1,32 +1,40 @@
<?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
- */
+/**
+ * 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;
+ $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');
+ $group_guid = (int) get_input('group_guid');
+
+ // set breadcrumbs
+ echo elgg_view('page_elements/breadcrumbs', array(
+ 'breadcrumb_root_url' => '',
+ 'breadcrumb_root_text' => 'Parent Group Name',
+ 'breadcrumb_level1_url' => '#',
+ 'breadcrumb_level1_text' => elgg_echo('item:object:groupforumtopic'),
+ 'breadcrumb_currentpage' => elgg_echo("groups:addtopic")
+ ));
// set the title
- echo elgg_view_title(elgg_echo("groups:addtopic"));
+ echo elgg_view_title(elgg_echo("groups:addtopic"));
?>
<!-- display the input form -->