chank

chank


Чанк: For_rent_chunk_thumb


      <div class="item active">

        <div class="col-md-4 col-sm-6 portfolio-item">

          <a href="#portfolioModal[[+idx]]" class="portfolio-link" data-toggle="modal">

            <div class="portfolio-hover">

              <div class="portfolio-hover-content">

                <i class="fa fa-plus fa-3x"></i>

              </div>

            </div>

            <img src="[[+rent_pic:phpthumbof=`w=350&h=250&zc=C`]]" class="img-responsive" alt="">

          </a>

          <div class="portfolio-caption">

            <h4>[[+rent_street]] </h4>

            <p class="text-muted">[[+rent_desc]]</p>

          </div>

        </div>

      </div>


Чанк: For_rent_chunk_modal

  <div class="portfolio-modal modal fade" id="portfolioModal[[+idx]]" tabindex="-1" role="dialog" aria-hidden="true">

    <div class="modal-dialog">

      <div class="modal-content">

        <div class="close-modal" data-dismiss="modal">

          <div class="lr">

            <div class="rl">

            </div>

          </div>

        </div>

        <div class="container">

          <div class="row">

            <div class="col-lg-8 col-lg-offset-2">

              <div class="modal-body">

                <!-- Project Details Go Here -->

                <h3>[[+rent_street]]</h3>

                <p class="item-intro text-muted">[[+rent_desc]]</p>

                <img class="img-responsive img-centered" src="[[+rent_pic]]" alt="">

                <p>[[+rent_obj_desc]]</p>

                <button type="button" class="btn btn-primary" data-dismiss="modal">Закрыть</button>

              </div>

            </div>

          </div>

        </div>

      </div>

    </div>

  </div>



TV: For_rent

Вкладки формы:

[{ 

 "caption": "For_rent", 

 "fields": 

 [{ 

  "field": "rent_street", 

  "caption": "Адрес объекта" 

},{ 

  "field": "rent_desc", 

  "caption": "Тип объекта", 

  "inputTVtype": "Textarea" 

},

  "field": "rent_obj_desc", 

  "caption": "Тип объекта", 

  "inputTVtype": "richtext" 

},

{  "field":"rent_pic",

  "caption":"Фото",

  "inputTVtype":"image"}] 

}] 

Разметка колонок:

[

{"header": "Адрес объекта",

 "sortable": "true",

 "dataIndex": "rent_street"},


{"header": "Тип объекта",

 "sortable": "false",

 "dataIndex": "rent_desc"},


{"header": "Описание объекта",

 "sortable": "false",

 "dataIndex": "rent_obj_desc"},


{"header": "Фото объекта",

 "sortable": "false",

 "dataIndex": "rent_pic",

 "renderer": "this.renderImage"}

]