summaryrefslogtreecommitdiff
path: root/includes/view
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-03-09 13:12:46 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-03-09 13:12:46 +0100
commit98f355cd86828ccb8a24f24ab06c29d53bff530c (patch)
tree7fa647c06f260ffcb8a7c8189fb4ed8d02c88b18 /includes/view
parent893bb5a9cf365c831e75fafc83dffdbced09a466 (diff)
added angeltype description
Diffstat (limited to 'includes/view')
-rw-r--r--includes/view/AngelTypes_view.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/includes/view/AngelTypes_view.php b/includes/view/AngelTypes_view.php
index f0ab0e42..e8e1f56d 100644
--- a/includes/view/AngelTypes_view.php
+++ b/includes/view/AngelTypes_view.php
@@ -10,7 +10,7 @@ function AngelType_delete_view($angeltype) {
));
}
-function AngelType_edit_view($name, $restricted) {
+function AngelType_edit_view($name, $restricted, $description) {
return page(array(
buttons(array(
button(page_link_to('angeltypes'), _("Angeltypes"), 'back')
@@ -20,6 +20,8 @@ function AngelType_edit_view($name, $restricted) {
form_text('name', _("Name"), $name),
form_checkbox('restricted', _("Restricted"), $restricted),
form_info("", _("Restricted angel types can only be used by an angel if enabled by an archangel (double opt-in).")),
+ form_textarea('description', _("Description"), $description),
+ form_info("", _("Please use markdown for the description.")),
form_submit('submit', _("Save"))
))
));
@@ -48,8 +50,11 @@ function AngelType_view($angeltype, $members, $user_angeltype, $admin_user_angel
buttons($buttons)
);
- // $page[] = '<h3>' . _("Info") . '</h3>';
- // Description + Team-Coordinators
+ $page[] = '<h3>' . _("Description") . '</h3>';
+ $parsedown = new Parsedown();
+ $page[] = $parsedown->parse($angeltype['description']);
+
+ // Team-Coordinators list missing
$page[] = '<h3>' . _("Members") . '</h3>';
$members_confirmed = array();