Browse Source

#91 Add new custom field options to settings dropdown

merge-requests/2/head
Mike Koch 7 years ago
parent
commit
73be89c472
  1. 4
      admin/admin_settings.php
  2. 6
      language/en/text.php

4
admin/admin_settings.php

@ -1238,6 +1238,10 @@ if ( defined('HESK_DEMO') )
<option value="radio" '.($this_field['type'] == 'radio' ? 'selected="selected"' : ''). '>'.$hesklang['srb'].'</option>
<option value="select" '.($this_field['type'] == 'select' ? 'selected="selected"' : ''). '>'.$hesklang['ssb'].'</option>
<option value="checkbox" '.($this_field['type'] == 'checkbox' ? 'selected="selected"' : '').'>'.$hesklang['scb'].'</option>
<option value="date" '.($this_field['type'] == 'date' ? 'selected="selected"' : '').'>'.$hesklang['date_custom_field'].'</option>
<option value="time" '.($this_field['type'] == 'time' ? 'selected="selected"' : '').'>'.$hesklang['time_custom_field'].'</option>
<option value="datetime" '.($this_field['type'] == 'datetime' ? 'selected="selected"' : '').'>'.$hesklang['datetime_custom_field'].'</option>
<option value="multiselect" '.($this_field['type'] == 'multiselect' ? 'selected="selected"' : '').'>'.$hesklang['multiple_select_custom_field'].'</option>
</select>
</td>
<td><div class="checkbox"><label><input type="checkbox" name="s_custom'.$i.'_req" value="1" id="s_custom'.$i.'_req" '; if ($this_field['req']) {echo 'checked="checked"';} echo $onload_locally.' /> '.$hesklang['yes'].'</label></div></td>

6
language/en/text.php

@ -21,6 +21,12 @@ $hesklang['_COLLATE']='utf8_unicode_ci';
// This is the email break line that will be used in email piping
$hesklang['EMAIL_HR']='------ Reply above this line ------';
// ADDED OR MODIFIED IN Mods For HESK 2.0.0
$hesklang['date_custom_field'] = 'Date';
$hesklang['time_custom_field'] = 'Time';
$hesklang['datetime_custom_field'] = 'Date and time';
$hesklang['multiple_select_custom_field'] = 'Multiple Select box';
// ADDED OR MODIFIED IN Mods For HESK 1.6.0
$hesklang['ticket_closed'] = '[#%%TRACK_ID%%] Ticket closed/resolved';
$hesklang['ticket_reopen'] = '[#%%TRACK_ID%%] Ticket reopened';

Loading…
Cancel
Save