PHP Classes

File: themes/default/components/core/read.twig

Recommend this page to a friend!
  Classes of Aby Dahana   Aksara   themes/default/components/core/read.twig   Download  
File: themes/default/components/core/read.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Refine core modules
Date: 1 month ago
Size: 3,535 bytes
 

Contents

Class file image Download
<div class="py-3"> <div class="container-fluid"> {% for name, params in results.field_data %} {% if params.type == 'geospatial' %} {# Include form read component #} {% include 'core/form_read.twig' with params %} {% endif %} {% endfor %} <div class="row"> <div class="{% if results.column_total > 2 or results.form_size == 'form-xl' %} col-md-12 col-xxl-12 {% elseif results.column_total == 2 %} col-md-10 col-xxl-8 {% else %} col-md-6 col-xxl-6 {% endif %}"> <div class="row"> {# Find index within column total #} {% for index in 1..results.column_total %} <div class="col {{ results.column_size[index] }}"> {# Loop field data for matching column position by index #} {% for name, params in results.field_data %} {% if index == params.position and params.type != 'geospatial' %} {% if results.set_heading[name] %} <h5> {{ results.set_heading[name] }} </h5> {% endif %} {% if results.merged_field[name] %} <div class="row"> <div class="col {{ results.field_size[name] }}"> {# Include form read component #} {% include 'core/form_read.twig' with params %} </div> {% for merged_field in results.merged_field[name] %} {% if results.field_data[merged_field] %} <div class="col {{ results.field_size[merged_field] }}"> {# Include form read component #} {% include 'core/form_read.twig' with {params: results.field_data[merged_field]} %} </div> {% endif %} {% endfor %} </div> {% elseif not params.merged %} {# Include form read component #} {% include 'core/form_read.twig' with params %} {% endif %} {% endif %} {% endfor %} </div> {% endfor %} </div> </div> </div> <div class="opt-btn-overlap-fix"></div> <div class="row opt-btn"> <div class="{% if results.column_total > 2 or results.form_size == 'form-xl' %} col-md-12 col-xxl-12 {% elseif results.column_total == 2 %} col-md-10 col-xxl-8 {% else %} col-md-6 col-xxl-6 {% endif %}"> <a href="{{ links.current_module }}" class="btn btn-link --xhr"> <i class="mdi mdi-arrow-left"></i> {{ phrase('Back') }} </a> </div> </div> </div> </div>