Commit Graph

51 Commits

Author SHA1 Message Date
Ralf Becker
91573fd113 * Addressbook/InfoLog/Filemanager/Tracker: added or fixed formatting of certain custom field types using a single shared method 2012-08-09 12:43:52 +00:00
Nathan Gray
d616b36e9f Fix missing infolog custom fields in contact view 2012-01-09 17:36:38 +00:00
Klaus Leithoff
bfd333b0c2 Limit custom field app entry possibilities to apps that support query and title, which are required for custom field to work properly 2012-01-06 15:34:47 +00:00
Klaus Leithoff
9037a6c039 making 1st param for custumfield_widget construct (ui) optional, to avoid warning 2011-09-13 08:39:24 +00:00
Ralf Becker
bf4fcb159e * richtext custom-fields 2011-08-30 19:19:56 +00:00
Ralf Becker
d32ce66d91 fixed grid in cf widget displays border, if options are set 2011-08-18 09:25:14 +00:00
Ralf Becker
43e9cb2126 fixed grid in cf widget displays border, if options are set 2011-08-18 09:21:30 +00:00
Nathan Gray
995c244b6b Use different app if running hooked also 2011-07-06 15:36:22 +00:00
Ralf Becker
05a3ccb320 dont load cfs for template from stylite app 2011-06-28 20:47:35 +00:00
Ralf Becker
3b90f44c89 got select entry custom fields honor required flag and select entry widget show required input with inputRequired css class 2011-05-18 10:23:39 +00:00
Nathan Gray
c714b06848 Add custom field type 'Float'.
It understands options precision, min & max, so for example:
precision=2
max=20
2011-03-28 22:43:39 +00:00
Klaus Leithoff
e4ef70dd02 dont try to translate text from textfields when in listview 2010-10-04 11:50:37 +00:00
Ralf Becker
5a03cff75d set span & class from original cell for single fields 2010-08-05 15:36:23 +00:00
Klaus Leithoff
c8abf9eacc fix a problem with content validation; was returned as array 2010-06-28 14:09:59 +00:00
Nathan Gray
79dfab8005 Custom field widget can be limited to (or exclude) certain fields. Put the list of fieldnames to display as the 3rd (4th, etc) option. Using a ! as the first character will negate the list, and exclude the named fields. 2010-04-07 17:00:09 +00:00
Nathan Gray
d889e92774 Add AJAX Select widget as a field type for custom fields.
Select options can be provided using one of three different methods:
1.  key=value pairs, one per line, as for a selectbox
2.  @filename.php - The file must be in the egw root, and define an array named $options, that has key => value pairs
3.  Define the options normally used for the AJAX Select widget (get_rows, get_title, id_field) and it will pull values from the database, as normal.

