chg: [singleViews:single_view] Improved layout for meta-templates
parent
340626ce4e
commit
332c4f48a2
|
@ -51,7 +51,7 @@
|
|||
];
|
||||
foreach($data['metaTemplates'] as $metaTemplate) {
|
||||
$tabData['navs'][] = $metaTemplate->namespace;
|
||||
$fieldsHtml = '<table class="table table-striped col-sm-8">';
|
||||
$fieldsHtml = '<table class="table table-striped">';
|
||||
foreach ($metaTemplate->meta_template_fields as $metaTemplateField) {
|
||||
$metaField = $metaTemplateField->meta_fields[0];
|
||||
$fieldsHtml .= sprintf(
|
||||
|
@ -93,7 +93,7 @@
|
|||
__('{0} view', \Cake\Utility\Inflector::singularize(\Cake\Utility\Inflector::humanize($this->request->getParam('controller')))) :
|
||||
$title;
|
||||
echo sprintf(
|
||||
'<div><h2>%s</h2>%s%s<div class="px-3"><table class="table table-striped col-sm-8">%s</table></div><div id="metaTemplates">%s</div><div id="accordion">%s</div></div>',
|
||||
'<div><h2>%s</h2>%s%s<div class="px-3"><table class="table table-striped col-sm-8">%s</table></div><div id="metaTemplates" class="col-lg-8 px-0">%s</div><div id="accordion">%s</div></div>',
|
||||
h($title),
|
||||
empty($description) ? '' : sprintf('<p>%s</p>', h($description)),
|
||||
empty($description_html) ? '' : sprintf('<p>%s</p>', $description_html),
|
||||
|
|
Loading…
Reference in New Issue