twitter bootstrap - Bootstrap4Xpages Forms: Layout in 'read mode' not aligned -


i'm using domino 9.0.1 , have managed install correctly bootstrap library 1.0.0.201403171254.

i trying use bootstrap form application (a simple crud edit , delete). have inspired myself code 'form' xpage in bootstrap4xpages-demos database.

as far can tell, there controls have been 'bootstrapified' , others have surround xpages tag div bootstrap class you're looking - , not sure documented (if @ all).

the issue have 'form' doesn't align nicely when in read mode

enter image description here

but when in edit mode

enter image description here

is there attribute not setting right (i've posted part of code below) or bootstrap4xpages never designed in mind (i.e. have separate versions of markup 'read' mode , 'edit' mode)?

i'm suspecting stuck in notes client development mode of thinking, i.e. read mode, edit mode, old ideas ui, if have better alternative please tell me!

<?xml version="1.0" encoding="utf-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core"> <xp:this.data>     <xp:dominodocument         var="document1"         formname="kurs"         computewithform="onsave">     </xp:dominodocument> </xp:this.data> <div     class="row">     <div class="form-horizontal">          <div class="form-group">             <xp:label                 value="titel:"                 id="label1"                 for="titel1"                 styleclass="control-label col-sm-2">             </xp:label>             <div                 class="col-sm-10">                 <xp:inputtext                     value="#{document1.titel}"                     id="inputtext1"                     required="true">                     <xp:this.validators>                         <xp:validaterequired                             message="geben sie bitte einen titel ein"></xp:validaterequired>                     </xp:this.validators>                 </xp:inputtext>             </div>         </div> 

this markup in read mode:

<div class="form-group">     <label id="view:_id1:_id2:_id5:label1" for="view:_id1:_id2:_id5:titel1" class="control-label col-sm-2">titel:</label>     <div class="col-sm-10">         <span id="view:_id1:_id2:_id5:inputtext1">thailändische küche 1</span>     </div> </div> 

and markup in edit mode:

<div class="form-group">     <label id="view:_id1:_id2:_id5:label1" for="view:_id1:_id2:_id5:titel1" class="control-label col-sm-2">titel:</label>     <div class="col-sm-10">         <input type="text" value="thailändische küche 1" id="view:_id1:_id2:_id5:inputtext1" name="view:_id1:_id2:_id5:inputtext1" aria-required="true" class="form-control">     </div> </div> 

bootstrap forms imho not intended have labels beside form controls above. if want layout them both col-sm-* classes i'd suggest wrap them in divs classes or tables. make sure use right classes e.g. desktop app. col-sm-* classes small resolutions. add col-lg-* classes designed higher resolutions. btw: solve issue richtext editor looking crap have here:

http://mardou.dyndns.org/hp.nsf/blogpost.xsp?documentid=bc2

or else "bootstrap"-ed http://mardou.dyndns.org/hp.nsf/search.xsp?query=bootstrap


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -