We have now opened a commercial services section here on the forum for registered users. If you have a Fabrik project that you wish to have someone work on for you, post it under Help Wanted. If you are an application developer and wish to earn some money helping others, post your details under Fabrik Application Developers.
Both of these are unmoderated. It will be up to both parties to work out the details and come to an agreement.
For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
<?php if ( $form->submitButton || $form->applyButton || $form->copyButton ): ?>
<div class="span4">
<div class="btn-group">
<?php
echo $form->submitButton . ' ';
echo $form->applyButton . ' ';
echo $form->copyButton;
?>
</div>
</div>
<?php endif; ?>
<?php if ( $form->submitButton || $form->applyButton || $form->copyButton ): ?>
<div class="span4">
<div class="btn-group">
<?php
if ($this->getModel()->isNewRecord()) {
echo $form->submitButton . ' ';
}
else {
echo $form->applyButton . ' ';
}
echo $form->copyButton;
?>
</div>
</div>
<?php endif; ?>
No, if you have created a custom template (i.e. a copy of bootstrap). Yes, if you've modified the bootstrap template directlyWill it be overridden with the next GH update?
What I actually wanted to have, is 2 different labels and icons but the same behaviour for add and edit form. So the add button could have the label "Add" and the edit button could have the name "Edit". Now, when you click the apply button, it doesn't close the form. Is there a way to do this?
Now, when you click the apply button, it doesn't close the form. Is there a way to do this?
So what I think you are really trying to achieve is simply change the label on the save button, so for new forms it says "Save" and when editing it says "Edit"?
defined('JPATH_BASE') or die;
$d = $displayData;
$attributes = isset($d->attributes) ? $d->attributes : '';
$type = isset($d->type) ? 'type="' . $d->type . '"' : 'type="button"';
$tag = isset($d->tag) ? $d->tag : 'button'; // button or a
$name = isset($d->name) ? 'name="' . $d->name . '"' : '';
$id = isset($d->id) ? 'id="' . $d->id .'"' : '';
// if form ID 123 and this is the Submit button, and we are editing a row, change the label to "Edit"
if ($d->formModel->getId() = '123' && $d->type == 'Submit' && !$d->formModel->isNewRecord()) {
$d->label = "Edit";
}
?>
<<?php echo $tag; ?> <?php echo $type; ?> class="btn <?php echo $d->class; ?>" <?php echo $attributes; ?>
<?php echo $name; ?> <?php echo $id; ?>>
<?php echo $d->label; ?>
</<?php echo $tag; ?>>