@@ -120,13 +120,13 @@ |
||
120 | 120 | $grid->set_option('loadonce', true) |
121 | 121 | ->set_option('grouping', true) |
122 | 122 | ->set_option('groupingView', [ |
123 | - 'groupField' => ['status'], |
|
124 | - 'groupColumnShow' => [false], |
|
125 | - 'groupText' => ['<strong>{0}</strong> ({1})'], |
|
126 | - 'groupOrder' => ['asc'], |
|
127 | - 'groupSummary' => [true], |
|
128 | - 'showSummaryOnHide' => true |
|
129 | - ]) |
|
123 | + 'groupField' => ['status'], |
|
124 | + 'groupColumnShow' => [false], |
|
125 | + 'groupText' => ['<strong>{0}</strong> ({1})'], |
|
126 | + 'groupOrder' => ['asc'], |
|
127 | + 'groupSummary' => [true], |
|
128 | + 'showSummaryOnHide' => true |
|
129 | + ]) |
|
130 | 130 | ->set_option('sortname', $sortname) |
131 | 131 | ->set_option('sortorder', $sortorder); |
132 | 132 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php echo $data['renderer']->block($data['form'], 'form_start'); ?> |
2 | 2 | <div class="maa_permissions_assignees"> |
3 | 3 | <?php |
4 | - if (empty($data['form']->children['add_assignee']->vars['value'])) { |
|
5 | - echo $data['renderer']->label($data['form']->children['add_assignee']); |
|
4 | + if (empty($data['form']->children['add_assignee']->vars['value'])) { |
|
5 | + echo $data['renderer']->label($data['form']->children['add_assignee']); |
|
6 | 6 | echo $data['renderer']->widget($data['form']->children['add_assignee']); |
7 | - } |
|
8 | - ?> |
|
7 | + } |
|
8 | + ?> |
|
9 | 9 | </div> |
10 | 10 | <table class="maa_permissions_items"> |
11 | 11 | <thead> |
@@ -8,6 +8,6 @@ |
||
8 | 8 | echo '<li' . ($link['selected'] ? ' class="selected"' : '') . '>'; |
9 | 9 | echo '<a href="' . $link['url'] . '/">' . $link['label'] . '</a></li>'; |
10 | 10 | } |
11 | - ?> |
|
11 | + ?> |
|
12 | 12 | </ul> |
13 | 13 | </div> |
14 | 14 | \ No newline at end of file |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | if ( !$this->can_do('midgard:update') |
219 | 219 | || !$this->can_do('midgard:parameters')) { |
220 | 220 | debug_add("Failed to set parameters, midgard:update or midgard:parameters on the " . get_class($this) . " {$this->guid} not granted for the current user.", |
221 | - MIDCOM_LOG_ERROR); |
|
221 | + MIDCOM_LOG_ERROR); |
|
222 | 222 | midcom_connection::set_error(MGD_ERR_ACCESS_DENIED); |
223 | 223 | return false; |
224 | 224 | } |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | if ( !$this->can_do('midgard:update') |
272 | 272 | || !$this->can_do('midgard:parameters')) { |
273 | 273 | debug_add("Failed to delete parameters, midgard:update or midgard:parameters on the " . get_class($this) . " {$this->guid} not granted for the current user.", |
274 | - MIDCOM_LOG_ERROR); |
|
274 | + MIDCOM_LOG_ERROR); |
|
275 | 275 | midcom_connection::set_error(MGD_ERR_ACCESS_DENIED); |
276 | 276 | return false; |
277 | 277 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <div class="content-with-sidebar"> |
2 | 2 | <div class="main"> |
3 | 3 | <?php |
4 | - $data['view']->display_view(); |
|
4 | + $data['view']->display_view(); |
|
5 | 5 | $prefix = midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ANCHORPREFIX); |
6 | 6 | midcom::get()->dynamic_load($prefix . 'members/' . $data['group']->guid . '/'); |
7 | 7 | ?> |
@@ -26,7 +26,7 @@ |
||
26 | 26 | echo '<span class="toolbar_label">' . $data['l10n_midcom']->get('delete') . '</span></a></li>'; |
27 | 27 | if ( midcom::get()->config->get('auth_allow_trusted') === true |
28 | 28 | && $data['person']->can_do('org.openpsa.user:su')) { |
29 | - echo '<li><a class="button" href="' . $data['router']->generate('account_su', ['guid' => $data['person']->guid]) . '" />' . $data['l10n']->get('switch to user') . "</a></li>\n"; |
|
29 | + echo '<li><a class="button" href="' . $data['router']->generate('account_su', ['guid' => $data['person']->guid]) . '" />' . $data['l10n']->get('switch to user') . "</a></li>\n"; |
|
30 | 30 | } |
31 | 31 | echo "</ul>\n"; |
32 | 32 | } |
@@ -37,7 +37,6 @@ |
||
37 | 37 | - 1: MIDCOM_PRIVILEGE_ALLOW |
38 | 38 | - 2: MIDCOM_PRIVILEGE_DENY |
39 | 39 | - 3: MIDCOM_PRIVILEGE_INHERIT |
40 | - |
|
41 | 40 | * @property string $guid |
42 | 41 | * @package midcom |
43 | 42 | */ |
@@ -103,12 +103,12 @@ |
||
103 | 103 | if (!empty($guid)) { |
104 | 104 | //pass the urls & titles for the tabs |
105 | 105 | $tabdata[] = [ |
106 | - 'url' => '__mfa/org.openpsa.relatedto/journalentry/' . $guid . '/', |
|
107 | - 'title' => midcom::get()->i18n->get_string('journal entries', 'org.openpsa.relatedto'), |
|
106 | + 'url' => '__mfa/org.openpsa.relatedto/journalentry/' . $guid . '/', |
|
107 | + 'title' => midcom::get()->i18n->get_string('journal entries', 'org.openpsa.relatedto'), |
|
108 | 108 | ]; |
109 | 109 | $tabdata[] = [ |
110 | - 'url' => '__mfa/org.openpsa.relatedto/render/' . $guid . '/both/', |
|
111 | - 'title' => midcom::get()->i18n->get_string('related objects', 'org.openpsa.relatedto'), |
|
110 | + 'url' => '__mfa/org.openpsa.relatedto/render/' . $guid . '/both/', |
|
111 | + 'title' => midcom::get()->i18n->get_string('related objects', 'org.openpsa.relatedto'), |
|
112 | 112 | ]; |
113 | 113 | } |
114 | 114 |
@@ -5,29 +5,29 @@ |
||
5 | 5 | ?> |
6 | 6 | <div class="area org_openpsa_helper_box"><h3><?php echo $data['l10n']->get('offers'); ?></h3> |
7 | 7 | <ul><?php |
8 | - foreach ($data['offers'] as $offer) { |
|
9 | - echo '<li><span class="org_openpsa_helpers_fileinfo">'; |
|
10 | - $attachment = $offer->get_file(); |
|
11 | - $delete_link = $data['router']->generate('delete_offer', ['guid' => $offer->guid]); |
|
12 | - $edit_link = $data['router']->generate('edit_offer', ['guid' => $offer->guid]); |
|
8 | + foreach ($data['offers'] as $offer) { |
|
9 | + echo '<li><span class="org_openpsa_helpers_fileinfo">'; |
|
10 | + $attachment = $offer->get_file(); |
|
11 | + $delete_link = $data['router']->generate('delete_offer', ['guid' => $offer->guid]); |
|
12 | + $edit_link = $data['router']->generate('edit_offer', ['guid' => $offer->guid]); |
|
13 | 13 | |
14 | - if (!empty($attachment)) { |
|
15 | - $url = midcom_db_attachment::get_url($attachment); |
|
16 | - echo '<a href="' . $url . '" class="icon"><i class="fa fa-file-text-o"></i></a>'; |
|
17 | - } |
|
18 | - echo '<span class="info">'; |
|
19 | - echo '<span class="filename">' . $offer->get_label(); |
|
20 | - echo ' <a class="actions" href="' . $delete_link . '"><i class="fa fa-trash" title="' . $data['l10n_midcom']->get('delete') . '"></i></a>'; |
|
21 | - echo ' <a class="actions" ' . $wf->render_attributes() . ' href="' . $edit_link . '"><i class="fa fa-pencil" title="' . $data['l10n_midcom']->get('edit') . '"></i></a>'; |
|
22 | - echo "</span>\n"; |
|
23 | - if (!empty($attachment)) { |
|
24 | - echo ' <span class="date">' . $formatter->datetime($attachment->metadata->revised) . '</span> '; |
|
25 | - $person_card = org_openpsa_widgets_contact::get($attachment->metadata->revisor); |
|
26 | - echo $person_card->show_inline(); |
|
27 | - } |
|
28 | - echo "</span></span></li>\n"; |
|
29 | - } |
|
30 | - ?> |
|
14 | + if (!empty($attachment)) { |
|
15 | + $url = midcom_db_attachment::get_url($attachment); |
|
16 | + echo '<a href="' . $url . '" class="icon"><i class="fa fa-file-text-o"></i></a>'; |
|
17 | + } |
|
18 | + echo '<span class="info">'; |
|
19 | + echo '<span class="filename">' . $offer->get_label(); |
|
20 | + echo ' <a class="actions" href="' . $delete_link . '"><i class="fa fa-trash" title="' . $data['l10n_midcom']->get('delete') . '"></i></a>'; |
|
21 | + echo ' <a class="actions" ' . $wf->render_attributes() . ' href="' . $edit_link . '"><i class="fa fa-pencil" title="' . $data['l10n_midcom']->get('edit') . '"></i></a>'; |
|
22 | + echo "</span>\n"; |
|
23 | + if (!empty($attachment)) { |
|
24 | + echo ' <span class="date">' . $formatter->datetime($attachment->metadata->revised) . '</span> '; |
|
25 | + $person_card = org_openpsa_widgets_contact::get($attachment->metadata->revisor); |
|
26 | + echo $person_card->show_inline(); |
|
27 | + } |
|
28 | + echo "</span></span></li>\n"; |
|
29 | + } |
|
30 | + ?> |
|
31 | 31 | </ul> |
32 | 32 | </div> |
33 | 33 | <?php } ?> |
34 | 34 | \ No newline at end of file |