Show View in 2 Column

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
benkbenk
User
Posts: 10

Show View in 2 Column

Post by benkbenk »

I have Views with master/detail data, how to show/arrange fields in Views to two column when I choose Master/detail Add (as Detail)

Thank you


mobhar
User
Posts: 11703

Post by mobhar »

Do you want to make that two columns in Master section or in Detail section?


benkbenk
User
Posts: 10

Post by benkbenk »

Regarding my needed, I found the way on internet the example is like this and i put on Master Record Page -> Custom Template

<div id="ct_sample_add">

<div class="ewRow">

<div class="panel panel-default">
<div class="panel-heading"><strong>Form</strong></div>
<div class="panel-body">

<div class="col-lg-6 col-md-6 col-sm-6">
<div id="r_Field_One" class="form-group">
<label id="elh_sample_Field_One" for="x_Field_One" class="col-sm-2 control-label ewLabel">
{{{caption Field_One}}}</label>
<div class="col-sm-4">{{{value Field_One}}}</div>
</div>

<div class="col-lg-6 col-md-6 col-sm-6">
<div id="r_Field_Two" class="form-group">
<label id="elh_sample_Field_Two" for="x_Field_Two" class="col-sm-2 control-label ewLabel">
{{{caption Field_Two}}}</label>
<div class="col-sm-4">{{{value Field_Two}}}</div>
</div>
</div>

</div>
</div>
</div>

It is posible to set the field value become wrap for long text field value ?


mobhar
User
Posts: 11703

Post by mobhar »

Try to play with this following attribute:

style="white-space: nowrap;"


benkbenk
User
Posts: 10

Post by benkbenk »

Dear Mobhar,

Could you tell me where I can put the attribut is, thank you in advance


mobhar
User
Posts: 11703

Post by mobhar »

Change:
<div class="col-sm-4">

to:
<div class="col-sm-4" style="white-space: nowrap;">

or to:
<div class="col-sm-4" style="white-space: normal;">


Post Reply