Other options (icon, filter, template, link) can be used regardless of the method used to get the values.
2010-01-12 22:35:51 +00:00
Klaus Leithoff
796dba966d if app changes while displaying content, be aware of that (as of addressbook infolog view) 2009-08-20 14:11:10 +00:00
Ralf Becker
e9a7336a35 "removed onclick alert" 2009-07-18 15:35:42 +00:00
Klaus Leithoff
0439b8de35 handling checkbox values in listview, handling radio values display in listview 2009-04-29 14:29:57 +00:00
Klaus Leithoff
1f6bba4aba handling the doubling of select/multiselect -cfs in advanced search,, adding empty entry for radio-cfs in advanced search, allowing to edit readonly cfs when in advanced search. 2009-04-01 08:22:01 +00:00
Ralf Becker
a749233461 "removed call to depricated bolink class" 2008-10-21 08:08:56 +00:00
Ralf Becker
b195ac76e2 refractured infolog code to create links to custom field link types 2008-09-11 14:57:20 +00:00
Klaus Leithoff
7921ef5767 # support for size options in url customfield
# support for size options in url-phone customfield
# support for size options in url-email customfield
# allowing additional parameters to be passed to the link created from the url-email
2008-06-30 14:30:16 +00:00
Ralf Becker
eb290477dd "get the new url, email or phone cf's working" 2008-06-24 09:56:39 +00:00
Ralf Becker
03d9baf5c6 "fixed warning under php5.2.6" 2008-06-22 08:51:38 +00:00
Ralf Becker
e90a3d3a83 reworked etemplate to have static methods and use the new features of egw_db- & html-class 2008-03-09 14:41:22 +00:00
Ralf Becker
ced6adf23f reworked and generalised Klaus new custom field header feature, to use it in the addressbook too, easy to addapt for the other apps now, only requires the get_rows/search method to understand filter and order_by with cfs 2008-01-19 05:36:20 +00:00
Klaus Leithoff
e72c783fd4 pre_process_cf_header -> created by Ralf Becker!!!
function to display the customfields in a nextmatch table-header with the functionality of sorting and selecting
by customfields. Of cource you need to adapt the source of your get_rows or search functionality to do the
actual sorting and selecting. We try to do some additional documentation in codecorner
You can pass the allowed/wanted fields to the header by passing an array of the wanted fields to the widget
through the options parameter (see the eTemplate editor for fields/cells). This array is passed on through
$cell['size']. By now the array passed through is only working, if it is the only entry in the optionsparameter.
The allowed fields array assumes an numerical indexed array of (an) array(s) with ['name'] tag(s) set.
The name provided assumes a preceding #. (e.g.: $allowed_fields[x]['name']='#MyCustomField')
2007-12-13 15:36:44 +00:00
Ralf Becker
e13da61106 "fixed single field display of customfields, was creating an extra grid and array level in the result" 2007-12-07 07:52:14 +00:00
Klaus Leithoff
2a498cae0a Merge of Ralfs customfield commit, with the customfield changes for 1.4: to display only fields with values in listview and to have an info icon to
identify which customfield is displayed (onmouseover), a click on the icon of the customfield opens the description of that field as 
alertbox. Also added the possibility to set an textfield/textarea to readonly with the option readonly=readonly, so users may not be able to change 
values of e.g.: external keys
2007-11-27 15:03:54 +00:00
Ralf Becker
1258b12e91 "small improvment of the last commit:
- also lookup the custom fields from the app mentioned in the template, if there no cfs for the current app, eg. sitemgr contactform
- forward the needed attribute to the cf
- alignment (no spacing, padding) if there are no labels"
2007-11-26 17:35:29 +00:00
Ralf Becker
93457ceac4 "- new cf type \"custom fields without label\"
- ability to specify a single custom field (name = #fieldname)
- show  the cf's in the eTemplate editor too"
2007-11-22 20:08:58 +00:00
Ralf Becker
0cfe754826 new custom field types:
- button to execute javascript
- selectbox values can be read from a file
2007-09-13 12:43:58 +00:00
Ralf Becker
a0ff70602a fix for bug #1058: FATAL ERROR: class.customfields_widget.inc.php on line 168 2007-07-16 16:55:13 +00:00
Ralf Becker
2699258f07 fixed double displayed label 2007-07-12 07:53:21 +00:00
Ralf Becker
7e577e22c4 fixed not working type specific customfields in infolog 2007-07-12 07:30:20 +00:00
Ralf Becker
eadc1c7b38 fix for bug #658: Custom Fields - added user in list comes up as ID (number)
Unfortunatetly this bugfix requires some corrections in the way the customfield widget is called in the templates of other apps
2007-07-11 15:39:41 +00:00
Ralf Becker
c60811c353 missing date/time customfield type 2007-05-17 06:04:24 +00:00
Ralf Becker
c81097ab13 worked around stupid php5.2 empty haystack warnings 2007-04-29 14:26:28 +00:00
Ralf Becker
efb218c924 we can have multiple comma-separated types now 2006-11-23 13:52:56 +00:00
Ralf Becker
532264b3fa new customfield types to select entry of other apps, eg. a contact 2006-10-04 17:10:05 +00:00
Ralf Becker
eb02bbde24 fixed infolog customfields show regardless of type 2006-09-20 17:49:15 +00:00
Cornelius Weiß
69aa6abdec update docu to better run trough phpdocumentor 2006-04-20 17:12:30 +00:00
Cornelius Weiß
300b9b1070 addressbook extension:
Admin can now define multiple addressbooks each with an own edit / view template and an own icon.
Atm. all Addressbooks are stored in one backend, but this will change soon^tm
2006-03-14 13:54:17 +00:00
Cornelius Weiß
b57aaf28af allow NOT in customfield search of type select 2005-11-10 12:10:17 +00:00
Ralf Becker
f21f778800 small phpDoc updates 2005-11-10 05:15:06 +00:00
Ralf Becker
d871b17bc9 valign top and other minor stuff 2005-11-08 14:33:16 +00:00
Cornelius Weiß
0c82e07152 fixed bug reported by lutz falkenberg
killed warnig if no customfields are present
2005-11-04 12:11:50 +00:00
Cornelius Weiß
fba9f65ae3 add option "dosn't matter" to selectboxes in search-mode 2005-11-02 16:48:24 +00:00
Cornelius Weiß
202611ea0d clean up code
bugfix for type radio
2005-10-28 21:05:56 +00:00