@@ 59-65 (lines=7) @@ | ||
56 | } |
|
57 | $html .= "<input name='$name' type='hidden' id='$id' />"; |
|
58 | ||
59 | if ($this->Config()->get("allow_name")) { |
|
60 | $fieldID = $id."_Name"; |
|
61 | $nameField = TextField::create($fieldID, _t("PageRaterStarField.NAME_LABEL", "Your Name")); |
|
62 | $nameField->addExtraClass("additionalComments"); |
|
63 | $html .= $nameField->FieldHolder(); |
|
64 | $this->moreFieldsArray[] = $fieldID; |
|
65 | } |
|
66 | ||
67 | if ($this->Config()->get("allow_title")) { |
|
68 | $fieldID = $id."_Title"; |
|
@@ 67-73 (lines=7) @@ | ||
64 | $this->moreFieldsArray[] = $fieldID; |
|
65 | } |
|
66 | ||
67 | if ($this->Config()->get("allow_title")) { |
|
68 | $fieldID = $id."_Title"; |
|
69 | $titleField = TextField::create($fieldID, _t("PageRaterStarField.TITLE_LABEL", "Comment Header")); |
|
70 | $titleField->addExtraClass("additionalComments"); |
|
71 | $html .= $titleField->FieldHolder(); |
|
72 | $this->moreFieldsArray[] = $fieldID; |
|
73 | } |
|
74 | ||
75 | if ($this->Config()->get("allow_comments")) { |
|
76 | $fieldID = $id."_Comment"; |
|
@@ 75-81 (lines=7) @@ | ||
72 | $this->moreFieldsArray[] = $fieldID; |
|
73 | } |
|
74 | ||
75 | if ($this->Config()->get("allow_comments")) { |
|
76 | $fieldID = $id."_Comment"; |
|
77 | $commentField = TextareaField::create($fieldID, _t("PageRaterStarField.COMMENTS_LABEL", "Any comments you may have")); |
|
78 | $commentField->addExtraClass("additionalComments"); |
|
79 | $html .= $commentField->FieldHolder(); |
|
80 | $this->moreFieldsArray[] = $fieldID; |
|
81 | } |
|
82 | $moreFieldsAsString = implode("', '", $this->moreFieldsArray); |
|
83 | Requirements::customScript(' |
|
84 | if(typeof PageRaterVariables === "undefined") { |