User tests: Successful: Unsuccessful:
A PR to add a small amount of styling to repeatable subforms (joomla.form.field.subform.repeatable). Adds some definition between repeated forms and a slight repainting.
Create ../modules/mod_login/test.xml to which add the following...
<?xml version="1.0" encoding="UTF-8"?>
<form>
<fieldset name="sample" class="sample-subform">
<field name="image" type="media" default="" label="Sample Field 1" description="Desc1" size="30" />
<field name="text" type="text" default="" label="Sample Field 2" description="Desc2" />
<field name="color" type="color" default="#dddddd" label="Sample Field 2" description="Desc2" />
</fieldset>
</form>
Add the following to the ../modules/mod_login/mod_login.xml file:
<field name="subformtest" type="subform" formsource="modules/mod_login/test.xml" class="advancedSelect" min="0" max="50" multiple="true" layout="joomla.form.field.subform.repeatable" groupByFieldset="true" label="Repeatable Subform" description="Desc" />
Test with the various options available (https://docs.joomla.org/Subform_form_field_type)
None
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | Administration Templates (admin) |
I prefer the @coolcat-creations one and especially the full border around the subfields.
If I look at the three versions I would recommend version 3 version 2 of Elisa
I'd prefer te last example (version2 of coolcat). But with a modification: the remove and add buttons should be together at the top of the box. Or even at the top and at the bottom. Why? Because a subform can be much longer than these examples. So it might be necessary to scroll from the add- to the remove-button.
Thank you @coolcat-creations
There was a number of reasons why opted for such minimal styling, some of which would be...
Obviously these are just my own personal opinions and I would be happy to create a PR with your suggestions (personally I like the your 2nd option) if you feel the above points irrelevant.
@chmst True however IMO for the same reason I would nearly go for having the 'add' at the bottom. Some reasons been...
Labels |
Added:
?
Removed: ? |
@ciar4n that would be nice if you can do this.
@chmst - yes i have to agree to @ciar4n - when you have the add button at the bottom then you are at the position and in the need to create a new field. I would prefer to have this one at the bottom. And the delete icon at the top because that´s usually the place where you see that you want to delete the item. However if @ciar4n creates a PR with the suggestion we can test the behavior and see if it works good. Thanks everyone!
I've created an alternative PR (#12634) based on @coolcat-creations second suggestion.
I have tested this item
Both tested successful (would prefer the other option though)
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-11-15 23:35:13 |
Closed_By | ⇒ | ciar4n |
I have tested this item✅ successfully on 34d03a0
Thanks!
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12419.