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"


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]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

  • cs... Eduardo Carvalho
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
      • ... Eduardo Carvalho
        • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
          • ... Eduardo Carvalho
            • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
              • ... Eduardo Carvalho
                • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
                • ... Eduardo Carvalho
                • ... naaano

Reply via email to