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

Alignment/positioning issues with file inputs... #29

Open
designvoid opened this issue Sep 4, 2013 · 4 comments
Open

Alignment/positioning issues with file inputs... #29

designvoid opened this issue Sep 4, 2013 · 4 comments

Comments

@designvoid
Copy link

The layout and spacing seems to be off for form inputs

This is the cake code:

<?php 
echo $this->Form->create('NewsPost', array(
    'type' => 'file', 
    'inputDefaults' => array(
        'div' => 'form-group', 
        'label' => array(
            'class' => 'col col-md-2 control-label'
        ), 
        'wrapInput' => 'col col-md-10', 
        'class' => 'form-control'
    ), 
    'class' => 'well form-horizontal'
));
?>
<?php 
echo $this->Form->input('NewsImage.0.image', array(
    'type' => 'file'
));
?>

And the resulting markup:

<div class="form-group">
    <label for="NewsImage0Image" class="col col-md-2 control-label">Image</label>
    <div class="col col-md-10">
        <input type="file" name="data[NewsImage][0][image]"  class="form-control" id="NewsImage0Image"/>
    </div>
</div>

untitled

@slywalker
Copy link
Owner

Do you expect what output HTML?
I think it's a matter of CSS.

boostcake_-_bootstrap3_examples
(by Chrome)

@designvoid
Copy link
Author

I was using firefox - so is it a problem with firefox button rendering?

@muhammadcahya
Copy link

Yes i think, I try and use firefox and the rendering output same with you ?
I suggest to use jasny bootstrap file upload component, working well in firefox and chrome but is based bootstrap 2
http://jasny.github.io/bootstrap/javascript.html#fileupload

To slywalker , can create helper for jasny file upload component, Hheee
*ups sorry :D

@slywalker
Copy link
Owner

I'm using what these.
Demo for Bootstrap File Input styler

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

No branches or pull requests

3 participants