Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub Form Field styles problems #17589

Closed
hfittipaldi opened this issue Aug 17, 2017 · 16 comments
Closed

Sub Form Field styles problems #17589

hfittipaldi opened this issue Aug 17, 2017 · 16 comments

Comments

@hfittipaldi
Copy link

hfittipaldi commented Aug 17, 2017

Steps to reproduce the issue

Any subform with layout="joomla.form.field.subform.repeatable-table"

Expected result

The form style similar to others. Something like this:
screenshot-joomla-subform-repeatable-field-type

Actual result

A little bit unformatted:
screenshot-joomla-subform-field-type

System information (as much as possible)

PHP executando em – Windows NT 10.0 build 15063 (Windows 10) AMD64
Versão do Banco de Dados – 5.7.14
Versão do PHP – 5.6.30
Servidor Web – Apache/2.4.23 (Win64) OpenSSL/1.0.2j PHP/5.6.30
Versão do Joomla – Joomla! 3.7.4 Stable [ Amani ] 25-July-2017 11:11 GMT
Navegador do Usuário – Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36

Additional comments

@tonypartridge
Copy link
Contributor

So the table outputs in a table fashion. It looks like you just want repeatable.

If this isn't the case provide your whole JForm xml so we can see how you are creating it

@Fedik
Copy link
Member

Fedik commented Aug 20, 2017

I can confirm, the styling of table layout joomla.form.field.subform.repeatable-table looks really bad.
It has become bad after "flat styling" changes, or around this.

@tonypartridge
Copy link
Contributor

tonypartridge commented Aug 20, 2017 via email

@Fedik
Copy link
Member

Fedik commented Aug 20, 2017

ok, it better in recent update 😄
but still some issue, try:

<field name="sebform1" type="subform" label="subform"
	layout="joomla.form.field.subform.repeatable-table" multiple="true" groupByFieldset="true">
	<form>
		<fieldset name="group1" label="group 1">
			<field type="text" name="text" label="text 1"/>
			<field type="text" name="text2" label="text 2"/>
			<field type="text" name="text3" label="text 3"/>
		</fieldset>
		<fieldset name="group2" label="group 2">
			<field type="text" name="text4" label="text 4"/>
			<field type="textarea" name="textarea" label="textarea"/>
		</fieldset>
	</form>
</field>

screen 2017-08-20 19 42 10 1161x278

yes, in the backend

@ghost
Copy link

ghost commented Aug 26, 2017

@Fedik can you create a Pull Request for mentioned Issue?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17589.

@Fedik
Copy link
Member

Fedik commented Aug 26, 2017

I do not have a fix currently,

@ghost
Copy link

ghost commented Aug 26, 2017

sorry, now i read again you have an Issue, not PR.

@hfittipaldi
Copy link
Author

@Fedik , besides the style problem, do you also have problems with remove an empty field? I'm getting javascript error (Joomla 3.8.3 and 3.8.4-rc)

@Fedik
Copy link
Member

Fedik commented Jan 22, 2018

@hfittipaldi I do not have the problem with remove an empty field

@hfittipaldi
Copy link
Author

Weird. I'm getting "Uncaught TypeError: Cannot read property 'id' of undefined" when I remove an empty record (not field, my bad)

@Quy
Copy link
Contributor

Quy commented Apr 20, 2018

It is because of line 7541 \administrator\templates\isis\css\template.css zeroing the bottom margin. I am not sure of the side-effects to removing it.

.subform-table-layout .control-group,
.subform-table-layout .control-group:last-of-type {
	margin-bottom: 0;
}

subform

@ciar4n
Copy link
Contributor

ciar4n commented Apr 22, 2018

This CSS was originally added here... #13769

Maybe something has changed since as the issue does not appear to be present in the screenshot of that pr. I'll have a look later.

@ciar4n
Copy link
Contributor

ciar4n commented Apr 22, 2018

Nothing has changed. Looks like I hadn't considered multiple field in each cell when creating the PR. I'll fix this.

@ciar4n
Copy link
Contributor

ciar4n commented Apr 22, 2018

PR created.. #20209

@joomla-cms-bot
Copy link

Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/17589

@ghost
Copy link

ghost commented Apr 22, 2018

closed as having Pull Request #20209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants