Skip to content

Commit

Permalink
added: radio button PHP code to generate options
Browse files Browse the repository at this point in the history
  • Loading branch information
pollen8 committed Jan 6, 2014
1 parent 0c4d98f commit d3cad4c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions plugins/fabrik_element/radiobutton/forms/fields.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,18 @@
</field>

</fieldset>

<fieldset label="Advanced" name="plg-dropdown-advanced">

<field type="helplink"
url="PLG_ELEMENT_RADIOBUTTON_HELP_SERVER" />

<field name="dropdown_populate"
type="fabrikeditor"
mode="php"
description="PLG_ELEMENT_RADIO_POPULATE_DESC"
label="PLG_ELEMENT_RADIO_POPULATE_LABEL" />

</fieldset>
</fields>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ PLG_ELEMENT_RADIO_ONLY_ADD_LABEL_LABEL="Only add label"
PLG_ELEMENT_RADIO_OPTIONS_PER_ROW_LABEL="Options per row"
PLG_ELEMENT_RADIO_SAVE_NEW_ADDITIONS_DESC="If yes selected then any new sub-options created by the user are available for others to select. If NO selected you MUST select 'yes' for the 'only add label' option"
PLG_ELEMENT_RADIO_SAVE_NEW_ADDITIONS_LABEL="Save new additions"
PLG_ELEMENT_RADIO_POPULATE_DESC="PHP Code to create options, should return an array of JHTML select.options,<pre> e.g. return array(JHTML: :_('select.option', '1', 'one'));</pre>."
PLG_ELEMENT_RADIO_POPULATE_LABEL="Eval populate"


;front end
PLG_ELEMENT_RADIO_ENTER_VALUE_LABEL="Please enter a value and/or label"
Expand Down

0 comments on commit d3cad4c

Please sign in to comment.