Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
SecurityIntroView.php
1 <?php
2  /*********************************************************************************
3  * Zurmo is a customer relationship management program developed by
4  * Zurmo, Inc. Copyright (C) 2017 Zurmo Inc.
5  *
6  * Zurmo is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY ZURMO, ZURMO DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  *
13  * Zurmo is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  *
23  * You can contact Zurmo, Inc. with a mailing address at 27 North Wacker Drive
24  * Suite 370 Chicago, IL 60606. or at email address contact@zurmo.com.
25  *
26  * The interactive user interfaces in original and modified versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  *
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the Zurmo
32  * logo and Zurmo copyright notice. If the display of the logo is not reasonably
33  * feasible for technical reasons, the Appropriate Legal Notices must display the words
34  * "Copyright Zurmo Inc. 2017. All rights reserved".
35  ********************************************************************************/
36 
41  {
42  protected function renderIntroContent()
43  {
44  $this->registerScripts();
45  $content = $this->renderBasicIntroContent();
46  $content .= $this->renderAdvancedLinkContent();
47  $content .= $this->renderAdvancedIntroContent();
48  return $content;
49  }
50 
51  protected function renderBasicIntroContent()
52  {
54  $content = '<h1>' . Zurmo::t('ZurmoModule', 'How does security work in Zurmo?', $params). '</h1>';
55  $content .= '<div id="security-basic-intro" class="module-intro-steps clearfix">';
56  $content .= '<div class="third security-rights"><span class="icon"></span>';
57  $content .= '<p><strong>' . Zurmo::t('ZurmoModule', 'Rights') . '</strong>';
58  $content .= Zurmo::t('ZurmoModule', 'Rights control who can access modules, create records, and delete records in a module.');
59  $content .= '</p>';
60  $content .= '</div>';
61  $content .= '<div class="third security-permissions"><span class="icon"></span>';
62  $content .= '<p><strong>' . Zurmo::t('ZurmoModule', 'Permissions') . '</strong>';
63  $content .= Zurmo::t('ZurmoModule', 'Permissions control who can read, write, and delete specific records.');
64  $content .= '</p>';
65  $content .= '</div>';
66  $content .= '<div class="third security-roles"><span class="icon"></span>';
67  $content .= '<p><strong>' . Zurmo::t('ZurmoModule', 'Roles') . '</strong>';
68  $content .= Zurmo::t('ZurmoModule', 'Roles expand visibility allowing managers to read/write their employees\' records.');
69  $content .= '</p>';
70  $content .= '</div>';
71  $content .= '</div>';
72  return $content;
73  }
74 
75  protected function renderAdvancedLinkContent()
76  {
77  $content = Zurmo::t('ZurmoModule', 'Read more on advanced security features</u></b>');
78  return ZurmoHtml::tag('a', array('id' => 'security-advanced-toggle', 'class' => 'simple-link', 'href' => '#'), $content);
79  }
80 
81  protected function renderAdvancedIntroContent()
82  {
83  $content = '<div id="security-advanced-intro" class="module-intro-steps clearfix" style="display:none;">';
84  $content .= '<div class="third security-groups"><span class="icon"></span>';
85  $content .= '<p><strong>' . Zurmo::t('ZurmoModule', 'Groups') . '</strong>';
86  $content .= Zurmo::t('ZurmoModule', 'Groups are used to restrict rights and permissions for specific users.');
87  $content .= '</p>';
88  $content .= '</div>';
89  $content .= '<div class="third security-nested-groups"><span class="icon"></span>';
90  $content .= '<p><strong>' . Zurmo::t('ZurmoModule', 'Nested Groups') . '</strong>';
91  $content .= Zurmo::t('ZurmoModule', 'Nested groups or \'children\' groups allow additional flexibility in controlling what rights and permissions are restricted for users.');
92  $content .= '</p>';
93  $content .= '</div>';
94  $content .= '<div class="third security-adhoc-sharing"><span class="icon"></span>';
95  $content .= '<p><strong>' . Zurmo::t('ZurmoModule', 'Ad-hoc Sharing') . '</strong>';
96  $content .= Zurmo::t('ZurmoModule', 'Groups and nested groups can also be used to share records ad-hoc.');
97  $content .= '</p>';
98  $content .= '</div>';
99  $content .= '</div>';
100  return $content;
101  }
102 
103  protected function registerScripts()
104  {
105  parent::registerScripts();
106  $content = "$('#security-advanced-toggle').click(function()
107  {
108  $('#security-advanced-intro').toggle();
109  return false;
110  });";
111  Yii::app()->clientScript->registerScript('SecurityIntroAdvancedToggle', $content);
112  }
113  }
114 ?>
static getTranslationParamsForAllModules()
Definition: LabelUtil.php:75
Generated on Sat Nov 28 2020 07:10:48
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.