This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 15 files changed +20
-74
lines changed Expand file tree Collapse file tree 15 files changed +20
-74
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function getCommunityManageTabs($args)
43
43
$ fc = Zend_Controller_Front::getInstance ();
44
44
$ moduleWebroot = $ fc ->getBaseUrl ().'/communityagreement ' ;
45
45
46
- return array ('Agreement ' => $ moduleWebroot .'/config /agreementtab ' );
46
+ return array ('Agreement ' => $ moduleWebroot .'/community /agreementtab ' );
47
47
}
48
48
49
49
/**
@@ -56,7 +56,7 @@ public function getCommunityViewJSs()
56
56
$ fc = Zend_Controller_Front::getInstance ();
57
57
$ moduleUriroot = $ fc ->getBaseUrl ().'/modules/communityagreement ' ;
58
58
59
- return array ($ moduleUriroot .'/public/js/config/config .agreementenforce.js ' );
59
+ return array ($ moduleUriroot .'/public/js/community/community .agreementenforce.js ' );
60
60
}
61
61
62
62
/**
Original file line number Diff line number Diff line change 18
18
limitations under the License.
19
19
=========================================================================*/
20
20
21
- /**
22
- * Communityagreement_ConfigController
23
- *
24
- * @category Midas modules
25
- * @package communityagreement
26
- */
27
- class Communityagreement_ConfigController extends Communityagreement_AppController
21
+ /** Community controller for the community agreement module. */
22
+ class Communityagreement_CommunityController extends Communityagreement_AppController
28
23
{
29
24
public $ _models = array ('Community ' );
30
25
public $ _moduleModels = array ('Agreement ' );
31
- public $ _moduleForms = array ('Config ' );
32
-
33
- /**
34
- * @throws Zend_Exception on invalid userSession
35
- */
36
- public function indexAction ()
37
- {
38
- $ this ->requireAdminPrivileges ();
39
- }
26
+ public $ _moduleForms = array ('Community ' );
40
27
41
28
/** community agreement tab
42
29
*
@@ -70,7 +57,7 @@ public function agreementtabAction()
70
57
$ agreementDao = $ this ->Communityagreement_Agreement ->createAgreement ($ communityId , $ agreement );
71
58
}
72
59
73
- $ formAgreement = $ this ->ModuleForm ->Config ->createCreateAgreementForm ($ communityId );
60
+ $ formAgreement = $ this ->ModuleForm ->Community ->createCreateAgreementForm ($ communityId );
74
61
if ($ this ->_request ->isPost () && $ formAgreement ->isValid ($ this ->getRequest ()->getPost ())
75
62
) {
76
63
$ this ->disableView ();
Original file line number Diff line number Diff line change 18
18
limitations under the License.
19
19
=========================================================================*/
20
20
21
- /**
22
- * Communityagreement_ConfigForm
23
- *
24
- * @category Midas modules
25
- * @package communityagreement
26
- * @copyright Copyright (c) Kitware SAS. See Copyright.txt for details.
27
- */
28
- class Communityagreement_ConfigForm extends AppForm
21
+ /** Community form for the communityagreement module. */
22
+ class Communityagreement_CommunityForm extends AppForm
29
23
{
30
24
/**
31
25
* Create create_agreement form
@@ -37,7 +31,7 @@ public function createCreateAgreementForm($community_id)
37
31
{
38
32
$ form = new Zend_Form ();
39
33
$ form ->setAction (
40
- $ this ->webroot .'/communityagreement/config /agreementtab?communityId= ' .$ community_id
34
+ $ this ->webroot .'/communityagreement/community /agreementtab?communityId= ' .$ community_id
41
35
)->setMethod ('post ' );
42
36
$ agreement = new Zend_Form_Element_Textarea ('agreement ' );
43
37
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ $(document).ready(function () {
14
14
15
15
if ( hasAgreement == 'true' ) {
16
16
$ ( 'form#joinCommunityForm' ) . unbind ( 'submit' ) . submit ( function ( ) {
17
- midas . loadDialog ( 'agreement' , '/communityagreement/config /agreementdialog?communityId=' + json . community . community_id ) ;
17
+ midas . loadDialog ( 'agreement' , '/communityagreement/community /agreementdialog?communityId=' + json . community . community_id ) ;
18
18
midas . showDialog ( 'Community Agreement' , false , {
19
19
width : 500
20
20
} ) ;
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments