From 98f355cd86828ccb8a24f24ab06c29d53bff530c Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sun, 9 Mar 2014 13:12:46 +0100 Subject: added angeltype description --- includes/view/AngelTypes_view.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'includes/view/AngelTypes_view.php') 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[] = '

' . _("Info") . '

'; - // Description + Team-Coordinators + $page[] = '

' . _("Description") . '

'; + $parsedown = new Parsedown(); + $page[] = $parsedown->parse($angeltype['description']); + + // Team-Coordinators list missing $page[] = '

' . _("Members") . '

'; $members_confirmed = array(); -- cgit v1.2.3-70-g09d2