El Saturday 29 November 2008 23:31:38 Eduardo Carvalho escribió:
> Yes... i'm writing in the right file!! on \vendors
>
> but the class is just seted on the list... on the form not !!! as we
> can see at.. http://e-setorial.com.br:12006/pessoa
>
> the "nome" field is seted with
> conf.columns[:nome].css_class = "text-input-big"
>
>
> Is difficult to achieve the desired result! Sorry! And thanks for the
> patience!
>
What's your rails and active scaffold version?
>
>
> On Nov 26, 7:02 am, "Sergio Cambra .:: entreCables - Symbol Servicios
>
> Informáticos S.L. ::." <[EMAIL PROTECTED]> wrote:
> > El Wednesday 26 November 2008 02:18:35 Eduardo Carvalho escribió:
> > > You're right!! It's work! But only on the list table!!
> > >
> > > On the insert/edit forms the assigned field still appears short! I
> > > just wanna put this field with 500px, for example, to the name of
> > > person!
> > >
> > > Have some tip?
> > >
> > > I tried both methods, but i think the second method is what i want:
> > > ".active-scaffold dl.text-input-big input" and ".active-scaffold .text-
> > > input-big input"
> >
> > I have tried adding .active-scaffold .text-input-big input to
> > stylesheet.css and set css_class and it's working.
> > Are you editing stylesheet.css in vendor/plugins? You need to edit
> > stylesheet.css in vendor/plugins, and that file must be copied to
> > public/stylesheets/active_scaffold/default directory.
> > But it's better to add directly in layout, or in a new css, instead of
> > modify active_scaffold css.
> >
> > > On Nov 24, 9:42 am, "Sergio Cambra .:: entreCables - Symbol Servicios
> > >
> > > Informáticos S.L. ::." <[EMAIL PROTECTED]> wrote:
> > > > El Monday 24 November 2008 12:10:15 Eduardo Carvalho escribió:
> > > > > I did it... I always use firebug to check if working... but..
> > > > > isn't!
> > > > >
> > > > > in the controller:
> > > > >
> > > > > class PessoaController < ApplicationController
> > > > > active_scaffold :pessoa do |conf|
> > > > > conf.columns = [:name, :xyz, :xwz]
> > > > > conf.list.columns = [:name, :xyz, :xwz]
> > > > > conf.list.label = "Pessoa"
> > > > > conf.show.columns = [:name, :xyz, :xwz]
> > > > > conf.update.columns = [:name, :xyz, :xwz]
> > > > > conf.create.columns = [:name, :xyz, :xwz]
> > > > > conf.label = "Pessoas"
> > > > > conf.columns[:xyz].label = "XXYZ"
> > > > > conf.columns[: xwz].label = "XXWZ"
> > > > >
> > > > > conf.columns[:name].css_class = "text-input-big" # <===
> > > > > end
> > > > > end
> > > > >
> > > > > in the css ... \vendor\plugins\active_scaffold\frontends\default
> > > > > \stylesheets\stylesheet.css
> > > > >
> > > > > .active-scaffold input.text-input,
> > > > > .active-scaffold select {
> > > > > font: bold 13px arial;
> > > > > letter-spacing: -1px;
> > > > > border: solid 1px #a08a31;
> > > > > }
> > > > >
> > > > > .active-scaffold input.text-input-big{ <=====
> > > > > font: bold 13px arial;
> > > > > letter-spacing: -1px;
> > > > > border: solid 4px #a08a31;
> > > > > width: 500px;
> > > > > }
> > > > >
> > > > > On Nov 24, 6:02 am, "Sergio Cambra .:: entreCables - Symbol
> > > > > Servicios
> > > > >
> > > > > Informáticos S.L. ::." <[EMAIL PROTECTED]> wrote:
> > > > > > El Sunday 23 November 2008 23:34:46 Eduardo Carvalho escribió:
> > > > > > > I'm trying to work with the css_class simply to change the size
> > > > > > > of the fields of description to go with 500px.
> > > > > > >
> > > > > > > - in the controler:
> > > > > > > conf.columns[:name].css_class = "text-input-big"
> > > > > > >
> > > > > > > - in the css:
> > > > > > > .active-scaffold input.text-input-big{
> > > > > > > font: bold 13px arial;
> > > > > > > letter-spacing: -1px;
> > > > > > > border: solid 4px #a08a31;
> > > > > > > width: 500px;
> > > > > > > }
> > > > > > >
> > > > > > > What I did wrong?
> > > > > >
> > > > > > Where did you put it?
> > > > > > You can check it with firebug to see what css statement overrides
> > > > > > your css.
> > > >
> > > > css_class is added to td in list, and to dl in forms, so you can set
> > > > css for labels and fields. I have added it to documentation now. You
> > > > should use ".active-scaffold dl.text-input-big input"
> > > > or ".active-scaffold .text-input-big input"
> > > >
> > > > --
> > > > Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L.
> > > > ::. Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
> > > > T) 902 021 404 F) 976 52 98 07 E) [EMAIL PROTECTED]
> >
> > --
> > Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
> > Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
> > T) 902 021 404 F) 976 52 98 07 E) [EMAIL PROTECTED]
>
>
--
Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---