表单字段需要在joomla 3中水平显示

时间:2017-04-29 12:48:53

标签: twitter-bootstrap joomla joomla3.0

我正在尝试在Joomla 3.6.5前端并排显示字段。在特定视图的此组件中,某些表单字段是动态字段。所以我没有使用renderField()方法。这是预期的视图

路径:components / compoent_name / views / viewname / tmpl / default.php

   <form action="<?php echo JRoute::_('index.php'); ?>" method="POST" name="adminForm" id="adminForm" 
    onSubmit="return formValidation()"  class="form-horizontal form-validate" enctype="multipart/form-data">
    <div style='float:left'><h2></h2></div>
    <div class='form-container'>
    <div class='span6'>
    <div>
    <span> Hi Welcome to the </span>
    <select  required="true" id="adname_id" name="adname_id" >
    <option  value="company1">company1</option>
    <option  value="company2">company2</option></select>
    <span> Enter date</span><input type="text"  required="true" id="discount_date" name="discount_date"/>
    <span> Enter price</span>
    <input type="text" required="true" id="enter_price" name="enter_price" />
    <span>Thanks</span>
    </div>
    </div>
    </div>
    </div>
    </form>

帮助我实现这个目标

0 个答案:

没有答案