bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Bloodhound" <bloodhound-...@incubator.apache.org>
Subject Re: [Apache Bloodhound] #36: Apply correct Bootstrap classes to buttons
Date Fri, 25 May 2012 00:38:55 GMT
#36: Apply correct Bootstrap classes to buttons
--------------------------+-------------------------------------
  Reporter:  jdreimann    |      Owner:  gjm
      Type:  enhancement  |     Status:  assigned
  Priority:  major        |  Milestone:  RC1 for initial release
 Component:  ui design    |    Version:
Resolution:               |   Keywords:
--------------------------+-------------------------------------

Comment (by gjm):

 With the approach of #88, we could also cover some of the unconverted
 cases highlighted in this ticket.

 For instance, could the following rules help to convert INPUT.buttons
 elements and some of the expected structure associated with buttons?

 {{{
 #!xml
 <py:match path="div[@class='buttons']//input[@type='submit' and
 not(contains(@class,'btn'))]" once="false" buffer="true">
   <input py:attrs="add_classes(select('@*'), 'btn')">
     ${select('*|text()|comment()')}
   </input>
 </py:match>

 <py:match path="div[@class='buttons']/form/div" once="false"
 buffer="true">
   <div py:attrs="add_classes(select('@*'), 'btn-group')">
     ${select('*|text()|comment()')}
   </div>
 </py:match>

 <py:match path="div[@class='buttons']" once="false" buffer="true">
   <div py:attrs="add_classes(select('@*'), 'btn-toolbar')">
     ${select('*|text()|comment()')}
   </div>
 </py:match>
 }}}

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/36#comment:3>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker

Mime
View raw message