Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.11",
"version": "2.0.0",
"name": "SitebuilderPlugin.name",
"description": "SitebuilderPlugin.description",
"authors": [
Expand Down
22 changes: 10 additions & 12 deletions views/default/admin_manage_plugin.pdt
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@

<?php
$this->Widget->clear();
$this->Widget->setBodyWrapper(false);
$this->Widget->create($this->_('SitebuilderManagePlugin.index.boxtitle_manage', true));
$this->Form->create();
?>
<div class="inner">
<div class="pad">
<ul>
<?php foreach ($pluginVars ?? [] as $id => $var): ?>
<li>
<div class="card-body">
<?php foreach ($pluginVars ?? [] as $id => $var): ?>
<div class="mb-3">
<?php
if (($var->type ?? '') == 'checkbox') {
$this->Form->fieldCheckbox($id, 'true', (($values[$id] ?? 'false') == 'true'), ['id' => $id]);
Expand All @@ -20,7 +19,7 @@
$label .= ' ('.$this->_("SitebuilderManagePlugin.index.required", true).')';
$fieldAttrs['required'] = 'required';
}
$this->Form->label($label, $id);
$this->Form->label($label, $id, ['class' => 'form-label']);
$this->Form->fieldText($id, ($values[$id] ?? ''), $fieldAttrs);
}
if ($var->prompt ?? '') {
Expand All @@ -30,10 +29,10 @@
echo ' <small>'.$var->prompt.'</small>';
}
?>
</li>
<?php endforeach; ?>
</ul>
<div class="empty_section" style="margin-top: 10px;">
</div>
<?php endforeach; ?>

<div class="empty_section">
<div class="empty_box">
<?php
printf(
Expand All @@ -46,12 +45,11 @@
</div>
</div>

<div class="button_row">
<div class="card-footer d-flex justify-content-end">
<?php
$this->Form->fieldSubmit('save_settings', $this->_('SitebuilderManagePlugin.index.submit_settings', true), ['class' => 'btn btn-primary pull-right']);
?>
</div>
</div>
<?php
$this->Form->end();
$this->Widget->end();
Expand Down