/** * Renders attachment based on Object type * * @param void * @return string */ function render($element_name) { switch ($this->getRelObjectManager()) { case 'Companies': case 'Contacts': case 'ProjectFiles': case 'ProjectMessages': case 'ProjectMilestones': case 'ProjectTasks': case 'ProjectTaskLists': case 'ProjectTickets': return text_field($element_name, $this->getText()); break; default: return textarea_field($element_name, $this->getText(), array('class' => 'short')); break; } // switch }
form['task[text]'].value = editor.getData(); return true; }; </script> <?php }else{?> <div> <?php if(array_var($task_data, 'type_content') == "text"){ $content_text = array_var($task_data, 'text'); }else{ $content_text = html_to_text(html_entity_decode(nl2br(array_var($task_data, 'text')), null, "UTF-8")); } ?> <?php echo label_tag(lang('description'), $genid . 'taskListFormDescription') ?> <?php echo textarea_field('task[text]', $content_text, array('class' => 'huge', 'id' => $genid . 'taskListFormDescription', 'tabindex' => '140')) ?> </div> <script> og.setDescription = function() { return true; }; </script> <?php }?> </div> <?php foreach ($categories as $category) { ?> <div <?php if (!$category['visible']) echo 'style="display:none"' ?> id="<?php echo $genid . $category['name'] ?>"> <fieldset> <legend><?php echo lang($category['name'])?><?php if ($category['required']) echo ' <span class="label_required">*</span>'; ?></legend> <?php echo $category['content'] ?> </fieldset>
<div> <?php echo label_tag(lang('massmailer subject'), 'massmailerFormRecipient', true); ?> <?php echo text_field('massmailer[subject]', array_var($massmailer_data, 'subject'), array('id' => 'massmailerFormRecipient', 'class' => 'title')); ?> </div> <div> <?php echo label_tag(lang('massmailer message'), 'massmailerFormMessage', true); ?> <?php echo textarea_field('massmailer[message]', array_var($massmailer_data, 'message'), array('id' => 'massmailerFormMessage', 'class' => 'editor')); ?> </div> <h2><?php echo lang('massmailer recipients'); ?> </h2> <?php foreach ($grouped_users as $company_name => $company_details) { $company_id = $company_details['details']->getId(); ?> <script type="text/javascript"> App.modules.massmailerForm.controls['company_' + <?php echo $company_id;
<div> <?php echo label_tag(lang('test mail recipient'), 'testMailFormRecipient', true); ?> <?php echo text_field('test_mail[recipient]', array_var($test_mail_data, 'recipient'), array('id' => 'testMailFormRecipient', 'class' => 'long')); ?> </div> <div> <?php echo label_tag(lang('test mail message'), 'testMailFormMessage', true); ?> <?php echo textarea_field('test_mail[message]', array_var($test_mail_data, 'message'), array('id' => 'testMailFormMessage')); ?> </div> <?php echo submit_button(lang('submit')); ?> </form> <?php if (extension_loaded('sockets')) { ?> <div>Socket functions are available so mailing is possible from PHP level</div> <?php } else { ?>
<div> <?php echo label_tag(lang('priority'), 'projectFormPriority'); ?> <?php echo input_field('project[priority]', array_var($project_data, 'priority'), array('class' => 'short', 'id' => 'projectFormPriority')); ?> </div> <div> <?php echo label_tag(lang('description'), 'projectFormDescription'); ?> <?php echo textarea_field('project[description]', array_var($project_data, 'description'), array('id' => 'projectFormDescription')); ?> </div> <div> <?php echo label_tag(lang('show project desciption in overview')); ?> <?php echo yes_no_widget('project[show_description_in_overview]', 'projectFormShowDescriptionInOverview', array_var($project_data, 'show_description_in_overview'), lang('yes'), lang('no')); ?> </div> <?php if ($project->isNew() && config_option('enable_efqm') == 'yes') { ?> <div>
<th> </th> <th> </th> <th> </th> </tr> <?php for ($i = 0; $i < 6; $i++) { ?> <tr class="<?php echo $i % 2 ? 'odd' : 'even'; ?> "> <td><?php echo label_tag(lang('description'), null, false); ?> <?php echo textarea_field("task_list[task{$i}][text]", array_var($task_list_data["task{$i}"], 'text'), array('class' => 'short')); ?> </td> <td><?php echo label_tag(lang('start date'), null, false); ?> <div><?php echo pick_date_widget("task_list_task{$i}_start_date", array_var($task_list_data["task{$i}"], 'start_date')); ?> </div> <?php echo label_tag(lang('due date'), null, false); ?> <?php echo pick_date_widget("task_list_task{$i}_due_date", array_var($task_list_data["task{$i}"], 'due_date')); ?>
set_page_title(lang('files add revision')); project_tabbed_navigation(PROJECT_TAB_FILES); project_crumbs(array(array(lang('files'), get_url('files')), lang('files add revision'))); add_stylesheet_to_page('project/files.css'); ?> <form action="<?php echo $file->getAddRevisionUrl(); ?> " method="post" enctype="multipart/form-data"> <div id="fileRevisionComment"> <?php echo label_tag(lang('revision comment'), 'fileRevisionComment'); ?> <?php echo textarea_field('revision[comment]', array_var($revision_data, 'comment'), array('class' => 'short', 'id' => 'fileRevisionComment')); ?> </div> <div class="hint"> <div class="content"> <div> <?php echo label_tag(lang('new file'), 'fileRevisionFile', true); ?> <?php echo file_field('file_file', null, array('id' => 'fileRevisionFile')); ?> </div> </div> </div> <?php
<div> <?php echo label_tag(lang('name'), 'milestoneFormName', true); ?> <?php echo text_field('milestone[name]', array_var($milestone_data, 'name'), array('class' => 'long', 'id' => 'milestoneFormName')); ?> </div> <div> <?php echo label_tag(lang('description'), 'milestoneFormDesc'); ?> <?php echo textarea_field('milestone[description]', array_var($milestone_data, 'description'), array('class' => 'short', 'id' => 'milestoneFormDesc')); ?> </div> <div> <?php echo label_tag(lang('due date'), null, true); ?> <?php echo pick_date_widget('milestone_due_date', array_var($milestone_data, 'due_date')); ?> </div> <?php if (logged_user()->getProjectPermission($milestone->getProject(), 'milestones-edit_goal')) { ?>
</table> </div> </div> <div class="clear"></div> <div class="input-container"> <div id="<?php echo $genid; ?> add_contact_notes"> <?php echo label_tag(lang('notes'), $genid . 'profileFormNotes'); ?> <div style="float:left;width:600px;" class="notes-container"> <?php echo textarea_field('contact[comments]', array_var($contact_data, 'comments'), array('id' => $genid . 'profileFormNotes', 'style' => 'width: 100%;', 'rows' => 5)); ?> </div> </div> </div> <div class="clear"></div> </div> </div> <script> $(document).ready(function() { var is_new_contact = <?php echo $new_contact ? 'true' : 'false';
echo clean($category->getName()); ?> </a></div> <?php } // if ?> </div> <div> <?php echo label_tag(lang('description'), 'categoryFormDescription'); if ($canEdit) { ?> <?php echo textarea_field('category[description]', array_var($category_data, 'description'), array('id' => 'categoryFormDescription', 'class' => 'short')); } else { ?> <div class="desc"><?php echo clean($category->getDescription()); ?> </a></div> <?php } // if ?> </div> <?php if ($canEdit) { ?>
<fieldset> <legend><?php echo lang($category['name'])?><?php if ($category['required']) echo ' <span class="label_required">*</span>'; ?></legend> <?php echo $category['content'] ?> </fieldset> </div> <?php } ?> <?php if ($file->getType() == ProjectFiles::TYPE_WEBLINK) { ?> <div> <?php echo checkbox_field('file[version_file_change]', array_var($file_data, 'version_file_change', false), array('id' => $genid.'fileFormVersionChange', 'class' => 'checkbox', 'tabindex' => '70')) ?> <?php echo label_tag(lang('version file change'), $genid.'fileFormVersionChange', false, array('class' => 'checkbox'), '') ?> </div> <div id="<?php echo $genid ?>fileFormRevisionCommentBlock"> <?php echo label_tag(lang('revision comment'), $genid.'fileFormRevisionComment', $comments_required) ?> <?php echo textarea_field('file[revision_comment]', array_var($file_data, 'revision_comment'), array('class' => 'long', 'tabindex' => '75', 'id' => $genid.'fileFormRevisionComment')) ?> <input type='hidden' id ="<?php echo $genid ?>RevisionCommentsRequired" value="<?php echo $comments_required? '1':'0'?>"/> </div> <?php } ?> <div id="<?php echo $genid ?>fileSubmitButton" style="display: inline"> <input type="hidden" name="upload_id" value="<?php echo $genid ?>" /> <?php if (!$file->isNew()) { //Edit file if (isset($checkin) && $checkin) { echo submit_button(lang('checkin file'),'s',array("id" => $genid.'add_file_submit2', 'tabindex' => '200')); } else { echo submit_button(lang('save changes'),'s',array("id" => $genid.'add_file_submit2', 'tabindex' => '200')); } } else { //New file echo submit_button(lang('add file'),'s',array("id" => $genid.'add_file_submit2', 'tabindex' => '200'));
<div> <?php echo label_tag(lang('url'), 'linkFormUrl', true); ?> <?php echo text_field('project_link[url]', array_var($project_link_data, 'url'), array('id' => 'linkFormUrl', 'class' => 'long')); ?> </div> <div> <?php echo label_tag(lang('description'), 'linkFormDescription', true); ?> <?php echo textarea_field('project_link[description]', array_var($project_link_data, 'description'), array('id' => 'linkFormDescription', 'class' => 'long')); ?> </div> <div> <?php echo label_tag(lang('folder'), 'linkFormFolder', true); ?> <?php echo select_project_folder('project_link[folder_id]', active_project(), array_var($project_link_data, 'folder_id'), array('id' => 'linkFormFolder')); ?> </div> <?php if (plugin_active('tags')) { ?>
" method="POST"> <?php } tpl_display(get_template_path('form_errors')); ?> <div id="wiki-field-name"> <?php echo label_tag(lang('name'), 'wikiFormName', true); echo text_field('wiki[name]', $revision->getName(), array('class' => 'long', 'id' => 'wikiFormName')); ?> </div> <div id="wiki-field-content"> <?php echo label_tag(lang('wiki page content'), 'wikiFormContent', true); echo textarea_field('wiki[content]', $data['content'], array('cols' => 132, 'class' => 'shot', 'id' => 'wikiFormContent')); echo submit_button(lang('preview'), 'p', array('name' => 'wiki[preview]')); echo label_tag(lang('preview'), 'wikiFormPreview', false); ?> <div class="preview"><?php echo do_textile(plugin_manager()->apply_filters('wiki_text', $data['preview_content'])); ?> </div> </div> <div id="wiki-field-log"> <?php echo label_tag(lang('wiki log message'), 'wikiFormLog'); echo text_field('wiki[log_message]', $page->isNew() ? lang('wiki page created') : '', array('class' => 'long', 'id' => 'wikiFormLog')); if (plugin_active('tags')) { echo label_tag(lang('tags'), 'wikiFormTags'); echo text_field('wiki[tags]', $tags, array('class' => 'long', 'id' => 'wikiFormTags'));
</td><td style="text-align:right"><?php echo submit_button($timeslot->isNew() ? lang('add timeslot') : lang('save changes'), 's', array('style' => 'margin-top:0px;margin-left:10px')); ?> </td></tr></table> </div> </div> </div> <div class="coInputSeparator"></div> <div class="coInputMainBlock"> <div class="formAddTimeslotDescription"> <?php echo label_tag(lang('description'), 'addTimeslotDescription', false); ?> <?php echo textarea_field("timeslot[description]", array_var($timeslot_data, 'description'), array('class' => 'short', 'id' => 'addTimeslotDescription', 'tabindex' => '10')); ?> </div> <table> <tr> <td><b><?php echo lang("start date"); ?> : </b></td> <td align='left'><?php $start_time = new DateTimeValue($timeslot->getStartTime()->getTimestamp() + logged_user()->getTimezone() * 3600); echo pick_date_widget2('timeslot[start_value]', $start_time, $genid, 20); ?> </td> </tr>
} } echo '<div id="value' . $count . '">'; if ($customProp->getType() == 'memo') { echo textarea_field($name . '[]', '', array('tabindex' => $startTi + $ti, 'id' => $name . '[]')); } else { echo text_field($name . '[]', '', array('tabindex' => $startTi + $ti, 'id' => $name . '[]')); } echo ' <a href="#" class="link-ico ico-add" onclick="og.addCPValue(' . $customProp->getId() . ',\'' . $isMemo . '\')">' . lang('add value') . '</a><br/>'; echo '</div>'; echo '</div>'; echo "</td></tr></table>"; $include_script = true; } else { if ($customProp->getType() == 'memo') { echo textarea_field($name, $default_value, array('tabindex' => $startTi + $ti, 'class' => 'short', 'id' => $genid . 'cp' . $customProp->getId())); } else { echo text_field($name, $default_value, array('tabindex' => $startTi + $ti, 'id' => $genid . 'cp' . $customProp->getId())); } } break; case 'boolean': break; case 'date': // dates from table are saved as a string in "Y-m-d H:i:s" format if ($customProp->getIsMultipleValues()) { $name .= '[]'; $count = 0; $fieldValues = CustomPropertyValues::getCustomPropertyValues($_custom_properties_object->getId(), $customProp->getId()); if (!is_array($fieldValues) || count($fieldValues) == 0) { $def_cp_value = new CustomPropertyValue();
/** * Return WYSIWYG editor widget * * @access public * @param string $name * @param string $value * @return string */ function editor_widget($name, $value = null, $attributes = null) { $editor_attributes = is_array($attributes) ? $attributes : array(); if (!isset($editor_attributes['class'])) { $editor_attributes['class'] = 'editor'; } return textarea_field($name, $value, $editor_attributes); }
?> </div> <div id="<?php echo $genid; ?> add_webpage_description_div" style="display: none"> <fieldset><legend><?php echo label_tag(lang('description'), 'webpageFormDesc'); ?> </legend> <?php echo textarea_field('webpage[description]', array_var($webpage_data, 'description'), array('class' => 'long', 'id' => 'webpageFormDesc', 'tabindex' => '40')); ?> </fieldset> </div> <div id="<?php echo $genid; ?> add_custom_properties_div" style="<?php echo $visible_cps > 0 ? "" : "display:none"; ?> "> <fieldset> <legend><?php echo lang('custom properties'); ?>
?> <?php echo pick_date_widget2('milestone[due_date_value]', array_var($milestone_data, 'due_date'), $genid, 90); ?> </div> <div id="<?php echo $genid; ?> add_milestone_description_div" class="dataBlock"> <label><?php echo lang("description"); ?> :</label> <?php echo textarea_field('milestone[description]', array_var($milestone_data, 'description'), array('class' => 'long', 'id' => $genid . 'milestoneFormDesc', 'tabindex' => '20')); ?> </div> </div> <div id="<?php echo $genid; ?> add_reminders_div" class="form-tab" style="display:none;"> <fieldset> <legend><?php echo lang('object reminders'); ?> </legend>
if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_add_event_description_context_help', true, logged_user()->getId())) { ?> <div id="addEventPanelContextHelp" class="contextHelpStyle"> <?php render_context_help($this, 'chelp add event description', 'add_event_description'); ?> </div> <?php } ?> <legend><?php echo lang('description'); ?> </legend> <?php echo textarea_field('event[description]', array_var($event_data, 'description'), array('id' => 'descriptionFormText', 'tabindex' => '30')); ?> </fieldset> </div> <div id="trap3"><fieldset id="fs3" style="height:0px;border:0px;padding:0px;display:none"><span style="color:#FFFFFF;"></span></fieldset></div> <?php $occ = array_var($event_data, 'occ'); $rsel1 = array_var($event_data, 'rsel1'); $rsel2 = array_var($event_data, 'rsel2'); $rsel3 = array_var($event_data, 'rsel3'); $rnum = array_var($event_data, 'rnum'); $rend = array_var($event_data, 'rend'); ?> <div id="<?php
?> <?php echo select_task_list('task[task_list_id]', active_project(), array_var($task_data, 'task_list_id'), false, array('id' => 'addTaskTaskList')); ?> </div> <?php } // if ?> <div> <?php echo label_tag(lang('text'), 'addTaskText', true); ?> <?php echo textarea_field("task[text]", array_var($task_data, 'text'), array('id' => 'addTaskText', 'class' => 'short')); ?> </div> <div> <label><?php echo lang('assign to'); ?> :</label> <?php echo assign_to_select_box("task[assigned_to]", active_project(), array_var($task_data, 'assigned_to')); ?> </div> <?php echo submit_button($task->isNew() ? lang('add task') : lang('edit task')); ?>
<?php if ($comment_form_object->columnExists('comments_enabled') && !$comment_form_object->getCommentsEnabled() && logged_user()->isAdministrator()) { ?> <p class="error"><?php echo lang('admin notice comments disabled'); ?> </p> <?php } // if ?> <div class="formAddCommentText"> <?php echo textarea_field("comment[text]", '', array('class' => 'short', 'id' => 'addCommentText')); ?> </div> <?php if (logged_user()->isMemberOfOwnerCompany() && !$comment_form_object->getIsPrivate()) { ?> <fieldset> <legend><?php echo lang('options'); ?> </legend> <div class="objectOption"> <div class="optionLabel"><label><?php echo lang('private comment');
?> "> <form action="<?php echo $task_list->getAddTaskUrl($on_list_page); ?> " method="post"> <div class="taskListAddTaskText"> <label for="addTaskText<?php echo $task_list->getId(); ?> "><?php echo lang('text'); ?> :</label> <?php echo textarea_field("task[text]", null, array('class' => 'short', 'id' => 'addTaskText' . $task_list->getId())); ?> </div> <div class="taskListAddTaskAssignedTo"> <label for="addTaskAssignTo<?php echo $task_list->getId(); ?> "><?php echo lang('assign to'); ?> :</label> <?php echo assign_to_select_box("task[assigned_to]", active_project(), null, array('id' => 'addTaskAssignTo' . $task_list->getId())); ?> </div>
<div class="dataBlock"> <?php echo label_tag(lang('default hourly rates'), $genid . 'billingFormValue', true); ?> <?php echo text_field('billing[default_value]', array_var($billing_data, 'default_value'), array('id' => $genid . 'billingFormValue', 'tabindex' => '3')); ?> </div> <div class="dataBlock"> <?php echo label_tag(lang('description'), $genid . 'billingFormDescription', false); ?> <?php echo textarea_field('billing[description]', array_var($billing_data, 'description'), array('id' => $genid . 'billingFormDescription', 'class' => 'comment', 'tabindex' => '4')); ?> </div> <?php if (!array_var($_REQUEST, 'modal')) { echo submit_button($billing->isNew() ? lang('add billing category') : lang('save changes'), 's', array('tabindex' => '5')); } ?> </div> </form> <script> Ext.get('<?php echo $genid;
echo yes_no_widget('is_default', $genid . 'is_default', array_var($user_settings, 'is_default', 0) > 0, lang('yes'), lang('no'), 1220); ?> </div> <div> <label for="mailSignature"> <?php echo lang('signature'); ?> <span class="desc"><?php echo lang('signature description'); ?> </span> </label> <?php echo textarea_field('signature', array_var($user_settings, 'signature', ''), array('id' => $genid . 'signature', 'tabindex' => '1230', 'style' => 'width:100%;max-width:500px;height:100px;')); ?> </div> </fieldset> <?php if ($logged_user_can_edit) { ?> <fieldset id="<?php echo $genid; ?> account_permissions_div" style="display:none;"> <legend><?php echo lang('mail account permissions'); ?> </legend>
<td style="padding-right: 10px; width: 140px;"><?php echo text_field('timeslot[hours]', 0, array('style' => 'width:28px', 'tabindex' => '200', 'id' => $genid . 'tsHours','onkeypress'=>'og.checkEnterPress(event,\''.$genid.'\')')) ?> </td> <td style="padding-right: 10px; width: 140px;"> <select name="timeslot[minutes]" size="1" tabindex="220" id="<?php echo $genid . 'tsMinutes'?>"> <?php $minuteOptions = array(0,5,10,15,20,25,30,35,40,45,50,55); for($i = 0; $i < 12; $i++) { echo "<option value=\"" . $minuteOptions[$i] . "\""; echo ">" . $minuteOptions[$i] . "</option>\n"; } ?> </select> </td> <td style="padding-right: 10px; width:95%; margin-top: 0px;"> <?php echo textarea_field('timeslot[description]', '', array('class' => 'short', 'style' => 'height:30px;width:100%;min-width:200px', 'tabindex' => '250', 'id' => $genid . 'tsDesc')) ?> </td> <td style="padding-left: 10px;text-align:right; vertical-align: top"> <div id="<?php echo $genid ?>TMTimespanSubmitAdd"><?php echo submit_button(lang('add'),'s',array('style'=>'margin-top:0px;margin-left:0px', 'tabindex' => '300', 'onclick' => 'ogTimeManager.SubmitNewTimeslot(\'' .$genid . '\');return false;')) ?></div> <div id="<?php echo $genid ?>TMTimespanSubmitEdit" style="display:none"> <?php echo submit_button(lang('save'),'s',array('style'=>'margin-top:0px;margin-left:0px', 'tabindex' => '310', 'onclick' => 'ogTimeManager.SubmitNewTimeslot(\'' .$genid . '\');return false;')) ?><br/> <?php echo submit_button(lang('cancel'),'c',array('style'=>'margin-top:0px;margin-left:0px', 'tabindex' => '320', 'onclick' => 'ogTimeManager.CancelEdit();return false;')) ?> </div> </td> </tr> </table> <div class="context-switcher"> <div class="context-header">
$display = $type == 'html' ? 'none' : 'block'; $display_fck = $type == 'html' ? 'block' : 'none'; $plain_body = $draft_edit ? array_var($mail_data, 'body') : "\n\n--\n{$orig_textsignature}" . array_var($mail_data, 'body'); if (!$draft_edit) { $body = array_var($mail_data, 'body'); $idx = stripos($body, '<body'); if ($idx !== FALSE) { $end_tag = strpos($body, '>', $idx) + 1; $html_body = utf8_substr($body, 0, $end_tag) . "<br />--<br />{$orig_htmlsignature}" . utf8_substr($body, $end_tag); } else { $html_body = "<br />--<br />{$orig_htmlsignature}" . $body; } } else { $html_body = array_var($mail_data, 'body'); } echo textarea_field('plain_body', $plain_body, array('id' => $genid . 'mailBody', 'tabindex' => '50', 'style' => "display:{$display};width:97%;height:94%;margin-left:1%;margin-right:1%;margin-top:1%; min-height:250px;", 'onkeypress' => "if (!og.thisDraftHasChanges) og.checkMailBodyChanges();", 'autocomplete' => 'off')); ?> <div id="<?php echo $genid; ?> ck_editor" style="display:<?php echo $display_fck; ?> ; width:100%; height:100%; padding:0px; margin:0px; min-height:265px;overflow: hidden"> <textarea style="display:none;" id="<?php echo $genid; ?> ckeditor" tabindex="51"><?php echo clean($html_body); ?>
<?php tpl_display(get_template_path('form_errors')) ?> <div> <?php echo label_tag(lang('name'), 'projectFormName', true) ?> <?php echo text_field('project_form[name]', array_var($project_form_data, 'name'), array('id' => 'projectFormName', 'class' => 'long')) ?> </div> <div> <?php echo label_tag(lang('description'), 'projectFormDescription') ?> <?php echo textarea_field('project_form[description]', array_var($project_form_data, 'description'), array('id' => 'projectFormDescription', 'class' => 'short')) ?> </div> <div> <?php echo label_tag(lang('success message'), 'projectFormSuccessMessage',true) ?> <?php echo textarea_field('project_form[success_message]', array_var($project_form_data, 'success_message'), array('id' => 'projectFormSuccessMessage', 'class' => 'short')) ?> </div> <div class="formBlock" id="projectFormAction"> <fieldset> <legend><?php echo lang('project form action') ?></legend> <table class="blank"> <tr> <td><?php echo radio_field('project_form[action]', array_var($project_form_data, 'action') == ProjectForm::ADD_COMMENT_ACTION, array('value' => ProjectForm::ADD_COMMENT_ACTION, 'id' => 'projectFormActionAddComment', 'onclick' => 'App.modules.addProjectForm.formActionClick()')) ?> <?php echo label_tag(lang('project form action add comment'), 'projectFormActionAddComment', false, array('class' => 'checkbox'), '') ?></td> <td><?php echo lang('add comment to message short') ?>: <?php echo select_message('project_form[message_id]', active_project(), array_var($project_form_data, 'message_id'), array('id' => 'projectFormActionSelectMessage')) ?></td> </tr> <tr> <td><?php echo radio_field('project_form[action]', array_var($project_form_data, 'action') == ProjectForm::ADD_TASK_ACTION, array('value' => ProjectForm::ADD_TASK_ACTION , 'id' => 'projectFormActionAddTask', 'onclick' => 'App.modules.addProjectForm.formActionClick()')) ?> <?php echo label_tag(lang('project form action add task'), 'projectFormActionAddTask', false, array('class' => 'checkbox'), '') ?></td> <td><?php echo lang('add task to list short') ?>: <?php echo select_task_list('project_form[task_list_id]', active_project(), array_var($project_form_data, 'task_list_id'), false, array('id' => 'projectFormActionSelectTaskList')) ?></td> </tr>
?> <p class="error"><?php echo lang('admins can post comments on locked objects desc'); ?> </p> <?php } // if ?> <div class="formAddCommentText"> <?php echo label_tag(lang('text'), 'addCommentText', true); ?> <?php echo textarea_field("comment[text]", array_var($comment_data, 'text'), array('class' => 'comment', 'id' => 'addCommentText')); ?> </div> <?php if (logged_user()->isMemberOfOwnerCompany() && !$comment_form_object->getIsPrivate()) { ?> <fieldset> <legend><?php echo lang('options'); ?> </legend> <div class="objectOption"> <div class="optionLabel"><label><?php echo lang('private comment');
/** * Render form control * * @param string $control_name * @return string */ function render($control_name) { return textarea_field($control_name, $this->getValue()); }
?> <li><?php echo $err_msg; ?> </li> <?php } } ?> </ul> </div> <?php } ?> <?php echo hidden_field($this->faq, "project_id"); ?> <?php echo text_field($this->faq, "question", "", array("class" => "question_txt", "placeholder" => "Question text here...")); ?> <?php echo textarea_field($this->faq, "answer", "", array("class" => "answer_txt", "placeholder" => "The answer goes here...")); ?> <input type ="submit" value="Save question" class="btn btn-primary"/> <?php echo form_end_tag();